diff options
author | Eric Anholt <[email protected]> | 2010-06-30 17:05:11 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-06-30 17:29:09 -0700 |
commit | e558786a3ed52222c07f916e213b63dcba1890a2 (patch) | |
tree | ffc2aa617596e9f63da7d403400b7f59560a6ed7 /src/mesa/drivers/dri/i965/brw_wm_glsl.c | |
parent | d6ebe9b16b25f25ba763baf3738addc50676d5d0 (diff) |
i965: Add support for OPCODE_SSG.
The old compiler didn't use SSG, and instead emitted SGT/SGT/SUB. We
can do a little better for SSG than we do for the SGT series.
Diffstat (limited to 'src/mesa/drivers/dri/i965/brw_wm_glsl.c')
-rw-r--r-- | src/mesa/drivers/dri/i965/brw_wm_glsl.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/i965/brw_wm_glsl.c b/src/mesa/drivers/dri/i965/brw_wm_glsl.c index fe3c89b7212..e23ce7ad7a5 100644 --- a/src/mesa/drivers/dri/i965/brw_wm_glsl.c +++ b/src/mesa/drivers/dri/i965/brw_wm_glsl.c @@ -1971,6 +1971,9 @@ static void brw_wm_emit_glsl(struct brw_context *brw, struct brw_wm_compile *c) emit_sop(p, dst, dst_flags, BRW_CONDITIONAL_NEQ, args[0], args[1]); break; + case OPCODE_SSG: + emit_sign(p, dst, dst_flags, args[0]); + break; case OPCODE_MUL: emit_alu2(p, brw_MUL, dst, dst_flags, args[0], args[1]); break; |