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.
This commit is contained in:
Marek Olšák 2009-10-31 05:38:25 +01:00 committed by Joakim Sindholt
parent a8f85dceb5
commit 3f60130b87

View 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;