radeonsi: make gl_SampleMaskIn = 0x1 when MSAA is disabled
authorPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Wed, 3 Jul 2019 17:27:12 +0000 (19:27 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 3 Jul 2019 18:59:21 +0000 (14:59 -0400)
commitea5b7de138bb7e9a4e7e4f0c39c4ceb16acae923
treeac31d8455a0983f4089b6c734d6decb696641071
parent7bb3d6acec6c3829a01c0302ea970bd158b9c7f3
radeonsi: make gl_SampleMaskIn = 0x1 when MSAA is disabled

gl_SampleMaskIn is 1 when R_028BE0_PA_SC_AA_CONFIG is 0, so this commit rework the conditions
controlling this register.

Before it was set if the sctx->framebuffer had a sample count > 1.

Now we still require this condition, but we also need either:
  - GL_MULTISAMPLE to be enabled
  - to be executing an operation that doesn't depends on GL state using u_blitter.

This fixes the arb_sample_shading/sample_mask piglit tests on radeonsi.

Signed-off-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state.c