sna: Fix no relaxed delta path for gen4+

This is for debug purposes only.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
Chris Wilson 2014-06-06 22:07:44 +01:00
parent a378196fdd
commit c65fab0740
1 changed files with 1 additions and 1 deletions

View File

@ -2981,7 +2981,7 @@ static int compact_batch_surface(struct kgem *kgem)
int size, shrink, n;
if (!kgem->has_relaxed_delta)
return kgem->batch_size;
return kgem->batch_size * sizeof(uint32_t);
/* See if we can pack the contents into one or two pages */
n = ALIGN(kgem->batch_size, 1024);