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>
This commit is contained in:

committed by
Marge Bot

parent
ff8ddcb23e
commit
d7a071a28f
@@ -1364,6 +1364,9 @@ bool r600_common_screen_init(struct r600_common_screen *rscreen,
|
||||
* lowered code */
|
||||
rscreen->nir_options.lower_fpow = rscreen->debug_flags & DBG_NIR_PREFERRED;
|
||||
|
||||
if (rscreen->info.family < CHIP_CEDAR)
|
||||
rscreen->nir_options.force_indirect_unrolling_sampler = true;
|
||||
|
||||
if (rscreen->info.gfx_level < EVERGREEN) {
|
||||
/* Pre-EG doesn't have these ALU ops */
|
||||
rscreen->nir_options.lower_bit_count = true;
|
||||
|
Reference in New Issue
Block a user