diff options
author | Samuel Pitoiset <[email protected]> | 2017-11-15 15:44:00 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-11-20 10:45:23 +0100 |
commit | e55b7609fa2b2c692d5cf56732b198ccf89fde2e (patch) | |
tree | 2744ddb7dfc5561a99dcf4ae516ae74adff0804b /src/amd/vulkan | |
parent | 3c6bba83f0cceb0dbc5f2ce0519131ee08ab645a (diff) |
radv: do not add the image BO in radv_set_depth_clear_regs()
For the fast path, radv_fill_buffer() ensures that the BO is
already in the list. For the slow path, the depth surface is
part of the framebuffer which means the BO is added to the list
when the framebuffer is emitted.
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 | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 04b8147df8a..ae522d2088f 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -1309,8 +1309,6 @@ radv_set_depth_clear_regs(struct radv_cmd_buffer *cmd_buffer, if (aspects & VK_IMAGE_ASPECT_DEPTH_BIT) ++reg_count; - radv_cs_add_buffer(cmd_buffer->device->ws, cmd_buffer->cs, image->bo, 8); - radeon_emit(cmd_buffer->cs, PKT3(PKT3_WRITE_DATA, 2 + reg_count, 0)); radeon_emit(cmd_buffer->cs, S_370_DST_SEL(V_370_MEM_ASYNC) | S_370_WR_CONFIRM(1) | |