diff options
author | Eric Anholt <[email protected]> | 2012-09-21 16:04:52 +0200 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2012-10-08 08:38:49 -0700 |
commit | 014aaa97d3d7f78629e6e030953be0e9fb7f33dd (patch) | |
tree | 304e6d29e8c5048dcb20fa1a37474c3bc11a6a32 /src/mesa | |
parent | 9cfc00a84c7a7176a385808e0b92705e79955505 (diff) |
i965: Reduce maximum GL_ARB_fragment_program instruction count to 1024.
I don't know of any programs that would need more than this. The larger
programs I've seen have neared 100 instructions. This prevent excessive
runtimes of automatic tests that attempt to test up to the exposed maximums
(like fp-long-alu).
Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/mesa')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_context.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index e94df2658ce..c12ebccf067 100644 --- a/src/mesa/drivers/dri/i965/brw_context.c +++ b/src/mesa/drivers/dri/i965/brw_context.c @@ -254,10 +254,10 @@ brwCreateContext(int api, MIN2(ctx->Const.VertexProgram.MaxNativeParameters, ctx->Const.VertexProgram.MaxEnvParams); - ctx->Const.FragmentProgram.MaxNativeInstructions = (16 * 1024); - ctx->Const.FragmentProgram.MaxNativeAluInstructions = (16 * 1024); - ctx->Const.FragmentProgram.MaxNativeTexInstructions = (16 * 1024); - ctx->Const.FragmentProgram.MaxNativeTexIndirections = (16 * 1024); + ctx->Const.FragmentProgram.MaxNativeInstructions = (1 * 1024); + ctx->Const.FragmentProgram.MaxNativeAluInstructions = (1 * 1024); + ctx->Const.FragmentProgram.MaxNativeTexInstructions = (1 * 1024); + ctx->Const.FragmentProgram.MaxNativeTexIndirections = (1 * 1024); ctx->Const.FragmentProgram.MaxNativeAttribs = 12; ctx->Const.FragmentProgram.MaxNativeTemps = 256; ctx->Const.FragmentProgram.MaxNativeAddressRegs = 0; |