/drivers/video/Intel-2D/kgem-sna.c |
---|
3776,9 → 3776,18 |
assert((read_write_domain & 0x7fff) == 0 || bo != NULL); |
// if( bo != NULL && bo->handle == -1) |
// return 0; |
if( bo != NULL && bo->handle == -2) |
{ |
if (bo->exec == NULL) |
kgem_add_bo(kgem, bo); |
if (read_write_domain & 0x7fff && !bo->dirty) { |
assert(!bo->snoop || kgem->can_blt_cpu); |
__kgem_bo_mark_dirty(bo); |
} |
return 0; |
}; |
index = kgem->nreloc++; |
assert(index < ARRAY_SIZE(kgem->reloc)); |
kgem->reloc[index].offset = pos * sizeof(kgem->batch[0]); |