nv50: report max lod bias of 15.0
authorIlia Mirkin <imirkin@alum.mit.edu>
Sun, 2 Feb 2020 00:48:07 +0000 (19:48 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Mon, 3 Feb 2020 03:01:18 +0000 (22:01 -0500)
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@alum.mit.edu>
src/gallium/drivers/nouveau/nv50/nv50_screen.c

index ad35bd8cd4267730f2732c8a0a1b1e6734bcd83f..a8600345055dacb8c8a784c16a3b83e9cb7d6881 100644 (file)
@@ -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: