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:
parent
5c3ea9cf69
commit
c7f48684cd
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue