OSDN Git Service

winsys/amdgpu: fix radeon_surf::macro_tile_index for imported textures
authorMarek Olšák <marek.olsak@amd.com>
Mon, 24 Oct 2016 17:05:10 +0000 (19:05 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 26 Oct 2016 11:02:58 +0000 (13:02 +0200)
commit6ec3b2a4b1d41b83a4721d06b42c49f55e695cbf
tree267d6770d44333e04ad933d77dd47fc0e93369a8
parentdce05b342355eac9296ee7110385b16d6edb059d
winsys/amdgpu: fix radeon_surf::macro_tile_index for imported textures

Maybe this is why SDMA has been broken for many amdgpu users?

SDMA is the only block which is used with imported textures and relies
on this variable. DB also uses it, but it doesn't get imported textures,
so it's unaffected.

I do get SDMA failures on Tonga before this patch if R600_DEBUG=testdma
is changed to use imported textures.

Cc: 11.2 12.0 13.0 <mesa-stable@lists.freedesktop.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/winsys/amdgpu/drm/amdgpu_surface.c