summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/draw/draw_vs_exec.c
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2016-04-11 12:59:25 +1000
committerDave Airlie <airlied@redhat.com>2016-04-12 14:15:36 +1000
commitc2aeeca4554d744b6293ad87d9a183e51b0138ff (patch)
treecf6e46282434e533ee1817d2739ed5554defc4c5 /src/gallium/auxiliary/draw/draw_vs_exec.c
parent081a958bcddd37131bd67d0ac26a0785ecbd5fa6 (diff)
downloadexternal_mesa3d-c2aeeca4554d744b6293ad87d9a183e51b0138ff.tar.gz
external_mesa3d-c2aeeca4554d744b6293ad87d9a183e51b0138ff.tar.bz2
external_mesa3d-c2aeeca4554d744b6293ad87d9a183e51b0138ff.zip
draw: add support for passing buffers to vs/gs shaders.
Like the image code, but for shader buffers this time. Reviewed-by: Brian Paul <brianp@vmware.com> Reviewed-by: Roland Scheidegger <sroland@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_vs_exec.c')
-rw-r--r--src/gallium/auxiliary/draw/draw_vs_exec.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_vs_exec.c b/src/gallium/auxiliary/draw/draw_vs_exec.c
index feb222b8fa..da0d1a7f9a 100644
--- a/src/gallium/auxiliary/draw/draw_vs_exec.c
+++ b/src/gallium/auxiliary/draw/draw_vs_exec.c
@@ -70,7 +70,9 @@ vs_exec_prepare( struct draw_vertex_shader *shader,
if (evs->machine->Tokens != shader->state.tokens) {
tgsi_exec_machine_bind_shader(evs->machine,
shader->state.tokens,
- draw->vs.tgsi.sampler, draw->vs.tgsi.image, NULL);
+ draw->vs.tgsi.sampler,
+ draw->vs.tgsi.image,
+ draw->vs.tgsi.buffer);
}
}