[g3dvl] use a vertex element instead of the instance id
authorChristian König <deathsimple@vodafone.de>
Sun, 5 Jun 2011 14:39:10 +0000 (16:39 +0200)
committerChristian König <deathsimple@vodafone.de>
Sun, 5 Jun 2011 14:39:10 +0000 (16:39 +0200)
Enable this change permanently

src/gallium/auxiliary/vl/vl_zscan.c

index 2b52d610f8fff5187d1092fa46e4337a64e65437..58cee0070d8054c8bb5a9f151c2b6d032112d3b5 100644 (file)
@@ -110,8 +110,7 @@ create_vert_shader(struct vl_zscan *zscan)
 
    vrect = ureg_DECL_vs_input(shader, VS_I_RECT);
    vpos = ureg_DECL_vs_input(shader, VS_I_VPOS);
-
-   block_num = ureg_DECL_system_value(shader, 0, TGSI_SEMANTIC_INSTANCEID, 0);
+   block_num = ureg_DECL_vs_input(shader, VS_I_BLOCK_NUM);
 
    tmp = ureg_DECL_temporary(shader);