Module: Mesa
Branch: master
Commit: 1aabfc77d3d3b87e4987b0e5db553d22b582ce2e
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=1aabfc77d3d3b87e4987b0e5db553d22b582ce2e

Author: Samuel Pitoiset <[email protected]>
Date:   Tue Mar  9 13:22:58 2021 +0100

radv: fix initialization of disable_compression when clearing color image

Just make sure it's initialized properly.

Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9473>

---

 src/amd/vulkan/radv_meta_clear.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/amd/vulkan/radv_meta_clear.c b/src/amd/vulkan/radv_meta_clear.c
index dfae9b387d7..e8db50a337c 100644
--- a/src/amd/vulkan/radv_meta_clear.c
+++ b/src/amd/vulkan/radv_meta_clear.c
@@ -2255,6 +2255,7 @@ radv_cmd_clear_image(struct radv_cmd_buffer *cmd_buffer,
                                        surf.level = range->baseMipLevel + l;
                                        surf.layer = range->baseArrayLayer + s;
                                        surf.aspect_mask = range->aspectMask;
+                                       surf.disable_compression = true;
                                        radv_meta_clear_image_cs(cmd_buffer, 
&surf,
                                                                 
&internal_clear_value.color);
                                } else {

_______________________________________________
mesa-commit mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/mesa-commit

Reply via email to