From e4880f6bd3d2f02376cabaaacb6937a99c018090 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= Date: Thu, 5 Mar 2015 04:00:07 +0100 Subject: [PATCH] shader: fix UCMP translation --- src/vrend_shader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/vrend_shader.c b/src/vrend_shader.c index d6b6973..10bdd48 100644 --- a/src/vrend_shader.c +++ b/src/vrend_shader.c @@ -1657,7 +1657,7 @@ iter_instruction(struct tgsi_iterate_context *iter, break; case TGSI_OPCODE_CMP: case TGSI_OPCODE_UCMP: - snprintf(buf, 255, "%s = mix(%s, %s, greaterThanEqual(%s, vec4(0.0)))%s;\n", dsts[0], srcs[1], srcs[2], srcs[0], writemask); + snprintf(buf, 255, "%s = mix(%s, %s, notEqual(%s, vec4(0.0)))%s;\n", dsts[0], srcs[2], srcs[1], srcs[0], writemask); EMIT_BUF_WITH_RET(ctx, buf); break; case TGSI_OPCODE_END: