diff options
author | Jonathan Marek <[email protected]> | 2019-12-12 17:00:13 -0500 |
---|---|---|
committer | Jonathan Marek <[email protected]> | 2019-12-12 20:33:17 -0500 |
commit | e71f79f6c64c47f6db0f894726ce80eb68a8416b (patch) | |
tree | 38f672a115df27f702075b30ba5be4ba361eda6e /src/freedreno/vulkan | |
parent | 99a4f7c79fa8c529433981b81fea470ddf51f56e (diff) |
turnip: set FRAG_WRITES_SAMPMASK bit
GPU hangs if SAMPMASK_REGID is used without this bit.
Signed-off-by: Jonathan Marek <[email protected]>
Reviewed-by: Eric Anholt <[email protected]>
Diffstat (limited to 'src/freedreno/vulkan')
-rw-r--r-- | src/freedreno/vulkan/tu_pipeline.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/freedreno/vulkan/tu_pipeline.c b/src/freedreno/vulkan/tu_pipeline.c index 3a17cc76494..c3aaf9f38a5 100644 --- a/src/freedreno/vulkan/tu_pipeline.c +++ b/src/freedreno/vulkan/tu_pipeline.c @@ -862,7 +862,8 @@ tu6_emit_fs_outputs(struct tu_cs *cs, } tu_cs_emit_pkt4(cs, REG_A6XX_RB_FS_OUTPUT_CNTL0, 2); - tu_cs_emit(cs, fs->writes_pos ? A6XX_RB_FS_OUTPUT_CNTL0_FRAG_WRITES_Z : 0); + tu_cs_emit(cs, COND(fs->writes_pos, A6XX_RB_FS_OUTPUT_CNTL0_FRAG_WRITES_Z) | + COND(fs->writes_smask, A6XX_RB_FS_OUTPUT_CNTL0_FRAG_WRITES_SAMPMASK)); tu_cs_emit(cs, A6XX_RB_FS_OUTPUT_CNTL1_MRT(mrt_count)); uint32_t gras_su_depth_plane_cntl = 0; |