aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeonsi/si_get.c
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2019-04-09 21:40:33 -0400
committerMarek Olšák <[email protected]>2019-04-16 10:24:19 -0400
commitd3ce8a7f6b93e893929b81f4d6605a2a968730a1 (patch)
tree59821cab65ac1708dd3623d385d10da59d0a1001 /src/gallium/drivers/radeonsi/si_get.c
parentd98f6380cb0b306f636175c1b3465dbcccadb4e9 (diff)
nir: optimize gl_SampleMaskIn to gl_HelperInvocation for radeonsi when possible
Acked-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeonsi/si_get.c')
-rw-r--r--src/gallium/drivers/radeonsi/si_get.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeonsi/si_get.c b/src/gallium/drivers/radeonsi/si_get.c
index 9e92dd40e7b..67fbc50998b 100644
--- a/src/gallium/drivers/radeonsi/si_get.c
+++ b/src/gallium/drivers/radeonsi/si_get.c
@@ -502,6 +502,7 @@ static const struct nir_shader_compiler_options nir_options = {
.lower_unpack_unorm_4x8 = true,
.lower_extract_byte = true,
.lower_extract_word = true,
+ .optimize_sample_mask_in = true,
.max_unroll_iterations = 32,
.native_integers = true,
};