drm/radeon/kms: r300 fix CS checker to allow zbuffer-only fastfill
Subsystems (2)
PATCH 1/1 drm/radeon/kms: r300 fix CS checker to allow zbuffer-only fastfill
Please review.
From 0a280d952ab5417e8b8a37c6e76465480a6a199d Mon Sep 17 00:00:00 2001
From: =?utf-8?q?Marek=20Ol=C5=A1=C3=A1k?= <[email protected]>
Date: Tue, 13 Apr 2010 02:33:36 +0200
Subject: [PATCH] drm/radeon/kms: r300 fix CS checker to allow zbuffer-only fastfill
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: 8bit
Signed-off-by Marek Olšák <[email protected]>
--- drivers/gpu/drm/radeon/r100.c | 2 +- drivers/gpu/drm/radeon/r100_track.h | 2 +- drivers/gpu/drm/radeon/r300.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/gpu/drm/radeon/r100.c +1 -1
@@ -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 ; }
drivers/gpu/drm/radeon/r100_track.h +1 -1
@@ -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; };
drivers/gpu/drm/radeon/r300.c +1 -1
@@ -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 */
Signature · 1 line
1.6.3.3
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel