[PATCH] drm/radeon/kms: fix nsample tracking in r6xx/r7xx CS tracker
Alex Deucher
alexdeucher at gmail.com
Thu Aug 12 21:48:27 PDT 2010
Initialize nsamples to 1 in case userspace does not emit
PA_SC_AA_CONFIG.
Signed-off-by: Alex Deucher <alexdeucher at gmail.com>
Cc: Andre Maasikas <amaasikas at gmail.com>
---
drivers/gpu/drm/radeon/r600_cs.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/gpu/drm/radeon/r600_cs.c b/drivers/gpu/drm/radeon/r600_cs.c
index 8e165b2..b03f93b 100644
--- a/drivers/gpu/drm/radeon/r600_cs.c
+++ b/drivers/gpu/drm/radeon/r600_cs.c
@@ -163,6 +163,7 @@ static void r600_cs_track_init(struct r600_cs_track *track)
track->db_depth_size = 0xFFFFFFFF;
track->db_depth_size_idx = 0;
track->db_depth_control = 0xFFFFFFFF;
+ track->nsamples = 1;
}
static inline int r600_cs_track_validate_cb(struct radeon_cs_parser *p, int i)
--
1.7.1.1
More information about the dri-devel
mailing list