summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/common/utils.h
diff options
context:
space:
mode:
authorIan Romanick <ian.d.romanick@intel.com>2011-04-15 18:38:54 -0700
committerIan Romanick <ian.d.romanick@intel.com>2011-04-21 17:33:18 -0700
commit3aa21f93dc1329c6f956277f2746c2a0bdae5446 (patch)
treebb08ebb6350c487bb69e8366ffcbeeb957273ba8 /src/mesa/drivers/dri/common/utils.h
parenta22aba4eae9b29db731487bce90e8292f7e82c72 (diff)
downloadexternal_mesa3d-3aa21f93dc1329c6f956277f2746c2a0bdae5446.zip
external_mesa3d-3aa21f93dc1329c6f956277f2746c2a0bdae5446.tar.gz
external_mesa3d-3aa21f93dc1329c6f956277f2746c2a0bdae5446.tar.bz2
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 <eric@anholt.net> Acked-by: Corbin Simpson <MostAwesomeDude@gmail.com> Acked-by: Alex Deucher <alexdeucher@gmail.com>
Diffstat (limited to 'src/mesa/drivers/dri/common/utils.h')
0 files changed, 0 insertions, 0 deletions