radeonsi: add the radeonsi_optimize_io option into the shader cache key

otherwise the options would be ignored if the shader cache had already
cached the same shader with the option inverted.

Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/28725>
This commit is contained in:
Marek Olšák 2024-03-17 16:28:37 -04:00 committed by Marge Bot
parent 3630c11c3b
commit a094339d64
1 changed files with 2 additions and 3 deletions

View File

@ -143,9 +143,8 @@ void si_get_ir_cache_key(struct si_shader_selector *sel, bool ngg, bool es,
shader_variant_flags |= 1 << 1;
if (wave_size == 32)
shader_variant_flags |= 1 << 2;
/* bit gap */
if (sel->screen->options.optimize_io)
shader_variant_flags |= 1 << 3;
/* use_ngg_culling disables NGG passthrough for non-culling shaders to reduce context
* rolls, which can be changed with AMD_DEBUG=nonggc or AMD_DEBUG=nggc.
*/