From: Marek Olšák Date: Sun, 2 May 2010 15:31:06 +0000 (+0200) Subject: r300g: do not validate buffers in check_cs X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b08b7b737760bc4ff8c8326763765c22c777580a;p=mesa.git 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. --- diff --git a/src/gallium/winsys/radeon/drm/radeon_r300.c b/src/gallium/winsys/radeon/drm/radeon_r300.c index 80923de9373..fb779e4033b 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,