summaryrefslogtreecommitdiff
path: root/lib/igt_core.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-02-24 18:48:13 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2018-02-26 21:28:33 +0000
commitc68b8ee935c75fa4c946f2d97f64ffe9decef010 (patch)
treedff50593221fd585d56a3d9f0c81df0c01dd72af /lib/igt_core.h
parentdd82bdfa86f2086858e2a4bb554aad08a212604e (diff)
igt/gem_softpin: Only expect EINVAL for color-overlaps for user objects
If the specified object can not fit into the GTT due to overlap with a neighbouring pinned object (not part of the execobjects[]), we expect to fail with ENOSPC (as we cannot evict, rather than EINVAL for the user error in a badly constructed execobjects[]). To prevent the tests causing overlap with other external objects expand the test hole by a page on either side. (Setting up the system to deliberately hit ENOSPC is trickier as for example it requires pinned an object into the scanout with enough free space on either side to test.) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Diffstat (limited to 'lib/igt_core.h')
0 files changed, 0 insertions, 0 deletions