mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-10 08:10:14 +01:00
radeon/video: add gfx9 offsets when rejoin the video surface
For CPU access. Signed-off-by: Leo Liu <leo.liu@amd.com> Cc: mesa-stable@lists.freedesktop.org Reviewed-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
06a12f250f
commit
ea3dc75d72
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue