summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-13 02:20:40 -0700
committerEric Anholt <[email protected]>2010-08-26 14:55:43 -0700
commit3a8ad33dde2f059b82ebf09f5cffa66c86f2e734 (patch)
tree63bbf650370578bf8273b754746d20cbe128171f /include
parenta1bebf73dfdaf2cd23286aa74271b87166589901 (diff)
i965: Add a pass for the FS to reduce vector expressions down to scalar.
This is a step towards implementing a GLSL IR backend for the 965 fragment shader. Because it has downsides with the current codegen, it is hidden under the environment variable INTEL_NEW_FS. This results in an increase in instruction count at the moment (1444 -> 1752 for glsl-fs-raytrace, 345 -> 359 on my demo), because dot products are turned into a series of multiplies and adds instead of a custom expansion of MULs and MACs, and by not splitting the variable types up we don't get tree grafting and thus there are extra moves of temporary storage. However, register count drops for the non-GLSL path (64 -> 56 on my demo shader) because the register allocator sees all the sub-operations.
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions