summaryrefslogtreecommitdiff
path: root/src/panfrost/midgard/midgard_compile.h
diff options
context:
space:
mode:
authorTimothy Arceri <tarceri@itsqueeze.com>2022-05-11 22:44:44 +1000
committerMarge Bot <emma+marge@anholt.net>2022-05-17 02:12:21 +0000
commitd7a071a28f8c49a4d105701221b39b9b6055893c (patch)
tree72158508ef42dc02951de184d76480acfa0023b9 /src/panfrost/midgard/midgard_compile.h
parentff8ddcb23e406a986434a39c3a51857f432a131f (diff)
gallium/drivers: set force_indirect_unrolling_sampler for all required drivers
This is set to true for all drivers that have a GLSL level of support lower than 4.00. This matches the rule for setting the GLSL IR option EmitNoIndirectSampler. Reviewed-by: Emma Anholt <emma@anholt.net> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/16543>
Diffstat (limited to 'src/panfrost/midgard/midgard_compile.h')
-rw-r--r--src/panfrost/midgard/midgard_compile.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_compile.h b/src/panfrost/midgard/midgard_compile.h
index f9c44f9cac2..3c5193f63fe 100644
--- a/src/panfrost/midgard/midgard_compile.h
+++ b/src/panfrost/midgard/midgard_compile.h
@@ -97,6 +97,7 @@ static const nir_shader_compiler_options midgard_nir_options = {
.lower_cs_local_index_to_id = true,
.max_unroll_iterations = 32,
.force_indirect_unrolling = (nir_var_shader_in | nir_var_shader_out | nir_var_function_temp),
+ .force_indirect_unrolling_sampler = true,
};
#endif