Workaround for skipping vertex elements for r600g
authorChristian König <deathsimple@vodafone.de>
Mon, 25 Oct 2010 17:59:31 +0000 (19:59 +0200)
committerChristian König <deathsimple@vodafone.de>
Mon, 25 Oct 2010 17:59:31 +0000 (19:59 +0200)
src/gallium/auxiliary/vl/vl_mpeg12_mc_renderer.c

index 1de17dd62392c72d05a99f352416be61b9f16c98..977c8d67b551881161d7af1fdf928d97d77547f9 100644 (file)
@@ -278,7 +278,8 @@ create_frame_bi_pred_vert_shader(struct vl_mpeg12_mc_renderer *r)
    for (i = 0; i < 4; ++i)
       vtex[i] = ureg_DECL_vs_input(shader, i + 1);
    /* Skip input 5 */
-   vtex[4] = ureg_DECL_vs_input(shader, 5);
+   ureg_DECL_vs_input(shader, 5);
+   vtex[4] = ureg_DECL_vs_input(shader, 6);
    o_vpos = ureg_DECL_output(shader, TGSI_SEMANTIC_POSITION, 0);
    for (i = 0; i < 5; ++i)
       o_vtex[i] = ureg_DECL_output(shader, TGSI_SEMANTIC_GENERIC, i + 1);