]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:50:29 +0000 (05:50 +0900)
commit4b9a37d406a64d169927c12aff51ba72c2b89311
tree00edfc5a2c59f6aa5b98e78e65429405bdcf8736
parentbfe6102b77bd9a3925fa84517e047170befa75c5
drm/radeon: allow MIP_ADDRESS=0 for MSAA textures on Evergreen

commit 61051afd3540da71c1ac32f17ed663595a0f7ecb upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/radeon/evergreen_cs.c
drivers/gpu/drm/radeon/radeon_drv.c