drm/radeon/kms: r300 fix CS checker to allow zbuffer-only fastfill
authorMarek Olšák <maraeo@gmail.com>
Tue, 13 Apr 2010 00:33:36 +0000 (02:33 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 28 Apr 2010 07:20:41 +0000 (17:20 +1000)
Signed-off-by: Marek Olšák <maraeo@gmail.com>
drivers/gpu/drm/radeon/r100.c
drivers/gpu/drm/radeon/r100_track.h
drivers/gpu/drm/radeon/r300.c

index c06207e4085c8a05514a38c5f9782d3d8cdd8308..e302579040482a3de52ff03c46c9e40d5af18e28 100644 (file)
@@ -2974,7 +2974,7 @@ int r100_cs_track_check(struct radeon_device *rdev, struct r100_cs_track *track)
 
        for (i = 0; i < track->num_cb; i++) {
                if (track->cb[i].robj == NULL) {
-                       if (!(track->fastfill || track->color_channel_mask ||
+                       if (!(track->zb_cb_clear || track->color_channel_mask ||
                              track->blend_read_enable)) {
                                continue;
                        }
index fadfe68de9cc40520048758de90da3ca10cb703f..f47cdca1c004400586d8eafcad3175d509a504fc 100644 (file)
@@ -75,7 +75,7 @@ struct r100_cs_track {
        struct r100_cs_track_texture    textures[R300_TRACK_MAX_TEXTURE];
        bool                            z_enabled;
        bool                            separate_cube;
-       bool                            fastfill;
+       bool                            zb_cb_clear;
        bool                            blend_read_enable;
 };
 
index 6ec86fc2f4740717a5e4d88b3233f3b6852bbe93..ad0a0e6647c2f741f1e7116494f4f2bb9a8c624d 100644 (file)
@@ -1043,7 +1043,7 @@ static int r300_packet0_check(struct radeon_cs_parser *p,
                break;
        case 0x4d1c:
                /* ZB_BW_CNTL */
-               track->fastfill = !!(idx_value & (1 << 2));
+               track->zb_cb_clear = !!(idx_value & (1 << 5));
                break;
        case 0x4e04:
                /* RB3D_BLENDCNTL */