r600: handle compute null key shader state
authorDave Airlie <airlied@redhat.com>
Fri, 3 Nov 2017 02:23:26 +0000 (12:23 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 5 Dec 2017 20:31:13 +0000 (20:31 +0000)
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/gallium/drivers/r600/r600_state_common.c

index fee7a21d27dd039eca461ef43298e27f40c9eceb..ee3340f6e817e52807c951523880890304a22e03 100644 (file)
@@ -820,6 +820,8 @@ static inline void r600_shader_selector_key(const struct pipe_context *ctx,
                key->tcs.prim_mode = rctx->tes_shader->info.properties[TGSI_PROPERTY_TES_PRIM_MODE];
                key->tcs.first_atomic_counter = r600_get_hw_atomic_count(ctx, PIPE_SHADER_TESS_CTRL);
                break;
+       case PIPE_SHADER_COMPUTE:
+               break;
        default:
                assert(0);
        }