summaryrefslogtreecommitdiffstats
path: root/src/gallium/winsys/amdgpu
diff options
context:
space:
mode:
authorLeo Liu <[email protected]>2017-02-10 10:36:21 -0500
committerMarek Olšák <[email protected]>2017-03-30 14:44:33 +0200
commit6c7870fee867bb9ca5c677bc56ca599fff78dcad (patch)
tree47ca1db880d2b3fd89aa21dd80140894a3bf7368 /src/gallium/winsys/amdgpu
parentc89e771c9ccdcce6c971f07889290382b3deb6b0 (diff)
winsys/surface: add height pitch for gfx9
Signed-off-by: Leo Liu <[email protected]> Acked-by: Alex Deucher <[email protected]>
Diffstat (limited to 'src/gallium/winsys/amdgpu')
-rw-r--r--src/gallium/winsys/amdgpu/drm/amdgpu_surface.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c
index fd9e4dd482f..7dfd6d24279 100644
--- a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c
+++ b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c
@@ -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;