unsigned family;
enum chip_class chip_class;
struct r600_tiling_info tiling_info;
- unsigned num_tile_pipes;
- unsigned backend_map;
- boolean backend_map_valid;
};
/* these flags are used in register flags and added into block flags */
assert(bo != NULL);
- reloc_index = ctx->radeon->ws->trans_add_reloc(
- ctx->cs, bo->cs_buf,
- rbo->domains & (RADEON_GEM_DOMAIN_GTT | RADEON_GEM_DOMAIN_VRAM),
- rbo->domains & (RADEON_GEM_DOMAIN_GTT | RADEON_GEM_DOMAIN_VRAM),
- (void**)&ctx->reloc, &ctx->creloc);
+ reloc_index =
+ ctx->radeon->ws->cs_add_reloc(ctx->cs, bo->cs_buf, rbo->domains, rbo->domains);
+
+ if (reloc_index >= ctx->creloc)
+ ctx->creloc = reloc_index+1;
radeon_bo_reference(ctx->radeon, &ctx->bo[reloc_index], bo);
return reloc_index * 4;