r300g: pretend NPOT support
authorMarek Olšák <maraeo@gmail.com>
Sat, 31 Oct 2009 04:38:25 +0000 (05:38 +0100)
committerJoakim Sindholt <opensource@zhasha.com>
Sat, 31 Oct 2009 06:30:48 +0000 (07:30 +0100)
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

index 6efa17cbaf8e1ae61bbef48b6cf93a6d1d11a60f..390b63007e5f2ee50660de39c6dc165382a00d19 100644 (file)
@@ -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;