radeonsi: apply a mask to gl_SampleMaskIn in the PS prolog
authorNicolai HÃ\83¤hnle <nicolai.haehnle@amd.com>
Sun, 10 Sep 2017 17:19:40 +0000 (19:19 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 13 Sep 2017 16:25:41 +0000 (18:25 +0200)
commit92c4277990799641d4986ce66a62366228713945
tree966612a47799ea5d93c9fb58bc6126fd5c50603e
parent792724a33745115fe06e079f88fafac74ed0b7f1
radeonsi: apply a mask to gl_SampleMaskIn in the PS prolog

gl_SampleMaskIn is supposed to contain set bits only for the samples that
are covered by the current fragment shader invocation, but the VGPR
initialization hardware loads the set of all bits that are covered at the
current pixel.

Fixes various tests in
dEQP-GLES31.functional.shaders.sample_variables.sample_mask_in.*

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_shader.c
src/gallium/drivers/radeonsi/si_shader.h
src/gallium/drivers/radeonsi/si_state_shaders.c