From 8cd58df2f2592bf5a19ef7431eccaca6b8a445cc Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Wed, 4 Apr 2018 16:11:03 -0400 Subject: [PATCH] gallium/pp: fix MLAA shaders Reviewed-by: Ilia Mirkin Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99549 --- src/gallium/auxiliary/postprocess/pp_mlaa.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/auxiliary/postprocess/pp_mlaa.h b/src/gallium/auxiliary/postprocess/pp_mlaa.h index 85c14a7..3507f81 100644 --- a/src/gallium/auxiliary/postprocess/pp_mlaa.h +++ b/src/gallium/auxiliary/postprocess/pp_mlaa.h @@ -63,7 +63,7 @@ static const char depth1fs[] = "FRAG\n" " 7: MOV TEMP[1].w, TEMP[0].xxxx\n" " 8: TEX TEMP[0].x, IN[0].xyyy, SAMP[0], 2D\n" " 9: ADD TEMP[2], TEMP[0].xxxx, -TEMP[1]\n" - " 10: ABS TEMP[0], TEMP[2]\n" + " 10: MOV TEMP[0], |TEMP[2]|\n" " 11: SGE TEMP[2], TEMP[0], IMM[0].xxxx\n" " 12: DP4 TEMP[0].x, TEMP[2], IMM[0].zzzz\n" " 13: SEQ TEMP[1].x, TEMP[0].xxxx, IMM[0].yyyy\n" @@ -96,7 +96,7 @@ static const char color1fs[] = "FRAG\n" " 8: TEX TEMP[1].xyz, IN[0].xyyy, SAMP[0], 2D\n" " 9: DP3 TEMP[2].x, TEMP[1].xyzz, IMM[0].xyzz\n" " 10: ADD TEMP[1], TEMP[2].xxxx, -TEMP[0]\n" - " 11: ABS TEMP[0], TEMP[1]\n" + " 11: MOV TEMP[0], |TEMP[1]|\n" " 12: SGE TEMP[2], TEMP[0], IMM[0].wwww\n" " 13: DP4 TEMP[0].x, TEMP[2], IMM[1].xxxx\n" " 14: SEQ TEMP[1].x, TEMP[0].xxxx, IMM[1].yyyy\n" @@ -261,7 +261,7 @@ static const char blend2fs_2[] = " 68: MOV TEMP[4].y, TEMP[1].xxxx\n" " 69: MUL TEMP[5].xy, IMM[2].zzzz, TEMP[4].xyyy\n" " 70: ROUND TEMP[1].xy, TEMP[5].xyyy\n" - " 71: ABS TEMP[4].xy, TEMP[3].xyyy\n" + " 71: MOV TEMP[4].xy, |TEMP[3].xyyy|\n" " 72: MAD TEMP[3].xy, IMM[2].wwww, TEMP[1].xyyy, TEMP[4].xyyy\n" " 73: MUL TEMP[5].xyz, TEMP[3].xyyy, IMM[0].zzzz\n" " 74: MOV TEMP[5].w, IMM[0].xxxx\n" @@ -335,7 +335,7 @@ static const char blend2fs_2[] = "142: MOV TEMP[3].y, TEMP[1].yyyy\n" "143: MUL TEMP[4].xy, IMM[2].zzzz, TEMP[3].xyyy\n" "144: ROUND TEMP[1].xy, TEMP[4].xyyy\n" - "145: ABS TEMP[3].xy, TEMP[2].xyyy\n" + "145: MOV TEMP[3].xy, |TEMP[2].xyyy|\n" "146: MAD TEMP[2].xy, IMM[2].wwww, TEMP[1].xyyy, TEMP[3].xyyy\n" "147: MUL TEMP[3].xyz, TEMP[2].xyyy, IMM[0].zzzz\n" "148: MOV TEMP[3].w, IMM[0].xxxx\n" -- 2.7.4