summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/Makefile
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 /src/mesa/drivers/dri/i965/Makefile
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 'src/mesa/drivers/dri/i965/Makefile')
-rw-r--r--src/mesa/drivers/dri/i965/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mesa/drivers/dri/i965/Makefile b/src/mesa/drivers/dri/i965/Makefile
index bc4cfab5c02..39acae9e434 100644
--- a/src/mesa/drivers/dri/i965/Makefile
+++ b/src/mesa/drivers/dri/i965/Makefile
@@ -105,7 +105,8 @@ C_SOURCES = \
$(DRIVER_SOURCES)
CXX_SOURCES = \
- brw_fs.cpp
+ brw_fs.cpp \
+ brw_fs_channel_expressions.cpp
ASM_SOURCES =