r600/sfn: Only use sample mask if the according shader key is set
authorGert Wollny <gert.wollny@collabora.com>
Sun, 5 Jul 2020 14:49:14 +0000 (16:49 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 20 Jul 2020 09:32:51 +0000 (09:32 +0000)
commit3ea847e6d1a3a8a06dbc6aea0895851f1a2dd535
tree882289fa083fdbb7f0e2ea91b567fa08fcc0218f
parentc91979c634403bdebeb662cc98c5d77db0d1156a
r600/sfn: Only use sample mask if the according shader key is set

This fixes all the piglits from arb_sample_shading "samplemask * *"
with the nir backend.

Signed-off-by: Gert Wollny <gert.wollny@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5963>
src/gallium/drivers/r600/sfn/sfn_shader_fragment.cpp
src/gallium/drivers/r600/sfn/sfn_shader_fragment.h