diff options
author | Brian Paul <[email protected]> | 2012-08-09 20:59:43 -0600 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-08-16 09:01:31 -0600 |
commit | df87fb59136eb302d72eac4b58fd8ffb25989ed5 (patch) | |
tree | 43bb960f0b5cadf1657294c1ea1368793a2de61c /src/gallium/drivers/i915/i915_state.c | |
parent | a8ed00d5f13d7b016bc2ea56f130adc3fa857cc8 (diff) |
gallium: add a shader stage/type param to some draw functions
To prepare for geometry shader texture support in the draw module.
Note: we still only handle the vertex shader case.
Diffstat (limited to 'src/gallium/drivers/i915/i915_state.c')
-rw-r--r-- | src/gallium/drivers/i915/i915_state.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c index c5ec0c6c076..8af26fa9dc5 100644 --- a/src/gallium/drivers/i915/i915_state.c +++ b/src/gallium/drivers/i915/i915_state.c @@ -325,6 +325,7 @@ i915_bind_vertex_sampler_states(struct pipe_context *pipe, i915->num_vertex_samplers = num_samplers; draw_set_samplers(i915->draw, + PIPE_SHADER_VERTEX, i915->vertex_samplers, i915->num_vertex_samplers); } @@ -405,6 +406,7 @@ i915_prepare_vertex_sampling(struct i915_context *i915) } draw_set_mapped_texture(i915->draw, + PIPE_SHADER_VERTEX, i, tex->width0, tex->height0, tex->depth0, view->u.tex.first_level, tex->last_level, @@ -792,6 +794,7 @@ i915_set_vertex_sampler_views(struct pipe_context *pipe, i915->num_vertex_sampler_views = num; draw_set_sampler_views(i915->draw, + PIPE_SHADER_VERTEX, i915->vertex_sampler_views, i915->num_vertex_sampler_views); } |