radeonsi: si_shader_vs only depends on the GS selector
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Mon, 31 Oct 2016 20:09:20 +0000 (21:09 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 3 Nov 2016 09:07:48 +0000 (10:07 +0100)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeonsi/si_state_shaders.c

index 69711587c1571b794a6e95f2a08c9c21c3818cbb..ebe7a75a2f8e2a359a9724b78fce1de2beece077 100644 (file)
@@ -524,7 +524,7 @@ static void si_shader_gs(struct si_shader *shader)
  * is the copy shader.
  */
 static void si_shader_vs(struct si_screen *sscreen, struct si_shader *shader,
-                         struct si_shader *gs)
+                         struct si_shader_selector *gs)
 {
        struct si_pm4_state *pm4;
        unsigned num_user_sgprs;
@@ -836,7 +836,7 @@ static void si_shader_init_pm4_state(struct si_screen *sscreen,
                break;
        case PIPE_SHADER_GEOMETRY:
                si_shader_gs(shader);
-               si_shader_vs(sscreen, shader->gs_copy_shader, shader);
+               si_shader_vs(sscreen, shader->gs_copy_shader, shader->selector);
                break;
        case PIPE_SHADER_FRAGMENT:
                si_shader_ps(shader);