vc4: Use GEM under simulation even for non-winsys BOs.
authorEric Anholt <eric@anholt.net>
Mon, 4 Aug 2014 20:01:29 +0000 (13:01 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 11 Aug 2014 21:45:32 +0000 (14:45 -0700)
commit8ebfa8fdb27bb5efaeda4fe567622d5de4779342
tree47548c9f35b1a1b6126246eae23cdf0960c2564a
parentcdc208bdaf90017c2e1aaa54d2318b956e801ca0
vc4: Use GEM under simulation even for non-winsys BOs.

In addition to reducing sim-specific code, it also avoids our local handle
allocation conflicting with the host GEM's handle numbering, which was
causing vc4_gem_hindex() to not distinguish between winsys BOs and the
same-numbered non-winsys bo.
src/gallium/drivers/vc4/vc4_bufmgr.c
src/gallium/drivers/vc4/vc4_simulator.c