Re: [Mesa-dev] [PATCH v2] gbm: add support for loading third-party backend (v2)

2017-04-14 Thread Eric Anholt
Emil Velikov writes: > On 14 April 2017 at 10:38, Yu, Qiang wrote: >> >> Hi Emil, >> >>> What happened with the idea of reusing your existing amdgpu_dri.so ? >>> As mentioned before the DRI loader (libgbm) <> DRI driver (foo_dri.so) >>> interface is stable, so things should just work. >> Sorry f

Re: [Mesa-dev] [PATCH v2] gbm: add support for loading third-party backend (v2)

2017-04-14 Thread Emil Velikov
On 14 April 2017 at 10:38, Yu, Qiang wrote: > > Hi Emil, > >> What happened with the idea of reusing your existing amdgpu_dri.so ? >> As mentioned before the DRI loader (libgbm) <> DRI driver (foo_dri.so) >> interface is stable, so things should just work. > Sorry for the late reply. I've asked ou

Re: [Mesa-dev] [PATCH v2] gbm: add support for loading third-party backend (v2)

2017-04-14 Thread Yu, Qiang
Hi Emil, > What happened with the idea of reusing your existing amdgpu_dri.so ? > As mentioned before the DRI loader (libgbm) <> DRI driver (foo_dri.so) > interface is stable, so things should just work. Sorry for the late reply. I've asked our amdgpu_dri.so team for this, they seems have no inte

Re: [Mesa-dev] [PATCH v2] gbm: add support for loading third-party backend (v2)

2017-04-08 Thread Emil Velikov
On 7 April 2017 at 08:28, Qiang Yu wrote: > V2: > 1. export gbmint.h and test backend/libgbm ABI compatible > 2. drop GBM_BACKEND_DIR, specify backend path in config file > 3. add GBM_CONFIG_DIR for config file > 4. add per backend priority > 5. take care of thread safe > > Third-party c

Re: [Mesa-dev] [PATCH v2] gbm: add support for loading third-party backend (v2)

2017-04-07 Thread Yu, Qiang
> sysconfigdir is the right place. If you want it to point to /etc, you > should run configure with --with-sysconfigdir=/etc. The point of > --prefix is to make sure that everything's contained within it. Many > distros choose to set the sysconfigdir to /etc, but that doesn't > change the fact tha

Re: [Mesa-dev] [PATCH v2] gbm: add support for loading third-party backend (v2)

2017-04-07 Thread Ilia Mirkin
On Fri, Apr 7, 2017 at 9:43 AM, Yu, Qiang wrote: > >>> +dnl Directory for GBM >>> + >>> +AC_ARG_WITH([gbm-configdir], >>> +[AS_HELP_STRING([--with-gbm-configdir=DIR], >>> +[directory for the GBM configs @<:@/etc/gbm.conf.d@:>@])], >>> +[GBM_CONFIG_DIR="$withval"], >>> +[GBM_CON

Re: [Mesa-dev] [PATCH v2] gbm: add support for loading third-party backend (v2)

2017-04-07 Thread Yu, Qiang
>> +dnl Directory for GBM >> + >> +AC_ARG_WITH([gbm-configdir], >> +[AS_HELP_STRING([--with-gbm-configdir=DIR], >> +[directory for the GBM configs @<:@/etc/gbm.conf.d@:>@])], >> +[GBM_CONFIG_DIR="$withval"], >> +[GBM_CONFIG_DIR='/etc/gbm.conf.d']) > > Without commenting on the

Re: [Mesa-dev] [PATCH v2] gbm: add support for loading third-party backend (v2)

2017-04-07 Thread Ilia Mirkin
On Fri, Apr 7, 2017 at 3:28 AM, Qiang Yu wrote: > V2: > 1. export gbmint.h and test backend/libgbm ABI compatible > 2. drop GBM_BACKEND_DIR, specify backend path in config file > 3. add GBM_CONFIG_DIR for config file > 4. add per backend priority > 5. take care of thread safe > > Third-p

[Mesa-dev] [PATCH v2] gbm: add support for loading third-party backend (v2)

2017-04-07 Thread Qiang Yu
V2: 1. export gbmint.h and test backend/libgbm ABI compatible 2. drop GBM_BACKEND_DIR, specify backend path in config file 3. add GBM_CONFIG_DIR for config file 4. add per backend priority 5. take care of thread safe Third-party can put their backend to a directory and create a /etc/gbm.