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>
(cherry picked from commit c81aa15d64)
This commit is contained in:
Thong Thai 2020-02-18 12:11:39 -05:00 committed by Eric Engestrom
parent 9de8d58ab2
commit ce2921a9c3
2 changed files with 5 additions and 1 deletions

View file

@ -13738,7 +13738,7 @@
"description": "gallium/auxiliary/vl: fix bob compute shaders for deint yuv",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"master_sha": null,
"because_sha": null
},

View file

@ -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"