diff options
author | Samuel Pitoiset <[email protected]> | 2017-11-15 15:43:58 +0100 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-11-20 10:45:19 +0100 |
commit | 403a3d80613fcc7ce0684f763b08a0e33a12374a (patch) | |
tree | bc5fdc64b51846472f511b2b46be3da32c0e4ecc /src/amd/vulkan/radv_cmd_buffer.c | |
parent | 59ca0c4b446d32603b3e0aa3935120526ff20791 (diff) |
radv: remove useless check in radv_set_depth_clear_regs()
aspects can't be zero and there is an assertion that ensures
it's not in emit_clear().
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd/vulkan/radv_cmd_buffer.c')
-rw-r--r-- | src/amd/vulkan/radv_cmd_buffer.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c index 5f025d657c7..04b8147df8a 100644 --- a/src/amd/vulkan/radv_cmd_buffer.c +++ b/src/amd/vulkan/radv_cmd_buffer.c @@ -1297,7 +1297,7 @@ radv_set_depth_clear_regs(struct radv_cmd_buffer *cmd_buffer, va += image->offset + image->clear_value_offset; unsigned reg_offset = 0, reg_count = 0; - if (!image->surface.htile_size || !aspects) + if (!image->surface.htile_size) return; if (aspects & VK_IMAGE_ASPECT_STENCIL_BIT) { |