drm/radeon: add si tile mode array query v3
authorJerome Glisse <jglisse@redhat.com>
Tue, 9 Apr 2013 15:17:08 +0000 (11:17 -0400)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 11 Apr 2013 13:22:06 +0000 (09:22 -0400)
commit64d7b8bed851f55a17d15ec6cc60233c85f84357
tree82cd8c562091e6fda2419fc49002398a0d094b1c
parent902aaef6c698ce0f04a6acab2d5396519d5de330
drm/radeon: add si tile mode array query v3

Allow userspace to query for the tile mode array so userspace can properly
compute surface pitch and alignment requirement depending on tiling.

v2: Make strict aliasing safer by casting to char when copying
v3: merge fix from Christian

Signed-off-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/radeon_kms.c
drivers/gpu/drm/radeon/si.c
include/uapi/drm/radeon_drm.h