From df87fb59136eb302d72eac4b58fd8ffb25989ed5 Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Thu, 9 Aug 2012 20:59:43 -0600 Subject: 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. --- src/gallium/drivers/i915/i915_state.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/gallium/drivers/i915') 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); } -- cgit v1.2.3