[Mesa-dev] [PATCH v2 0/3] support config for third-party DRI driver load

Qiang Yu Qiang.Yu at amd.com
Fri Aug 3 08:19:29 UTC 2018


v2:
  1. remove /etc/drirc.d
  2. move orginal /etc/drirc to /usr/share/drirc.d
  3. add kernel_driver device attribute

This patch series is discussed in thread:
https://lists.freedesktop.org/archives/mesa-dev/2018-July/201348.html

amdgpu-pro driver can use drirc config to override the mesa radeonsi
dri driver so that it can use the mesa libgbm instead of maintain
a customized one.

We also expand drirc config file location to some directory for the
ease of driver and application to add their own config files.

Qiang Yu (3):
  xmlconfig: read more config files from drirc.d/
  driconf: move ${sysconfdir}/drirc to
    ${datadir}/drirc.d/00-mesa-defaults.conf
  loader: add drirc option to override dri driver to load

 docs/autoconf.html                              |   7 +
 src/gallium/auxiliary/pipe-loader/pipe_loader.c |   2 +-
 src/gallium/targets/d3dadapter9/drm.c           |   2 +-
 src/loader/loader.c                             |  75 ++++--
 src/mesa/drivers/dri/common/dri_util.c          |   2 +-
 src/mesa/drivers/dri/i915/intel_context.c       |   2 +-
 src/mesa/drivers/dri/i965/brw_context.c         |   3 +-
 src/mesa/drivers/dri/i965/intel_screen.c        |   2 +-
 src/mesa/drivers/dri/r200/r200_context.c        |   2 +-
 src/mesa/drivers/dri/radeon/radeon_context.c    |   2 +-
 src/util/00-mesa-defaults.conf                  | 314 ++++++++++++++++++++++++
 src/util/Makefile.am                            |   6 +-
 src/util/drirc                                  | 314 ------------------------
 src/util/meson.build                            |   6 +-
 src/util/xmlconfig.c                            | 113 ++++++---
 src/util/xmlconfig.h                            |   3 +-
 src/util/xmlpool/t_options.h                    |   5 +
 17 files changed, 480 insertions(+), 380 deletions(-)
 create mode 100644 src/util/00-mesa-defaults.conf
 delete mode 100644 src/util/drirc

-- 
2.7.4



More information about the mesa-dev mailing list