diff options
author | Jason Ekstrand <[email protected]> | 2018-05-30 18:05:54 -0700 |
---|---|---|
committer | Jason Ekstrand <[email protected]> | 2018-05-31 16:51:46 -0700 |
commit | f270a0973741724d5bdddd30e4b241caa12a1c29 (patch) | |
tree | 6a20f15d6bae391b7c0fa650d349983254f29ed1 /src/intel/vulkan/genX_query.c | |
parent | 8a8bd39d5eba70a67bf463a461c86f3061fafae9 (diff) |
anv: Use an anv_address in anv_buffer
Reviewed-by: Scott D Phillips <[email protected]>
Diffstat (limited to 'src/intel/vulkan/genX_query.c')
-rw-r--r-- | src/intel/vulkan/genX_query.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/intel/vulkan/genX_query.c b/src/intel/vulkan/genX_query.c index 4efcc57e475..de409be04ed 100644 --- a/src/intel/vulkan/genX_query.c +++ b/src/intel/vulkan/genX_query.c @@ -686,19 +686,14 @@ gpu_write_query_result(struct anv_batch *batch, anv_batch_emit(batch, GENX(MI_STORE_REGISTER_MEM), srm) { srm.RegisterAddress = reg; - srm.MemoryAddress = (struct anv_address) { - .bo = dst_buffer->bo, - .offset = dst_buffer->offset + dst_offset, - }; + srm.MemoryAddress = anv_address_add(dst_buffer->address, dst_offset); } if (flags & VK_QUERY_RESULT_64_BIT) { anv_batch_emit(batch, GENX(MI_STORE_REGISTER_MEM), srm) { srm.RegisterAddress = reg + 4; - srm.MemoryAddress = (struct anv_address) { - .bo = dst_buffer->bo, - .offset = dst_buffer->offset + dst_offset + 4, - }; + srm.MemoryAddress = anv_address_add(dst_buffer->address, + dst_offset + 4); } } } |