summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary/pipe-loader
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2015-11-21 12:52:48 -0800
committerEric Anholt <[email protected]>2015-11-22 13:15:43 -0800
commit1b62a4e885267c374dbbe5d5bb2c36515eee6a95 (patch)
treeee44f5ba1ba529ed0bb017282510aed597a579ff /src/gallium/auxiliary/pipe-loader
parenta39eac80fd491abb990b0b77dd5e4adc5b9c53e1 (diff)
vc4: Take precedence over ilo when in simulator mode.
They're exclusive at build time, but the ilo entry is always present, so we'd try to use it and fail out. v2: Add comment in the code, from Emil. Cc: [email protected] Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/pipe-loader')
-rw-r--r--src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c20
1 files changed, 12 insertions, 8 deletions
diff --git a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
index b5dfc56f49d..994a284385c 100644
--- a/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
+++ b/src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c
@@ -94,6 +94,18 @@ static const struct drm_driver_descriptor driver_descriptors[] = {
.create_screen = pipe_i915_create_screen,
.configuration = configuration_query,
},
+#ifdef USE_VC4_SIMULATOR
+ /* VC4 simulator and ILO (i965) are mutually exclusive (error at
+ * configure). As the latter is unconditionally added, keep this one above
+ * it.
+ */
+ {
+ .name = "i965",
+ .driver_name = "vc4",
+ .create_screen = pipe_vc4_create_screen,
+ .configuration = configuration_query,
+ },
+#endif
{
.name = "i965",
.driver_name = "i915",
@@ -154,14 +166,6 @@ static const struct drm_driver_descriptor driver_descriptors[] = {
.create_screen = pipe_vc4_create_screen,
.configuration = configuration_query,
},
-#ifdef USE_VC4_SIMULATOR
- {
- .name = "i965",
- .driver_name = "vc4",
- .create_screen = pipe_vc4_create_screen,
- .configuration = configuration_query,
- },
-#endif
};
#endif