Mesa (master): nv50: report max lod bias of 15.0

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Feb 3 03:01:52 UTC 2020


Module: Mesa
Branch: master
Commit: a4e627054167ff52742cf45b1aefccffb0de7071
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=a4e627054167ff52742cf45b1aefccffb0de7071

Author: Ilia Mirkin <imirkin at alum.mit.edu>
Date:   Sat Feb  1 19:48:07 2020 -0500

nv50: report max lod bias of 15.0

The blob returns 15, the state creation code clamps it to 15, but since
the dawn of time we've returned 4.0. Setting this to 15 also fixes

GTF-GL33.gtf21.GL3Tests.texture_lod_bias.texture_lod_bias_clamp_m_le_M

which is sensitive to these limits.

Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>

---

 src/gallium/drivers/nouveau/nv50/nv50_screen.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/drivers/nouveau/nv50/nv50_screen.c b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
index ad35bd8cd42..a8600345055 100644
--- a/src/gallium/drivers/nouveau/nv50/nv50_screen.c
+++ b/src/gallium/drivers/nouveau/nv50/nv50_screen.c
@@ -455,7 +455,7 @@ nv50_screen_get_paramf(struct pipe_screen *pscreen, enum pipe_capf param)
    case PIPE_CAPF_MAX_TEXTURE_ANISOTROPY:
       return 16.0f;
    case PIPE_CAPF_MAX_TEXTURE_LOD_BIAS:
-      return 4.0f;
+      return 15.0f;
    case PIPE_CAPF_MIN_CONSERVATIVE_RASTER_DILATE:
    case PIPE_CAPF_MAX_CONSERVATIVE_RASTER_DILATE:
    case PIPE_CAPF_CONSERVATIVE_RASTER_DILATE_GRANULARITY:



More information about the mesa-commit mailing list