summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers/dri/i965/brw_fs.h
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2015-05-11 09:29:56 -0700
committerMatt Turner <mattst88@gmail.com>2015-05-18 10:11:36 -0700
commit1e4e17fbd9296cc5064aabdb351a894d10190cb6 (patch)
tree6bf569a6938dc4330ad9d12d012394504c0e416f /src/mesa/drivers/dri/i965/brw_fs.h
parentae405d429ff62e279cb4bb84d29581d4f7467b52 (diff)
downloadexternal_mesa3d-1e4e17fbd9296cc5064aabdb351a894d10190cb6.zip
external_mesa3d-1e4e17fbd9296cc5064aabdb351a894d10190cb6.tar.gz
external_mesa3d-1e4e17fbd9296cc5064aabdb351a894d10190cb6.tar.bz2
i965/fs: Lower integer multiplication after optimizations.
32-bit x 32-bit integer multiplication requires multiple instructions until Broadwell. This patch just lets us treat the MUL instruction in the FS backend like it operates on Broadwell, and after optimizations we lower it into a sequence of instructions on older platforms. Doing this will allow us to some extra optimization on integer multiplies. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_fs.h')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_fs.h b/src/mesa/drivers/dri/i965/brw_fs.h
index 991cff9..f2aa0ae 100644
--- a/src/mesa/drivers/dri/i965/brw_fs.h
+++ b/src/mesa/drivers/dri/i965/brw_fs.h
@@ -241,6 +241,7 @@ public:
void no16(const char *msg, ...);
void lower_uniform_pull_constant_loads();
bool lower_load_payload();
+ bool lower_integer_multiplication();
bool opt_combine_constants();
void emit_dummy_fs();