i965/fs: Don't emit unnecessary SEL instruction from emit_image_atomic().
authorFrancisco Jerez <currojerez@riseup.net>
Sun, 7 Feb 2016 02:43:45 +0000 (18:43 -0800)
committerFrancisco Jerez <currojerez@riseup.net>
Mon, 8 Feb 2016 23:43:05 +0000 (15:43 -0800)
commit1817e3c07a63c6404d6df323fbd443ccd9304b02
treeeb929e6c6c803de56f79a4d190c58a0ee8627436
parentc300559fbfa6127320b78c130061fdb6a454658d
i965/fs: Don't emit unnecessary SEL instruction from emit_image_atomic().

The SEL instruction with predication mode NONE emitted when the atomic
operation doesn't need to be predicated is a no-op and might rely on
undocumented hardware behaviour.  Noticed by chance while looking at
the assembly output.

Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_surface_builder.cpp