Mesa (master): softpipe: advertise PIPE_CAP_MAX_TEXTURE_ANISOTROPY as 16.0

Brian Paul brianp at kemper.freedesktop.org
Mon Jun 8 09:58:33 PDT 2009


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

Author: Brian Paul <brianp at vmware.com>
Date:   Mon Jun  8 10:55:34 2009 -0600

softpipe: advertise PIPE_CAP_MAX_TEXTURE_ANISOTROPY as 16.0

Note that this doesn't have any real significance since
PIPE_CAP_ANISOTROPIC_FILTER still returns 0.

---

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

diff --git a/src/gallium/drivers/softpipe/sp_screen.c b/src/gallium/drivers/softpipe/sp_screen.c
index ce6d8eb..692deeb 100644
--- a/src/gallium/drivers/softpipe/sp_screen.c
+++ b/src/gallium/drivers/softpipe/sp_screen.c
@@ -106,7 +106,7 @@ softpipe_get_paramf(struct pipe_screen *screen, int param)
    case PIPE_CAP_MAX_POINT_WIDTH_AA:
       return 255.0; /* arbitrary */
    case PIPE_CAP_MAX_TEXTURE_ANISOTROPY:
-      return 0.0;
+      return 16.0; /* not actually signficant at this time */
    case PIPE_CAP_MAX_TEXTURE_LOD_BIAS:
       return 16.0; /* arbitrary */
    default:



More information about the mesa-commit mailing list