Mesa (pipe-video): [g3dvl] use a vertex element instead of the instance id

Christian König deathsimple at kemper.freedesktop.org
Sun Jun 5 22:38:02 UTC 2011


Module: Mesa
Branch: pipe-video
Commit: c6c2ef070957e5a0c0003e1d0a6d6e2fe197fb40
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=c6c2ef070957e5a0c0003e1d0a6d6e2fe197fb40

Author: Christian König <deathsimple at vodafone.de>
Date:   Sun Jun  5 16:39:10 2011 +0200

[g3dvl] use a vertex element instead of the instance id

Enable this change permanently

---

 src/gallium/auxiliary/vl/vl_zscan.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/vl/vl_zscan.c b/src/gallium/auxiliary/vl/vl_zscan.c
index 2b52d61..58cee00 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);
 




More information about the mesa-commit mailing list