sna: Only disallow hw sprite scaling on Haswell

Earlier chips (Ironlake, Sandybridge and Ivybridge) have integrated
sprite scalers.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2012-10-23 15:17:56 +01:00
parent 5c3ea9cf69
commit c7f48684cd
1 changed files with 9 additions and 2 deletions

View File

@ -114,8 +114,15 @@ static void sna_video_sprite_best_size(ScrnInfoPtr scrn, Bool motion,
unsigned int *p_w, unsigned int *p_h,
pointer data)
{
*p_w = vid_w;
*p_h = vid_h;
struct sna *sna = to_sna(scrn);
if (sna->kgem.gen == 75) {
*p_w = vid_w;
*p_h = vid_h;
} else {
*p_w = drw_w;
*p_h = drw_h;
}
}
static void