mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 15:38:09 +02:00
gallium: fix computation of sampler->min_lod
The texture BaseLevel is accounted for in texture layout so it doesn't factor in here. May also need to adjust max_lod...
This commit is contained in:
parent
6e004e973b
commit
3668d20a9f
1 changed files with 1 additions and 1 deletions
|
|
@ -148,7 +148,7 @@ update_samplers(struct st_context *st)
|
|||
sampler->normalized_coords = 1;
|
||||
|
||||
sampler->lod_bias = st->ctx->Texture.Unit[su].LodBias;
|
||||
sampler->min_lod = MAX2(texobj->BaseLevel, texobj->MinLod);
|
||||
sampler->min_lod = MAX2(0, texobj->MinLod);
|
||||
sampler->max_lod = MIN2(texobj->MaxLevel, texobj->MaxLod);
|
||||
|
||||
sampler->border_color[0] = texobj->BorderColor[RCOMP];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue