diff options
author | Samuel Pitoiset <[email protected]> | 2019-01-17 09:33:37 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2019-01-23 11:31:09 +0100 |
commit | e7ac7924001d87d6c3083562969ff74306cc59d5 (patch) | |
tree | 5be9b0d5d5e25aebee514fc4eed7c6862109fa2d /src/amd/vulkan | |
parent | bd098884f101937de0819200b9cdcaee11aa6f1d (diff) |
radv: only allocate the GFX9 fence and EOP BOs for the gfx queue
It's invalid to emit a ZPASS_DONE event on the compute queue, and
the fence BO is unused on the compute queue (ie. we don't flush
CB or DB caches).
This saves some space in the upload BO.
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index c8d1fc265d7..a260596c711 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -332,7 +332,8 @@ radv_reset_cmd_buffer(struct radv_cmd_buffer *cmd_buffer) cmd_buffer->descriptors[i].push_dirty = false; } - if (cmd_buffer->device->physical_device->rad_info.chip_class >= GFX9) { + if (cmd_buffer->device->physical_device->rad_info.chip_class >= GFX9 && + cmd_buffer->queue_family_index == RADV_QUEUE_GENERAL) { unsigned num_db = cmd_buffer->device->physical_device->rad_info.num_render_backends; unsigned eop_bug_offset; void *fence_ptr; |