diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-02-24 08:12:42 +0100 |
---|---|---|
committer | Michel Dänzer <daenzer@vmware.com> | 2009-02-24 08:12:42 +0100 |
commit | e2e508bc08d993fc108297e9cd2fa0ce183282bc (patch) | |
tree | 0f51e937d3075b58bef1a56b4d4361b821a1076f /src/radeon_commonfuncs.c | |
parent | 5ab8699c97c050424cf813b9a60550aba32446a2 (diff) |
Only call RADEONWaitForVLine if it might actually do anything useful.
Otherwise it and RADEONBiggerCrtcArea show up pretty high in x11perf -aa*text
profiles.
Diffstat (limited to 'src/radeon_commonfuncs.c')
-rw-r--r-- | src/radeon_commonfuncs.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/radeon_commonfuncs.c b/src/radeon_commonfuncs.c index 0a9f9db9..3aa61bcc 100644 --- a/src/radeon_commonfuncs.c +++ b/src/radeon_commonfuncs.c @@ -628,16 +628,13 @@ static void FUNC_NAME(RADEONInit3DEngine)(ScrnInfoPtr pScrn) /* inserts a wait for vline in the command stream */ void FUNC_NAME(RADEONWaitForVLine)(ScrnInfoPtr pScrn, PixmapPtr pPix, - int crtc, int start, int stop, Bool enable) + int crtc, int start, int stop) { RADEONInfoPtr info = RADEONPTR(pScrn); xf86CrtcConfigPtr xf86_config = XF86_CRTC_CONFIG_PTR(pScrn); uint32_t offset; ACCEL_PREAMBLE(); - if (!enable) - return; - if ((crtc < 0) || (crtc > 1)) return; |