OSDN Git Service

i965/fs: Constant-fold immediates in src0 of CMP instructions.
authorEric Anholt <eric@anholt.net>
Sat, 9 Apr 2011 18:22:42 +0000 (08:22 -1000)
committerEric Anholt <eric@anholt.net>
Thu, 14 Apr 2011 00:57:46 +0000 (17:57 -0700)
commit811c147220d2630b769e505ce4d40ef9108fe034
treee8bfc31546bb9ddf03993f06164904005daa494e
parent756c262756b2434efeb2c2a33a180fda0757a6e5
i965/fs: Constant-fold immediates in src0 of CMP instructions.

This is like what we do with add/mul, but we also have to flip the
conditional test.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_eu.c
src/mesa/drivers/dri/i965/brw_eu.h
src/mesa/drivers/dri/i965/brw_fs.cpp