From 35aaccaf819db8eb41bcf8e971b54a5885e717d1 Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Mon, 27 Feb 2017 22:25:43 +0100 Subject: radeonsi/gfx9: fix linear mipmap CPU access MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Nicolai Hähnle --- src/gallium/winsys/amdgpu/drm/amdgpu_surface.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/winsys/amdgpu') diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c index 7dfd6d24279..756608793b5 100644 --- a/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c +++ b/src/gallium/winsys/amdgpu/drm/amdgpu_surface.c @@ -663,7 +663,7 @@ static int gfx9_compute_miptree(struct amdgpu_winsys *ws, if (in->swizzleMode == ADDR_SW_LINEAR) { for (unsigned i = 0; i < in->numMipLevels; i++) - surf->u.gfx9.surf_ymip_offset[i] = mip_info[i].mipOffsetYPixel; + surf->u.gfx9.offset[i] = mip_info[i].offset; } if (in->flags.depth) { -- cgit v1.2.3