diff options
author | keithw <keithw@keithw-laptop.(none)> | 2007-08-24 10:09:34 +0100 |
---|---|---|
committer | Keith Whitwell <keith@tungstengraphics.com> | 2007-08-24 11:25:06 +0100 |
commit | b4d8be235b018594a79258d36e70880ab9019b72 (patch) | |
tree | 6fb5fe814b275f61c35c20f7c037fbafe93b59ed /src/mesa/pipe/i915simple/i915_state_sampler.c | |
parent | f9a77a3080598d03c484fa5d04c213b8a06d43d3 (diff) |
sampler state tweaks
Diffstat (limited to 'src/mesa/pipe/i915simple/i915_state_sampler.c')
-rw-r--r-- | src/mesa/pipe/i915simple/i915_state_sampler.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/mesa/pipe/i915simple/i915_state_sampler.c b/src/mesa/pipe/i915simple/i915_state_sampler.c index e23e4bdcf7..e4d7fec27b 100644 --- a/src/mesa/pipe/i915simple/i915_state_sampler.c +++ b/src/mesa/pipe/i915simple/i915_state_sampler.c @@ -155,7 +155,6 @@ static void update_sampler(struct i915_context *i915, uint unit, const struct pipe_sampler_state *sampler, const struct pipe_mipmap_tree *mt, - const struct pipe_surface *surface, unsigned state[3] ) { const unsigned ws = sampler->wrap_s; @@ -187,8 +186,8 @@ static void update_sampler(struct i915_context *i915, state[0] |= ((b << SS2_LOD_BIAS_SHIFT) & SS2_LOD_BIAS_MASK); } - if (surface->format == PIPE_FORMAT_YCBCR || - surface->format == PIPE_FORMAT_YCBCR_REV) + if (mt->format == PIPE_FORMAT_YCBCR || + mt->format == PIPE_FORMAT_YCBCR_REV) state[0] |= SS2_COLORSPACE_CONVERSION; @@ -259,7 +258,6 @@ static void update_sampler(struct i915_context *i915, void i915_update_samplers( struct i915_context *i915 ) { - const struct pipe_surface *surface = i915->framebuffer.cbufs[0]; uint unit; i915->current.sampler_enable_nr = 0; @@ -273,7 +271,6 @@ void i915_update_samplers( struct i915_context *i915 ) unit, i915->sampler + unit, /* sampler state */ i915->texture[unit], /* mipmap tree */ - surface, /* cbuffer info */ i915->current.sampler[unit] /* the result */ ); |