From 42e76d0b24b76fbcc6b08a4ea5003dbec368645c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Wed, 8 Jul 2009 08:51:10 +0200 Subject: Don't always flush CS when switching from 2D to 3D. This works fine here and doubles x11perf -aa10text scores, but may cause problems on other setups according to Dave. Let's see... --- src/radeon.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/radeon.h') diff --git a/src/radeon.h b/src/radeon.h index 5d5d5e1b..d4e89d47 100644 --- a/src/radeon.h +++ b/src/radeon.h @@ -1543,8 +1543,10 @@ do { \ uint32_t flush = 0; \ switch (info->accel_state->engineMode) { \ case EXA_ENGINEMODE_UNKNOWN: \ - case EXA_ENGINEMODE_2D: \ flush = 1; \ + break; \ + case EXA_ENGINEMODE_2D: \ + flush = !info->cs || info->cs->cdw > 15 * 1024; \ case EXA_ENGINEMODE_3D: \ break; \ } \ -- cgit v1.2.3