Mesa (master): frontends/va/postproc: Use the actual image height when blitting
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Wed Nov 25 20:13:51 UTC 2020
Module: Mesa
Branch: master
Commit: 49465babdb35d88ed8a283e925d6cd346255d50c
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=49465babdb35d88ed8a283e925d6cd346255d50c
Author: Thong Thai <thong.thai at amd.com>
Date: Mon Sep 21 13:53:16 2020 -0400
frontends/va/postproc: Use the actual image height when blitting
Updates the height of the blitting parameter to use the actual image
height instead of the buffer height, otherwise when scaling, garbage
lines are shown in the output.
Signed-off-by: Thong Thai <thong.thai at amd.com>
Acked-by: Leo Liu <leo.liu at amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6803>
---
src/gallium/frontends/va/postproc.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/gallium/frontends/va/postproc.c b/src/gallium/frontends/va/postproc.c
index 18458832844..f84a5aeeb1f 100644
--- a/src/gallium/frontends/va/postproc.c
+++ b/src/gallium/frontends/va/postproc.c
@@ -204,6 +204,7 @@ static VAStatus vlVaPostProcBlit(vlVaDriver *drv, vlVaContext *context,
memset(&blit, 0, sizeof(blit));
blit.src.resource = from->texture;
+ blit.src.resource->height0 = src_region->height;
blit.src.format = from->format;
blit.src.level = 0;
blit.src.box.z = from->u.tex.first_layer;
@@ -211,6 +212,7 @@ static VAStatus vlVaPostProcBlit(vlVaDriver *drv, vlVaContext *context,
vlVaGetBox(src, i, &blit.src.box, src_region);
blit.dst.resource = dst_surfaces[i]->texture;
+ blit.dst.resource->height0 = dst_region->height;
blit.dst.format = dst_surfaces[i]->format;
blit.dst.level = 0;
blit.dst.box.z = dst_surfaces[i]->u.tex.first_layer;
More information about the mesa-commit
mailing list