diff options
author | Brian <[email protected]> | 2008-12-02 22:38:46 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-12-04 09:58:54 -0700 |
commit | f2bccfd3c806a879abf0c40858806ec3825d0628 (patch) | |
tree | d4417d573cbc3ae586c74320cda8027f328763be /src/gallium/auxiliary/draw/draw_context.c | |
parent | 1d9360b67829a37b369e32c894183db1cecf827b (diff) |
gallium: added draw_texture_samplers() to support texture fetches from vertex shaders
This may only be practical for the softpipe driver at this time.
Diffstat (limited to 'src/gallium/auxiliary/draw/draw_context.c')
-rw-r--r-- | src/gallium/auxiliary/draw/draw_context.c | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/draw/draw_context.c b/src/gallium/auxiliary/draw/draw_context.c index 41a4cba1ddd..b2a34811c2d 100644 --- a/src/gallium/auxiliary/draw/draw_context.c +++ b/src/gallium/auxiliary/draw/draw_context.c @@ -331,6 +331,21 @@ draw_num_vs_outputs(const struct draw_context *draw) } +/** + * Provide TGSI sampler objects for vertex shaders that use texture fetches. + * This might only be used by software drivers for the time being. + */ +void +draw_texture_samplers(struct draw_context *draw, + uint num_samplers, + struct tgsi_sampler **samplers) +{ + draw->vs.num_samplers = num_samplers; + draw->vs.samplers = samplers; +} + + + void draw_set_render( struct draw_context *draw, struct vbuf_render *render ) |