r300g: fix for piglit/fp-indirections2
authorMarek Olšák <maraeo@gmail.com>
Thu, 13 May 2010 22:20:58 +0000 (00:20 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 13 May 2010 22:27:52 +0000 (00:27 +0200)
src/gallium/drivers/r300/r300_screen.c

index 087a25e394b216172628f1e922e16c3c52bc4660..8399f5df8e43f379d3bcc9a7e1da8db1ccc7a76b 100644 (file)
@@ -161,7 +161,7 @@ static int r300_get_param(struct pipe_screen* pscreen, enum pipe_cap param)
         case PIPE_CAP_MAX_FS_TEX_INSTRUCTIONS:
             return is_r500 || is_r400 ? 512 : 32;
         case PIPE_CAP_MAX_FS_TEX_INDIRECTIONS:
-            return is_r500 ? 512 : 4;
+            return is_r500 ? 511 : 4;
         case PIPE_CAP_MAX_FS_CONTROL_FLOW_DEPTH:
             return is_r500 ? 64 : 0; /* Actually unlimited on r500. */
         case PIPE_CAP_MAX_FS_INPUTS: