i915c: Use the actual MIN instruction.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 10 Feb 2015 11:36:48 +0000 (03:36 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 17 Feb 2015 23:24:15 +0000 (15:24 -0800)
commit598d144cef412f114bddccc5d3c428682b41a7c2
treef97cee0e201ec9e19b30c8228430c90c5e2b9915
parent7bf774034a20e6864d63caf8c65cc424454b1bed
i915c: 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/mesa/drivers/dri/i915/i915_fragprog.c