r300: Cleanup reported native program limits
authorNicolai Hähnle <nhaehnle@gmail.com>
Thu, 27 Aug 2009 15:51:12 +0000 (17:51 +0200)
committerNicolai Hähnle <nhaehnle@gmail.com>
Thu, 27 Aug 2009 16:13:48 +0000 (18:13 +0200)
The fragment program native limits are actually higher on R4xx
as reported by Alex Deucher, but using those requires some
bit-twiddling changes to program handling.

Signed-off-by: Nicolai Hähnle <nhaehnle@gmail.com>
src/mesa/drivers/dri/r300/r300_context.c

index 0bf002caeab32fddb8d3c3e623f167bd901650b9..2ea1b826de972f6ce3ebe56f2ff70371c2a112d8 100644 (file)
@@ -363,13 +363,10 @@ static void r300InitConstValues(GLcontext *ctx, radeonScreenPtr screen)
 
        /* currently bogus data */
        if (r300->options.hw_tcl_enabled) {
-               ctx->Const.VertexProgram.MaxInstructions = VSF_MAX_FRAGMENT_LENGTH / 4;
-               ctx->Const.VertexProgram.MaxNativeInstructions =
-                 VSF_MAX_FRAGMENT_LENGTH / 4;
+               ctx->Const.VertexProgram.MaxNativeInstructions = VSF_MAX_FRAGMENT_LENGTH / 4;
+               ctx->Const.VertexProgram.MaxNativeAluInstructions = VSF_MAX_FRAGMENT_LENGTH / 4;
                ctx->Const.VertexProgram.MaxNativeAttribs = 16; /* r420 */
-               ctx->Const.VertexProgram.MaxTemps = 32;
-               ctx->Const.VertexProgram.MaxNativeTemps =
-                 /*VSF_MAX_FRAGMENT_TEMPS */ 32;
+               ctx->Const.VertexProgram.MaxNativeTemps = 32;
                ctx->Const.VertexProgram.MaxNativeParameters = 256;     /* r420 */
                ctx->Const.VertexProgram.MaxNativeAddressRegs = 1;
        }