loader: Add an environment variable to override driver name choice.
authorEric Anholt <eric@anholt.net>
Fri, 3 Feb 2017 19:02:59 +0000 (11:02 -0800)
committerEric Anholt <eric@anholt.net>
Mon, 6 Feb 2017 20:44:06 +0000 (12:44 -0800)
commit3f462050c29dc29139732987c9c9ef9a670133ab
tree65d8628a257ed358e2ab2750bdaa86c1d072465d
parent61bb1a9795e80501e9000d423d5cc5310b77e65b
loader: Add an environment variable to override driver name choice.

My vc4 simulator has been implemented so far by having an entrypoint
claiming to be i965, which was a bit gross.  The simulator would be a lot
less special if we entered through the vc4 entrypoint like normal, so add
a loader environment variable to allow the i965 fd to probe as vc4.

Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/loader/loader.c