From a9eda41539bd63ed1835556ad3afc77ee01f6a6a Mon Sep 17 00:00:00 2001 From: Brian Paul Date: Tue, 17 Jan 2012 16:28:10 -0700 Subject: [PATCH] svga: change PIPE_CAPF_MAX_TEXTURE_LOD_BIAS from 16.0 to 15.0 MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit The legal range for the device is apparently [-16.0, +15.0]. Limiting the range to [-15, +15] fixes piglit's lodbias test. NOTE: This is a candidate for the 8.0 branch. Reviewed-by: José Fonseca --- src/gallium/drivers/svga/svga_screen.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c index 82a3ff2bc2e..7359165621e 100644 --- a/src/gallium/drivers/svga/svga_screen.c +++ b/src/gallium/drivers/svga/svga_screen.c @@ -120,7 +120,7 @@ svga_get_paramf(struct pipe_screen *screen, enum pipe_capf param) return result.u; case PIPE_CAPF_MAX_TEXTURE_LOD_BIAS: - return 16.0; + return 15.0; default: return 0; -- 2.30.2