diff options
author | Dave Airlie <[email protected]> | 2016-04-11 12:59:25 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2016-04-12 14:15:36 +1000 |
commit | c2aeeca4554d744b6293ad87d9a183e51b0138ff (patch) | |
tree | cf6e46282434e533ee1817d2739ed5554defc4c5 /src/gallium/auxiliary/draw/draw_gs.c | |
parent | 081a958bcddd37131bd67d0ac26a0785ecbd5fa6 (diff) |
draw: add support for passing buffers to vs/gs shaders.
Like the image code, but for shader buffers this time.
Reviewed-by: Brian Paul <[email protected]>
Reviewed-by: Roland Scheidegger <[email protected]>
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_gs.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_gs.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/draw/draw_gs.c b/src/gallium/auxiliary/draw/draw_gs.c index a555b26c345..ef217fa5ceb 100644 --- a/src/gallium/auxiliary/draw/draw_gs.c +++ b/src/gallium/auxiliary/draw/draw_gs.c @@ -681,7 +681,9 @@ void draw_geometry_shader_prepare(struct draw_geometry_shader *shader, if (!use_llvm && shader && shader->machine->Tokens != shader->state.tokens) { tgsi_exec_machine_bind_shader(shader->machine, shader->state.tokens, - draw->gs.tgsi.sampler, draw->gs.tgsi.image, NULL); + draw->gs.tgsi.sampler, + draw->gs.tgsi.image, + draw->gs.tgsi.buffer); } } |