i915g: Use the actual MIN instruction.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Feb 2015 11:36:47 +0000 (03:36 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 17 Feb 2015 23:24:15 +0000 (15:24 -0800)
commit7bf774034a20e6864d63caf8c65cc424454b1bed
tree6ce9a293c964451c30704ef9bcf88e7c9515beb7
parent27b6ef7ecaa60ce192ec74eef2245c25ed4e703b
i915g: Use the actual MIN instruction.

Matt Turner noticed that the hardware has always had a MIN
instruction, but the driver always used MAX+MOV for no
apparent reason.

This should cut an instruction, and a temporary, allowing
more programs to run in hardware.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gallium/drivers/i915/i915_fpc_translate.c