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

Author: Samuel Iglesias Gonsálvez <[email protected]>
Date:   Tue Mar  9 13:32:48 2021 +0100

turnip: set depth plane control zmode to A6XX_LATE_Z when sample mask is written

Otherwise, gl_SampleMask[] writes are ignored and the stencil test works like
if all samples were enabled.

Fixes: dEQP-VK.renderpass.suballocation.multisample.*s8*

Signed-off-by: Samuel Iglesias Gonsálvez <[email protected]>
Reviewed-by: Hyunjun Ko <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9478>

---

 src/freedreno/vulkan/tu_pipeline.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/freedreno/vulkan/tu_pipeline.c 
b/src/freedreno/vulkan/tu_pipeline.c
index fffa70a4d16..510044aa7f8 100644
--- a/src/freedreno/vulkan/tu_pipeline.c
+++ b/src/freedreno/vulkan/tu_pipeline.c
@@ -1415,7 +1415,7 @@ tu6_emit_fs_outputs(struct tu_cs *cs,
    enum a6xx_ztest_mode zmode;
 
    if ((fs->shader && !fs->shader->nir->info.fs.early_fragment_tests) &&
-       (fs->no_earlyz || fs->has_kill || fs->writes_pos || 
fs->writes_stencilref || no_earlyz)) {
+       (fs->no_earlyz || fs->has_kill || fs->writes_pos || 
fs->writes_stencilref || no_earlyz || fs->writes_smask)) {
       zmode = A6XX_LATE_Z;
    } else {
       zmode = A6XX_EARLY_Z;

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

Reply via email to