diff options
author | Marek Olšák <maraeo@gmail.com> | 2009-12-17 08:02:28 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2009-12-23 04:14:04 +0300 |
commit | 46c64d4bfa01cda7d58c514164f8b127ab6741b7 (patch) | |
tree | 92f3439c7b761d199714cb84bf09a937582b0c6e /drivers/gpu/drm/radeon/r100_track.h | |
parent | 5ea597f3764880ab3a67fe2246218634a8c12778 (diff) | |
download | linux-46c64d4bfa01cda7d58c514164f8b127ab6741b7.tar.xz |
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>
Diffstat (limited to 'drivers/gpu/drm/radeon/r100_track.h')
-rw-r--r-- | drivers/gpu/drm/radeon/r100_track.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r100_track.h b/drivers/gpu/drm/radeon/r100_track.h index 7188c3778ee2..b27a6999d219 100644 --- a/drivers/gpu/drm/radeon/r100_track.h +++ b/drivers/gpu/drm/radeon/r100_track.h @@ -67,13 +67,15 @@ struct r100_cs_track { unsigned immd_dwords; unsigned num_arrays; unsigned max_indx; + unsigned color_channel_mask; struct r100_cs_track_array arrays[11]; struct r100_cs_track_cb cb[R300_MAX_CB]; struct r100_cs_track_cb zb; struct r100_cs_track_texture textures[R300_TRACK_MAX_TEXTURE]; bool z_enabled; bool separate_cube; - + bool fastfill; + bool blend_read_enable; }; int r100_cs_track_check(struct radeon_device *rdev, struct r100_cs_track *track); |