v3d: Fix simulator mode on i915 render nodes.
authorEric Anholt <eric@anholt.net>
Thu, 20 Dec 2018 00:35:23 +0000 (16:35 -0800)
committerEric Anholt <eric@anholt.net>
Thu, 20 Dec 2018 19:29:30 +0000 (11:29 -0800)
commit0e2758daada1fb858091078f4422bc2c2d6b6d19
treeb3af700140001c1eb248b6f1d5998869348a88ad
parent0ff7eed289dcb1be62a7ed6973200a2e8420372c
v3d: Fix simulator mode on i915 render nodes.

i915 render nodes refuse the dumb ioctls, so the simulator would crash on
the original non-apitrace shader-db.  Replace them with direct i915 calls
if we detect that we're on one of their gem fds.
src/gallium/drivers/v3d/v3d_simulator.c