From: Christian König Date: Sun, 5 Jun 2011 14:39:10 +0000 (+0200) Subject: [g3dvl] use a vertex element instead of the instance id X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=c6c2ef070957e5a0c0003e1d0a6d6e2fe197fb40;p=mesa.git [g3dvl] use a vertex element instead of the instance id Enable this change permanently --- diff --git a/src/gallium/auxiliary/vl/vl_zscan.c b/src/gallium/auxiliary/vl/vl_zscan.c index 2b52d610f8f..58cee0070d8 100644 --- a/src/gallium/auxiliary/vl/vl_zscan.c +++ b/src/gallium/auxiliary/vl/vl_zscan.c @@ -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);