drm/radeon/kms: manage r300 CMASK RAM access and allow CMASK clear
authorMarek Olšák <maraeo@gmail.com>
Wed, 5 Jan 2011 04:46:48 +0000 (05:46 +0100)
committerDave Airlie <airlied@redhat.com>
Thu, 6 Jan 2011 03:00:45 +0000 (13:00 +1000)
commit9eba4a93ce520a627e876b0d1851d4f78a701c2b
treea0dbb86c2105b4ff89af724b835d0c40fbf59368
parent2f299d5de02da3ffb1f9e1a05c91dcd1173ebd3c
drm/radeon/kms: manage r300 CMASK RAM access and allow CMASK clear

The CMASK RAM is for colorbuffer compression (used in conjunction
with MSAA). Only one user (filp) can access it.

The CMASK RAM access is managed in the same way as Hyper-Z, but there is
a separate ioctl, because an app that uses MSAA does not necessarily
have to use zbuffering.

Signed-off-by: Marek Olšák <maraeo@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r300.c
drivers/gpu/drm/radeon/r300d.h
drivers/gpu/drm/radeon/radeon.h
drivers/gpu/drm/radeon/radeon_drv.c
drivers/gpu/drm/radeon/radeon_kms.c
include/drm/radeon_drm.h