shader: fix UCMP translation

macos/master
Marc-André Lureau 10 years ago committed by Dave Airlie
parent ee78525252
commit e4880f6bd3
  1. 2
      src/vrend_shader.c

@ -1657,7 +1657,7 @@ iter_instruction(struct tgsi_iterate_context *iter,
break; break;
case TGSI_OPCODE_CMP: case TGSI_OPCODE_CMP:
case TGSI_OPCODE_UCMP: 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); EMIT_BUF_WITH_RET(ctx, buf);
break; break;
case TGSI_OPCODE_END: case TGSI_OPCODE_END:

Loading…
Cancel
Save