drm/radeon: allow MIP_ADDRESS=0 for MSAA textures on Evergreen
authorMarek Olšák <maraeo@gmail.com>
Tue, 25 Sep 2012 01:34:01 +0000 (03:34 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 27 Sep 2012 14:22:45 +0000 (10:22 -0400)
commit61051afd3540da71c1ac32f17ed663595a0f7ecb
treebdf32d1bd9b87a85e305568157751c45bcd946f1
parent46fc8781bf428ce1094a5980ca2b92a49d33a8ca
drm/radeon: allow MIP_ADDRESS=0 for MSAA textures on Evergreen

MIP_ADDRESS should point to the resolved FMASK for an MSAA texture.
Setting MIP_ADDRESS to 0 means the FMASK pointer is invalid (the GPU
won't read the memory then).

The userspace has to set MIP_ADDRESS to 0 and *not* emit any relocation
for it.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Cc: stable@vger.kernel.org
drivers/gpu/drm/radeon/evergreen_cs.c
drivers/gpu/drm/radeon/radeon_drv.c