radeonsi: Store inputs to memory when not using a TCS.
[mesa.git] / src / gallium / drivers / radeonsi / si_state_shaders.c
index 968fc88e6b4703e4f2531fcc510c7402326c36ba..2aecfa3614a99d766d8a96991412463dc4021b3e 100644 (file)
@@ -846,6 +846,9 @@ static inline void si_shader_selector_key(struct pipe_context *ctx,
        case PIPE_SHADER_TESS_CTRL:
                key->tcs.epilog.prim_mode =
                        sctx->tes_shader.cso->info.properties[TGSI_PROPERTY_TES_PRIM_MODE];
+
+               if (sel == sctx->fixed_func_tcs_shader.cso)
+                       key->tcs.epilog.inputs_to_copy = sctx->vs_shader.cso->outputs_written;
                break;
        case PIPE_SHADER_TESS_EVAL:
                if (sctx->gs_shader.cso)