drm/radeon/kms: allow rendering while no colorbuffer is set on r300
authorMarek Olšák <maraeo@gmail.com>
Thu, 17 Dec 2009 05:02:28 +0000 (06:02 +0100)
committerDave Airlie <airlied@redhat.com>
Wed, 23 Dec 2009 01:14:04 +0000 (11:14 +1000)
commit46c64d4bfa01cda7d58c514164f8b127ab6741b7
tree92f3439c7b761d199714cb84bf09a937582b0c6e
parent5ea597f3764880ab3a67fe2246218634a8c12778
drm/radeon/kms: allow rendering while no colorbuffer is set on r300

Because hardware cannot disable all colorbuffers directly to do depth-only
rendering, a user should:
- disable reading from a colorbuffer in blending
- disable fastfill
- set the color channel mask to 0 to prevent writing to a colorbuffer

Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r100_track.h
drivers/gpu/drm/radeon/r300.c