intel-gem: Fix regression tests.
authorEric Anholt <eric@anholt.net>
Mon, 28 Jul 2008 18:24:00 +0000 (11:24 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 28 Jul 2008 18:29:16 +0000 (11:29 -0700)
commit1bdf35fe19c1aa02b301375b3cae7ad29adacef8
treeb6f812c710413b560ffd0da6e6218b99f12d0919
parentf85fd1b42dc2d77266007c02144d4f4f524e4157
intel-gem: Fix regression tests.

Main fix is an oops that was triggered by the gtt pwrite path when we don't
have the gtt initialized.  Also, settle on -EBADF for "bad object handle",
and -EINVAL for "reading/writing beyond object boundary".
linux-core/i915_gem.c
tests/gem_mmap.c
tests/gem_readwrite.c