aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa
diff options
context:
space:
mode:
authorArcady Goldmints-Orlov <[email protected]>2020-05-07 19:34:56 -0500
committerArcady Goldmints-Orlov <[email protected]>2020-06-19 20:24:11 -0500
commit04f77595f0bb5adc31e9e0ff2114c1ed5b60371d (patch)
tree5662b41a6d014df380c7655999931abec024a57a /src/mesa
parent19b2ac2bb9e1ddc22956920d661f0e47aa49d718 (diff)
intel/compiler: Always apply sample mask on Vulkan.
With OpenGL, shader writes to the sample mask are ignored when not rendering to a multisample render target. However, on Vulkan, writes to the sample mask have still have their effect in that case. Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3016 Reviewed-by: Jason Ekstrand <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5156>
Diffstat (limited to 'src/mesa')
-rw-r--r--src/mesa/drivers/dri/i965/brw_wm.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm.c b/src/mesa/drivers/dri/i965/brw_wm.c
index 256115103dd..24a23c1bc8e 100644
--- a/src/mesa/drivers/dri/i965/brw_wm.c
+++ b/src/mesa/drivers/dri/i965/brw_wm.c
@@ -490,6 +490,8 @@ brw_wm_populate_key(struct brw_context *brw, struct brw_wm_prog_key *key)
key->multisample_fbo = _mesa_geometric_samples(ctx->DrawBuffer) > 1;
}
+ key->ignore_sample_mask_out = !key->multisample_fbo;
+
/* BRW_NEW_VUE_MAP_GEOM_OUT */
if (devinfo->gen < 6 || util_bitcount64(prog->info.inputs_read &
BRW_FS_VARYING_INPUT_MASK) > 16) {