mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 15:10:10 +01:00
softpipe: Fix textureLod with nonzero GL_TEXTURE_LOD_BIAS value
The level-of-detail bias wasn't simply added in the explicit LOD case. This case seems to be tested only in piglit's fs-texturequerylod-nearest-biased test, which is currently skipped, as softpipe does not support textureQueryLod at the moment. Reviewed-by: Brian Paul <brianp@vmware.com>
This commit is contained in:
parent
85500fe2e1
commit
bdc69552ca
1 changed files with 1 additions and 1 deletions
|
|
@ -1892,7 +1892,7 @@ compute_lambda_lod(struct sp_sampler_view *sp_sview,
|
|||
break;
|
||||
case tgsi_sampler_lod_explicit:
|
||||
for (i = 0; i < TGSI_QUAD_SIZE; i++) {
|
||||
lod[i] = CLAMP(lod_in[i], min_lod, max_lod);
|
||||
lod[i] = CLAMP(lod_in[i] + lod_bias, min_lod, max_lod);
|
||||
}
|
||||
break;
|
||||
case tgsi_sampler_lod_zero:
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue