diff options
author | Stéphane Marchesin <[email protected]> | 2011-10-08 23:54:53 -0700 |
---|---|---|
committer | Stéphane Marchesin <[email protected]> | 2011-10-08 23:54:53 -0700 |
commit | 8a22064d316efcdc0d0107fe227a2ed5a746c4f8 (patch) | |
tree | 75781f971736cb5ba4d7a024c8bfd41037f5e26d /src/gallium/drivers/i915/i915_context.c | |
parent | e125786be8e19a9606afb91cd7e8bc37d035b63f (diff) |
i915g: Implement vertex textures.
Diffstat (limited to 'src/gallium/drivers/i915/i915_context.c')
-rw-r--r-- | src/gallium/drivers/i915/i915_context.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gallium/drivers/i915/i915_context.c b/src/gallium/drivers/i915/i915_context.c index 1b30309bb58..ff6d715b72a 100644 --- a/src/gallium/drivers/i915/i915_context.c +++ b/src/gallium/drivers/i915/i915_context.c @@ -79,6 +79,11 @@ i915_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info) else draw_set_mapped_constant_buffer(draw, PIPE_SHADER_VERTEX, 0, NULL, 0); + if (i915->num_vertex_sampler_views > 0) + i915_prepare_vertex_sampling(i915, + i915->num_vertex_sampler_views, + i915->vertex_sampler_views); + /* * Do the drawing */ @@ -86,6 +91,9 @@ i915_draw_vbo(struct pipe_context *pipe, const struct pipe_draw_info *info) if (mapped_indices) draw_set_mapped_index_buffer(draw, NULL); + + if (i915->num_vertex_sampler_views > 0) + i915_cleanup_vertex_sampling(i915); } |