Mesa (master): radeon/video: add gfx9 offsets when rejoin the video surface
Leo Liu
leoliu at kemper.freedesktop.org
Thu Oct 26 12:32:36 UTC 2017
Module: Mesa
Branch: master
Commit: ea3dc75d72c148dabffa71e8657bfd831ad0afe9
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=ea3dc75d72c148dabffa71e8657bfd831ad0afe9
Author: Leo Liu <leo.liu at amd.com>
Date: Wed Oct 25 09:46:17 2017 -0400
radeon/video: add gfx9 offsets when rejoin the video surface
For CPU access.
Signed-off-by: Leo Liu <leo.liu at amd.com>
Cc: mesa-stable at lists.freedesktop.org
Reviewed-by: Christian König <christian.koenig at amd.com>
---
src/gallium/drivers/radeon/radeon_video.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c
index 4f796e8036..2a7ad187be 100644
--- a/src/gallium/drivers/radeon/radeon_video.c
+++ b/src/gallium/drivers/radeon/radeon_video.c
@@ -182,8 +182,11 @@ void si_vid_join_surfaces(struct r600_common_context *rctx,
for (j = 0; j < ARRAY_SIZE(surfaces[i]->u.legacy.level); ++j)
surfaces[i]->u.legacy.level[j].offset += off;
- } else
+ } else {
surfaces[i]->u.gfx9.surf_offset += off;
+ for (j = 0; j < ARRAY_SIZE(surfaces[i]->u.gfx9.offset); ++j)
+ surfaces[i]->u.gfx9.offset[j] += off;
+ }
off += surfaces[i]->surf_size;
}
More information about the mesa-commit
mailing list