i965/fp: Emit discard jumps.
authorKenneth Graunke <kenneth@whitecape.org>
Tue, 24 Feb 2015 20:48:56 +0000 (12:48 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Thu, 19 Mar 2015 23:14:51 +0000 (16:14 -0700)
commit201aef9d1370ff524f856b725d2328c4f48199e8
tree7bd71c90ea89dc85a9c9f3fd0dc43f965ae0bb87
parent8a0946f3b1522e5f91afe14c8c3b22ba6009ed04
i965/fp: Emit discard jumps.

This should improve the performance of any shaders using the KIL
instruction.  I'm a bit surprised we missed this.

Unfortunately, I have not been able to measure any performance
improvements from this patch.  It does make ARB_fragment_program
behave similarly to GLSL code.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/mesa/drivers/dri/i965/brw_fs_fp.cpp