vc4: Make a new #define for making code conditional on the simulator.
authorEric Anholt <eric@anholt.net>
Tue, 24 Mar 2015 00:26:40 +0000 (17:26 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 24 Mar 2015 17:39:12 +0000 (10:39 -0700)
commitaf3d7471943d54e692f2dd7448321a4f96e56ed2
tree493052e8ab687b82cdf84ff638086b801e3c7ef9
parent9bafcf630ab009b3b39bbe3c0f4370386bc5a6b2
vc4: Make a new #define for making code conditional on the simulator.

I'd like to compile as much of the device-specific code as possible
when building for simulator, and using if (using_simulator) instead of
ifdefs helps.
src/gallium/drivers/vc4/vc4_bufmgr.c
src/gallium/drivers/vc4/vc4_context.h
src/gallium/drivers/vc4/vc4_resource.c