That is really private to winsys/radeon.
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
struct r600_block **blocks;
};
-/*
- * relocation
- */
-#pragma pack(1)
-struct r600_reloc {
- uint32_t handle;
- uint32_t read_domain;
- uint32_t write_domain;
- uint32_t flags;
-};
-#pragma pack()
-
/*
* query
*/
struct r600_context {
struct radeon *radeon;
struct radeon_winsys_cs *cs;
+
struct r600_range *range;
unsigned nblocks;
struct r600_block **blocks;
unsigned init_dwords;
unsigned creloc;
- struct r600_reloc *reloc;
+ unsigned *reloc;
struct radeon_bo **bo;
u32 *pm4;
chunks[0].length_dw = ctx->pm4_cdwords;
chunks[0].chunk_data = (uint64_t)(uintptr_t)ctx->pm4;
chunks[1].chunk_id = RADEON_CHUNK_ID_RELOCS;
- chunks[1].length_dw = ctx->creloc * sizeof(struct r600_reloc) / 4;
+ chunks[1].length_dw = ctx->creloc * 4;
chunks[1].chunk_data = (uint64_t)(uintptr_t)ctx->reloc;
chunk_array[0] = (uint64_t)(uintptr_t)&chunks[0];
chunk_array[1] = (uint64_t)(uintptr_t)&chunks[1];