From b08b7b737760bc4ff8c8326763765c22c777580a Mon Sep 17 00:00:00 2001 From: Marek Olšák Date: Sun, 2 May 2010 17:31:06 +0200 Subject: r300g: do not validate buffers in check_cs It's already done in r300_emit_buffer_validate. This also fixes Total Annihilation 3D on debug builds at least. --- src/gallium/winsys/radeon/drm/radeon_r300.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium') diff --git a/src/gallium/winsys/radeon/drm/radeon_r300.c b/src/gallium/winsys/radeon/drm/radeon_r300.c index 80923de937..fb779e4033 100644 --- a/src/gallium/winsys/radeon/drm/radeon_r300.c +++ b/src/gallium/winsys/radeon/drm/radeon_r300.c @@ -181,7 +181,7 @@ static boolean radeon_check_cs(struct r300_winsys_screen *rws, int size) struct radeon_libdrm_winsys *ws = radeon_winsys_screen(rws); struct radeon_cs *cs = ws->cs; - return radeon_validate(rws) && cs->cdw + size <= cs->ndw; + return cs->cdw + size <= cs->ndw; } static void radeon_begin_cs(struct r300_winsys_screen *rws, -- cgit v1.2.3