Rev 4372 | Rev 4375 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 4372 | Rev 4374 | ||
---|---|---|---|
Line 483... | Line 483... | ||
483 | /* |
483 | /* |
484 | * Make sure we don't wait for a scanline that will |
484 | * Make sure we don't wait for a scanline that will |
485 | * never occur |
485 | * never occur |
486 | */ |
486 | */ |
487 | y1 = clip->t - crtc->t; |
487 | y1 = clip->t - crtc->t; |
488 | if (y1 < 0) |
488 | if (y1 < 1) |
489 | y1 = 0; |
489 | y1 = 1; |
490 | y2 = clip->b - crtc->t; |
490 | y2 = clip->b - crtc->t; |
491 | if (y2 > crtc->b - crtc->t) |
491 | if (y2 > crtc->b - crtc->t) |
492 | y2 = crtc->b - crtc->t; |
492 | y2 = crtc->b - crtc->t; |
493 | // DBG(("%s: clipped range = %d, %d\n", __FUNCTION__, y1, y2)); |
493 | // DBG(("%s: clipped range = %d, %d\n", __FUNCTION__, y1, y2)); |
494 | // printf("%s: clipped range = %d, %d\n", __FUNCTION__, y1, y2); |
494 | // printf("%s: clipped range = %d, %d\n", __FUNCTION__, y1, y2); |
Line 968... | Line 968... | ||
968 | 968 | ||
Line 969... | Line 969... | ||
969 | src_bo = sf->bo; |
969 | src_bo = sf->bo; |
Line -... | Line 970... | ||
- | 970 | ||
970 | 971 | __lock_acquire_recursive(__sna_lock); |
|
971 | __lock_acquire_recursive(__sna_lock); |
972 | |
Line 972... | Line 973... | ||
972 | 973 | #if 1 |
|
973 | { |
974 | { |
Line 984... | Line 985... | ||
984 | clip.b = clip.t+h-1; |
985 | clip.b = clip.t+h-1; |
Line 985... | Line 986... | ||
985 | 986 | ||
986 | kgem_set_mode(&sna_device->kgem, KGEM_RENDER, sna_fb.fb_bo); |
987 | kgem_set_mode(&sna_device->kgem, KGEM_RENDER, sna_fb.fb_bo); |
987 | sna_wait_for_scanline(sna_device, &crtc, &clip); |
988 | sna_wait_for_scanline(sna_device, &crtc, &clip); |
- | 989 | } |
|
Line 988... | Line 990... | ||
988 | } |
990 | #endif |
989 | 991 | ||
990 | if( sna_device->render.blit_tex(sna_device, PictOpSrc,scale, |
992 | if( sna_device->render.blit_tex(sna_device, PictOpSrc,scale, |
991 | &src, src_bo, |
993 | &src, src_bo, |