diff options
author | Dave Airlie <[email protected]> | 2011-04-12 21:20:48 +1000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2011-04-12 21:23:00 +1000 |
commit | b27f206b0cc9bf31bff6dd1abe66c4f21f3de21e (patch) | |
tree | c7d0a5150204de099c4c7c979be5944c931938af /src/mesa/drivers/dri/nouveau/nv10_state_tex.c | |
parent | 16d42af618aa6250bedc7e66e0e2c0b061cc6e99 (diff) |
nouveau_vieux: fix build since sampler objects merge
Diffstat (limited to 'src/mesa/drivers/dri/nouveau/nv10_state_tex.c')
-rw-r--r-- | src/mesa/drivers/dri/nouveau/nv10_state_tex.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/nouveau/nv10_state_tex.c b/src/mesa/drivers/dri/nouveau/nv10_state_tex.c index 1d98b1970ef..620a686aea0 100644 --- a/src/mesa/drivers/dri/nouveau/nv10_state_tex.c +++ b/src/mesa/drivers/dri/nouveau/nv10_state_tex.c @@ -183,7 +183,7 @@ nv10_emit_tex_obj(struct gl_context *ctx, int emit) | nvgl_filter_mode(t->Sampler.MinFilter) << 24; tx_enable = NV10_3D_TEX_ENABLE_ENABLE - | log2i(t->MaxAnisotropy) << 4; + | log2i(t->Sampler.MaxAnisotropy) << 4; if (t->Target == GL_TEXTURE_RECTANGLE) { BEGIN_RING(chan, celsius, NV10_3D_TEX_NPOT_PITCH(i), 1); @@ -198,9 +198,9 @@ nv10_emit_tex_obj(struct gl_context *ctx, int emit) if (t->Sampler.MinFilter != GL_NEAREST && t->Sampler.MinFilter != GL_LINEAR) { - int lod_min = t->MinLod; - int lod_max = MIN2(t->MaxLod, t->_MaxLambda); - int lod_bias = t->LodBias + int lod_min = t->Sampler.MinLod; + int lod_max = MIN2(t->Sampler.MaxLod, t->_MaxLambda); + int lod_bias = t->Sampler.LodBias + ctx->Texture.Unit[i].LodBias; lod_max = CLAMP(lod_max, 0, 15); |