mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-23 13:20:14 +01:00
winsys/surface: add height pitch for gfx9
Signed-off-by: Leo Liu <leo.liu@amd.com> Acked-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
parent
c89e771c9c
commit
6c7870fee8
2 changed files with 2 additions and 0 deletions
|
|
@ -363,6 +363,7 @@ struct gfx9_surf_layout {
|
|||
/* The size of the 2D plane containing all mipmap levels. */
|
||||
uint64_t surf_slice_size;
|
||||
uint16_t surf_pitch; /* in blocks */
|
||||
uint16_t surf_height;
|
||||
/* Y mipmap level offset in blocks. Only valid for LINEAR. */
|
||||
uint16_t surf_ymip_offset[RADEON_SURF_MAX_LEVELS];
|
||||
|
||||
|
|
|
|||
|
|
@ -657,6 +657,7 @@ static int gfx9_compute_miptree(struct amdgpu_winsys *ws,
|
|||
out.mipChainPitch - 1;
|
||||
surf->u.gfx9.surf_slice_size = out.sliceSize;
|
||||
surf->u.gfx9.surf_pitch = out.pitch;
|
||||
surf->u.gfx9.surf_height = out.height;
|
||||
surf->surf_size = out.surfSize;
|
||||
surf->surf_alignment = out.baseAlign;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue