Fallback when VT inactive

While the VT is inactive, pI830->batch_bo will be NULL, so use that as a
simple check for when to not use the accelerator. The alternative is to
ignore VT switch and just keep drawing, which would also be fine.

Bug #21468.

Signed-off-by: Keith Packard <keithp@keithp.com>
[anholt: Removed extra return FALSE -- I830FALLBACK does that.]
Signed-off-by: Eric Anholt <eric@anholt.net>
This commit is contained in:
Keith Packard 2009-05-07 16:35:19 -07:00 committed by Eric Anholt
parent 660bd745c2
commit e54a23bff0
1 changed files with 3 additions and 0 deletions

View File

@ -126,6 +126,9 @@ i830_get_aperture_space(ScrnInfoPtr pScrn, drm_intel_bo **bo_table, int num_bos)
{
I830Ptr pI830 = I830PTR(pScrn);
if (pI830->batch_bo == NULL)
I830FALLBACK("VT inactive\n");
bo_table[0] = pI830->batch_bo;
if (drm_intel_bufmgr_check_aperture_space(bo_table, num_bos) != 0) {
intel_batch_flush(pScrn, FALSE);