aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_vs_variant.c
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2019-03-27 14:06:50 +1000
committerDave Airlie <[email protected]>2019-03-28 14:13:08 +1000
commit9f9d9c948dc665875672b5c2ee034aca18ccaf71 (patch)
treea8e802cafebbd12f48d97338ea25001c90da67d1 /src/gallium/auxiliary/draw/draw_vs_variant.c
parent893425a607a63a83e8a4c13fd963367c8d174678 (diff)
softpipe/draw: fix vertex id in soft paths.
This fixes the vertex id fetch in the non-llvm drawing paths. This vertex id in elt mode comes from the elts not just a linear value. Note we don't bad basevertex in the elts case as it's already included in the elts by the looks of it (at least tests fail if I add it) Fixes piglit end-primitive tests and some others. Reviewed-by: Roland Scheidegger <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_variant.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs_variant.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_variant.c b/src/gallium/auxiliary/draw/draw_vs_variant.c
index af36a86674d..44cf29b8e47 100644
--- a/src/gallium/auxiliary/draw/draw_vs_variant.c
+++ b/src/gallium/auxiliary/draw/draw_vs_variant.c
@@ -179,7 +179,7 @@ static void PIPE_CDECL vsvg_run_elts( struct draw_vs_variant *variant,
vsvg->base.vs->draw->pt.user.vs_constants_size,
count,
temp_vertex_stride,
- temp_vertex_stride);
+ temp_vertex_stride, NULL);
/* FIXME: geometry shading? */
@@ -247,7 +247,7 @@ static void PIPE_CDECL vsvg_run_linear( struct draw_vs_variant *variant,
vsvg->base.vs->draw->pt.user.vs_constants_size,
count,
temp_vertex_stride,
- temp_vertex_stride);
+ temp_vertex_stride, NULL);
if (vsvg->base.key.clip) {
/* not really handling clipping, just do the rhw so we can