CHIPSET(0x22B1, chv, "Intel(R) HD Graphics XXX (Braswell)") /* Overridden in brw_get_renderer_string */
CHIPSET(0x22B2, chv, "Intel(R) HD Graphics (Cherryview)")
CHIPSET(0x22B3, chv, "Intel(R) HD Graphics (Cherryview)")
+#ifndef PREFER_IRIS
CHIPSET(0x1602, bdw_gt1, "Intel(R) Broadwell GT1")
CHIPSET(0x1606, bdw_gt1, "Intel(R) Broadwell GT1")
CHIPSET(0x160A, bdw_gt1, "Intel(R) Broadwell GT1")
CHIPSET(0x4571, ehl_4x8, "Intel(R) HD Graphics (Elkhart Lake 4x8)")
CHIPSET(0x4551, ehl_4x4, "Intel(R) HD Graphics (Elkhart Lake 4x4)")
CHIPSET(0x4541, ehl_2x4, "Intel(R) HD Graphics (Elkhart Lake 2x4)")
+#endif
value : false,
description : 'Allow work-in-progress freedreno vulkan driver to be enabled',
)
+option(
+ 'prefer-iris',
+ type : 'boolean',
+ value : false,
+ description : 'Prefer new Intel iris driver over older i965 driver'
+)
option('egl-lib-suffix',
type : 'string',
value : '',
libloader_dri3_helper = []
endif
+loader_c_args = [
+ c_vis_args, '-DUSE_DRICONF',
+ '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path),
+]
+
+if with_gallium_iris and get_option('prefer-iris')
+ loader_c_args += ['-DPREFER_IRIS']
+endif
+
libloader = static_library(
'loader',
['loader.c', 'pci_id_driver_map.c'],
- c_args : [c_vis_args, '-DUSE_DRICONF',
- '-DDEFAULT_DRIVER_DIR="@0@"'.format(dri_search_path),
-],
+ c_args : loader_c_args,
include_directories : [inc_include, inc_src, inc_util],
dependencies : [dep_libdrm, dep_thread, idep_xmlconfig_headers],
build_by_default : false,