default:
assert(0);
}
+
+ if (unlikely(sctx->screen->b.debug_flags & DBG_NO_OPT_VARIANT))
+ memset(&key->opt, 0, sizeof(key->opt));
}
static void si_build_shader_variant(void *job, int thread_index)
struct si_shader *current = state->current;
struct si_shader *iter, *shader = NULL;
- if (unlikely(sscreen->b.debug_flags & DBG_NO_OPT_VARIANT)) {
- memset(&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