sna: Be defensive when applying size restrictions to bo
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Mar 2014 07:33:09 +0000 (07:33 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 11 Mar 2014 07:33:09 +0000 (07:33 +0000)
commit78970676e79d462cf99509012db54479ba93c01a
treeed18515d08f4002718ac8459fef708eee568954c
parentd10a5abcbd7c751adc08e24d9f4bdc33596b6f12
sna: Be defensive when applying size restrictions to bo

The assumption that all paths prevalidate the restrictions upon creation
the bo are false. Some important paths try to force the bo creation in
order to meet client expectations (e.g. DRI). So we are faced with
impossible requests which must fail, so make sure we do report those
failures.

Bugzilla: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1289049
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/kgem.c