mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 04:40:09 +01:00
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 <kenneth@whitecape.org>
This commit is contained in:
parent
9cfc00a84c
commit
014aaa97d3
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue