Mesa (master): r300g: pretend NPOT support

Joakim Sindholt jsindholt at kemper.freedesktop.org
Sat Oct 31 06:31:15 UTC 2009


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

Author: Marek Olšák <maraeo at gmail.com>
Date:   Sat Oct 31 05:38:25 2009 +0100

r300g: pretend NPOT support

It's requires to get GL2.1, therefore, much more piglit tests can be used
for testing. Figure out later how to emulate this.

---

 src/gallium/drivers/r300/r300_screen.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c
index 6efa17c..390b630 100644
--- a/src/gallium/drivers/r300/r300_screen.c
+++ b/src/gallium/drivers/r300/r300_screen.c
@@ -84,7 +84,9 @@ static int r300_get_param(struct pipe_screen* pscreen, int param)
             /* XXX I'm told this goes up to 16 */
             return 8;
         case PIPE_CAP_NPOT_TEXTURES:
-            return 0;
+            /* XXX enable now to get GL2.1 API,
+             * figure out later how to emulate this */
+            return 1;
         case PIPE_CAP_TWO_SIDED_STENCIL:
             if (r300screen->caps->is_r500) {
                 return 1;




More information about the mesa-commit mailing list