radeonsi: fix R600_DEBUG=nooptvariant
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 16 Jan 2017 15:44:08 +0000 (16:44 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 16 Jan 2017 19:16:18 +0000 (20:16 +0100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Vedran Miletić <vedran@miletic.net>
src/gallium/drivers/radeonsi/si_state_shaders.c

index d2f04bc..1ae344a 100644 (file)
@@ -1129,7 +1129,7 @@ static int si_shader_select_with_key(struct si_screen *sscreen,
        struct si_shader *current = state->current;
        struct si_shader *iter, *shader = NULL;
 
-       if (unlikely(sscreen->b.chip_class & DBG_NO_OPT_VARIANT)) {
+       if (unlikely(sscreen->b.debug_flags & DBG_NO_OPT_VARIANT)) {
                memset(&key->opt, 0, sizeof(key->opt));
        }