ac/surface: fix overridden linear pitch for CPU access
Reviewed-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23037>
This commit is contained in:
parent
3f5723a23f
commit
78088ebaea
1 changed files with 1 additions and 0 deletions
|
|
@ -3047,6 +3047,7 @@ bool ac_surface_override_offset_stride(const struct radeon_info *info, struct ra
|
|||
|
||||
surf->u.gfx9.surf_pitch = pitch;
|
||||
surf->u.gfx9.epitch = pitch - 1;
|
||||
surf->u.gfx9.pitch[0] = pitch;
|
||||
surf->u.gfx9.surf_slice_size = (uint64_t)pitch * surf->u.gfx9.surf_height * surf->bpe;
|
||||
surf->total_size = surf->surf_size = surf->u.gfx9.surf_slice_size * slices;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue