Mesa (master): nine: Don' t use the otherwise-dead SFL opcode in an unreachable path.

Eric Anholt anholt at kemper.freedesktop.org
Mon Nov 24 23:06:33 UTC 2014


Module: Mesa
Branch: master
Commit: 7c0acd8535b36077b832e78f1f3a53176e453d74
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=7c0acd8535b36077b832e78f1f3a53176e453d74

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Nov 20 14:17:07 2014 -0800

nine: Don't use the otherwise-dead SFL opcode in an unreachable path.

Reviewed-by: Jose Fonseca <jfonseca at vmware.com>
Reviewed-by: Axel Davy <axel.davy at ens.fr>
Reviewed-by: David Heidelberg <david at ixit.cz>

---

 src/gallium/state_trackers/nine/nine_shader.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/gallium/state_trackers/nine/nine_shader.c b/src/gallium/state_trackers/nine/nine_shader.c
index cc027b4..9b324c3 100644
--- a/src/gallium/state_trackers/nine/nine_shader.c
+++ b/src/gallium/state_trackers/nine/nine_shader.c
@@ -1615,7 +1615,7 @@ sm1_insn_flags_to_tgsi_setop(BYTE flags)
     case NINED3DSHADER_REL_OP_LE: return TGSI_OPCODE_SLE;
     default:
         assert(!"invalid comparison flags");
-        return TGSI_OPCODE_SFL;
+        return TGSI_OPCODE_SGT;
     }
 }
 




More information about the mesa-commit mailing list