intel/compiler: Always apply sample mask on Vulkan.
authorArcady Goldmints-Orlov <agoldmints@igalia.com>
Fri, 8 May 2020 00:34:56 +0000 (19:34 -0500)
committerArcady Goldmints-Orlov <agoldmints@igalia.com>
Sat, 20 Jun 2020 01:24:11 +0000 (20:24 -0500)
commit04f77595f0bb5adc31e9e0ff2114c1ed5b60371d
tree5662b41a6d014df380c7655999931abec024a57a
parent19b2ac2bb9e1ddc22956920d661f0e47aa49d718
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 <jason@jlekstrand.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5156>
src/gallium/drivers/iris/iris_program.c
src/intel/compiler/brw_compiler.h
src/intel/compiler/brw_fs.cpp
src/intel/vulkan/anv_pipeline.c
src/mesa/drivers/dri/i965/brw_wm.c