default:
assert(0);
}
-
- if (unlikely(sctx->screen->debug_flags & DBG(NO_OPT_VARIANT)))
- memset(&key->opt, 0, sizeof(key->opt));
}
static void si_build_shader_variant(struct si_shader *shader, int thread_index, bool low_priority)
*/
struct si_shader_key local_key;
+ if (unlikely(sscreen->debug_flags & DBG(NO_OPT_VARIANT))) {
+ /* Disable shader variant optimizations. */
+ key = use_local_key_copy(key, &local_key);
+ memset(&local_key.opt, 0, sizeof(key->opt));
+ }
+
again:
/* Check if we don't need to change anything.
* This path is also used for most shaders that don't need multiple