Mesa (master): svga: change PIPE_CAPF_MAX_TEXTURE_LOD_BIAS from 16.0 to 15.

Brian Paul brianp at kemper.freedesktop.org
Wed Jan 18 09:45:35 PST 2012


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

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Jan 17 16:28:10 2012 -0700

svga: change PIPE_CAPF_MAX_TEXTURE_LOD_BIAS from 16.0 to 15.0

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 <jfonseca at vmware.com>

---

 src/gallium/drivers/svga/svga_screen.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/svga/svga_screen.c b/src/gallium/drivers/svga/svga_screen.c
index 82a3ff2..7359165 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;



More information about the mesa-commit mailing list