From: Leo Liu Date: Wed, 25 Oct 2017 13:46:17 +0000 (-0400) Subject: radeon/video: add gfx9 offsets when rejoin the video surface X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ea3dc75d72c148dabffa71e8657bfd831ad0afe9;p=mesa.git radeon/video: add gfx9 offsets when rejoin the video surface For CPU access. Signed-off-by: Leo Liu Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Christian König --- diff --git a/src/gallium/drivers/radeon/radeon_video.c b/src/gallium/drivers/radeon/radeon_video.c index 4f796e8036e..2a7ad187bec 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; }