diff options
author | Ian Romanick <[email protected]> | 2011-04-15 18:38:54 -0700 |
---|---|---|
committer | Ian Romanick <[email protected]> | 2011-04-21 17:33:18 -0700 |
commit | 3aa21f93dc1329c6f956277f2746c2a0bdae5446 (patch) | |
tree | bb08ebb6350c487bb69e8366ffcbeeb957273ba8 /src/mesa/swrast/s_context.c | |
parent | a22aba4eae9b29db731487bce90e8292f7e82c72 (diff) |
mesa: Fix bugs in ff fragment shader fog handling
This patch fixes two bugs related to fog in the fixed-function
fragment shader generation code.
Fog was only lowered to instructions if MRTs were used. The fragment
shader assembler always lowers "fog option" code to instructions, and
many drivers (e.g., r300) expect this.
When fog lowering did happen, it was after the instruction count was
checked against implementation limits. Since fog lowering may add up
to 5 instructions, a program that was below the limits before lowering
may exceed the limits after lowering.
NOTE: This is a candidate for the stable branches.
Reviewed-by: Eric Anholt <[email protected]>
Acked-by: Corbin Simpson <[email protected]>
Acked-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/mesa/swrast/s_context.c')
0 files changed, 0 insertions, 0 deletions