summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2009-10-31 05:38:25 +0100
committerJoakim Sindholt <[email protected]>2009-10-31 07:30:48 +0100
commit3f60130b87a4a75f1b7cb6e0b854001bbe8f7ec8 (patch)
tree8abd46b5d75f3bcdb16353fc7ae0409a04edf07f /src/gallium/drivers
parenta8f85dceb5e721437ba30ec540cd0bf8ee454325 (diff)
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.
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/r300/r300_screen.c4
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 6efa17cbaf8..390b63007e5 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;