Module: Mesa
Branch: main
Commit: bca4ebc3c40d13c72b2cbc5a2f8290716cd87737
URL:    
http://cgit.freedesktop.org/mesa/mesa/commit/?id=bca4ebc3c40d13c72b2cbc5a2f8290716cd87737

Author: Samuel Pitoiset <[email protected]>
Date:   Thu Nov 30 09:06:22 2023 +0100

radv: export MRTZ via PS epilogs when alpha to coverage is dynamic on GFX11

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

---

 src/amd/vulkan/radv_pipeline_graphics.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/amd/vulkan/radv_pipeline_graphics.c 
b/src/amd/vulkan/radv_pipeline_graphics.c
index 303f597b886..89f2d7107ce 100644
--- a/src/amd/vulkan/radv_pipeline_graphics.c
+++ b/src/amd/vulkan/radv_pipeline_graphics.c
@@ -1948,7 +1948,8 @@ radv_generate_graphics_pipeline_key(const struct 
radv_device *device, const stru
        * rendering), it's not possible to know the info at compile time and 
MRTZ needs to be
        * exported in the epilog.
        */
-      key.ps.exports_mrtz_via_epilog = key.ps.has_epilog && !state->ms;
+      key.ps.exports_mrtz_via_epilog =
+         key.ps.has_epilog && (!state->ms || (pipeline->dynamic_states & 
RADV_DYNAMIC_ALPHA_TO_COVERAGE_ENABLE));
    }
 
    key.dynamic_patch_control_points = !!(pipeline->dynamic_states & 
RADV_DYNAMIC_PATCH_CONTROL_POINTS);

Reply via email to