i965: Don't emit saturates for instructions without destinations.
authorMatt Turner <mattst88@gmail.com>
Tue, 10 Feb 2015 06:21:21 +0000 (22:21 -0800)
committerMatt Turner <mattst88@gmail.com>
Fri, 20 Feb 2015 05:16:43 +0000 (21:16 -0800)
commitf8b435ae6a27fa2274ff166639b22d0b36d68c49
tree143828a6372c816401c783f67db7868da0599a09
parent7f8dd91d166e49d7da98f90d6428dc2705fb96d0
i965: Don't emit saturates for instructions without destinations.

We were special casing OPCODE_END but no other instructions that have no
destination, like OPCODE_KIL, leading us to emitting MOVs with null
destinations.

total instructions in shared programs: 5705243 -> 5701539 (-0.06%)
instructions in affected programs:     124104 -> 120400 (-2.98%)
helped:                                904

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_fs_fp.cpp
src/mesa/drivers/dri/i965/brw_vec4_vp.cpp