summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThong Thai <thong.thai@amd.com>2020-02-18 12:11:39 -0500
committerMarge Bot <eric+marge@anholt.net>2020-02-19 23:23:07 +0000
commitc81aa15d646215eac38c8e0b6dc1a10b35bc13c3 (patch)
tree2c8494bca46764379f5aa2177fe12b0dfc9a8c8f
parent68d1757420be28e99e4e919ed2e0c6062e2460c5 (diff)
downloadmesa-c81aa15d646215eac38c8e0b6dc1a10b35bc13c3.tar.gz
gallium/auxiliary/vl: fix bob compute shaders for deint yuv
Scales the Y-axis by 2 when using the Bob deinterlace filter. Closes: https://gitlab.freedesktop.org/mesa/mesa/issues/2523 Signed-off-by: Thong Thai <thong.thai@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com> Tested-by: Marge Bot <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3857> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/merge_requests/3857>
-rw-r--r--src/gallium/auxiliary/vl/vl_compositor_cs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/vl/vl_compositor_cs.c b/src/gallium/auxiliary/vl/vl_compositor_cs.c
index e2bd06a870c..73576f066ee 100644
--- a/src/gallium/auxiliary/vl/vl_compositor_cs.c
+++ b/src/gallium/auxiliary/vl/vl_compositor_cs.c
@@ -514,7 +514,9 @@ static const char *compute_shader_yuv_bob_y =
/* Scale */
"DIV TEMP[2], TEMP[2], CONST[3].zwzw\n"
+ "DIV TEMP[2], TEMP[2], IMM[1].xyxy\n"
"DIV TEMP[3], TEMP[3], CONST[3].zwzw\n"
+ "DIV TEMP[3], TEMP[3], IMM[1].xyxy\n"
/* Fetch texels */
"TEX_LZ TEMP[4].x, TEMP[2], SAMP[0], RECT\n"
@@ -564,7 +566,9 @@ static const char *compute_shader_yuv_bob_uv =
/* Scale */
"DIV TEMP[2], TEMP[2], CONST[3].zwzw\n"
+ "DIV TEMP[2], TEMP[2], IMM[1].xyxy\n"
"DIV TEMP[3], TEMP[3], CONST[3].zwzw\n"
+ "DIV TEMP[3], TEMP[3], IMM[1].xyxy\n"
/* Fetch texels */
"TEX_LZ TEMP[4].x, TEMP[2], SAMP[0], RECT\n"