[Mesa-dev] [PATCH v4 2/6] xmlconfig: read more config files from drirc.d/

2018-08-05 Thread Qiang Yu
Driver and application can put their drirc files in ${datadir}/drirc.d/ with name xxx.conf. Config files will be read and applied in file name alphabetic order. So there are three places for drirc listed in order: 1. /usr/share/drirc.d/ 2. /etc/drirc 3. ~/.drirc v4: fix meson build v3: 1. se

[Mesa-dev] [PATCH v3 6/6] loader: add dri_driver option to override dri driver to load

2018-08-05 Thread Qiang Yu
drirc implementation of MESA_LOADER_DRIVER_OVERRIDE which can be used to override dri driver to load. Usage: override dri driver for device with spec kernel driver name: or v3: 1. seperate loader_get_kernel_driver_name into another patch 2. seperate add kernel_driver attribute i

[Mesa-dev] [PATCH v3 5/6] xmlconfig: add kernel_driver device attribute

2018-08-05 Thread Qiang Yu
This attribute can be used by loader to apply different option to device use specific kernel driver. Signed-off-by: Qiang Yu --- src/gallium/auxiliary/pipe-loader/pipe_loader.c | 2 +- src/gallium/targets/d3dadapter9/drm.c | 2 +- src/loader/loader.c | 2

[Mesa-dev] [PATCH v3 4/6] loader: abstract loader_get_kernel_driver_name for reuse

2018-08-05 Thread Qiang Yu
This function can be shared by the following kernel_driver drirc patch. Signed-off-by: Qiang Yu --- src/loader/loader.c | 39 +++ 1 file changed, 23 insertions(+), 16 deletions(-) diff --git a/src/loader/loader.c b/src/loader/loader.c index 4327548..c8c7a65 1

[Mesa-dev] [PATCH v3 3/6] driconf: move ${sysconfdir}/drirc to ${datadir}/drirc.d/00-mesa-defaults.conf

2018-08-05 Thread Qiang Yu
${sysconfdir} is for store admin config files, so move this mesa default config file to ${datadir}/drirc.d. Signed-off-by: Qiang Yu Reviewed-by: Emil Velikov --- src/util/{drirc => 00-mesa-defaults.conf} | 0 src/util/Makefile.am | 5 +++-- src/util/meson.build

[Mesa-dev] [PATCH v3 2/6] xmlconfig: read more config files from drirc.d/

2018-08-05 Thread Qiang Yu
Driver and application can put their drirc files in ${datadir}/drirc.d/ with name xxx.conf. Config files will be read and applied in file name alphabetic order. So there are three places for drirc listed in order: 1. /usr/share/drirc.d/ 2. /etc/drirc 3. ~/.drirc v3: 1. seperate driParseConfigFi

[Mesa-dev] [PATCH v3 1/6] xmlconfig: refine driParseConfigFiles to use parseOneConfigFile

2018-08-05 Thread Qiang Yu
Also prepare for the usage of following parseConfigDir patch. Signed-off-by: Qiang Yu --- src/util/xmlconfig.c | 62 1 file changed, 28 insertions(+), 34 deletions(-) diff --git a/src/util/xmlconfig.c b/src/util/xmlconfig.c index d384791..50b

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

2018-08-05 Thread Qiang Yu
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

Re: [Mesa-dev] [PATCH] broadcom/vc4: Add NULL pointer checking

2018-08-05 Thread Eric Anholt
zhaowei yuan writes: > In some cases, texstate->textures and texstate->samplers cann't > be set properly, add NULL pointer checking here to protect program > from crashed We don't need a workaround here, we need to fix the actual problem instead. That said, from your bugzilla entry it sounds li

Re: [Mesa-dev] [PATCH 2/2] mesa: fix make check for AMD_framebuffer_multisample_advanced

2018-08-05 Thread Marek Olšák
Thanks. For the series: Reviewed-by: Marek Olšák Marek On Sun, Aug 5, 2018 at 3:39 PM, Ian Romanick wrote: > From: Ian Romanick > > Signed-off-by: Ian Romanick > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107483 > Fixes: 3d6900d76ef ("glapi: define AMD_framebuffer_multisample_adv

[Mesa-dev] [Bug 107483] DispatchSanity_test.GL31_CORE regression

2018-08-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107483 Ian Romanick changed: What|Removed |Added Status|NEW |ASSIGNED --- Comment #1 from Ian Romanic

[Mesa-dev] [PATCH 1/2] glapi: Fix GLES versioning for AMD_framebuffer_multisample_advanced functions

2018-08-05 Thread Ian Romanick
From: Ian Romanick The GL_AMD_framebuffer_multisample_advanced spec says: OpenGL ES dependencies: Requires OpenGL ES 3.0. Signed-off-by: Ian Romanick Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107483 Fixes: 3d6900d76ef ("glapi: define AMD_framebuffer_multisample_advanc

[Mesa-dev] [PATCH 2/2] mesa: fix make check for AMD_framebuffer_multisample_advanced

2018-08-05 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107483 Fixes: 3d6900d76ef ("glapi: define AMD_framebuffer_multisample_advanced and add its functions") Cc: Marek Olšák Cc: Vinson Lee --- src/mesa/main/tests/dispatch_sanity.cpp | 8

Re: [Mesa-dev] [PATCH shader-db v2 5/5] nv-report: add options to print affected programs

2018-08-05 Thread Ilia Mirkin
On Sun, Aug 5, 2018 at 8:06 AM, Rhys Perry wrote: > v2: rework --top and --smallest > v2: add --affected option > v2: make the summary after the affected program lists > > Signed-off-by: Rhys Perry > --- > nv-report.py | 119 > ++- > 1 fil

Re: [Mesa-dev] [PATCH shader-db v2 3/5] nv-report: additionally report changes in only affected programs

2018-08-05 Thread Ilia Mirkin
On Sun, Aug 5, 2018 at 8:06 AM, Rhys Perry wrote: > v2: change compute_totals() to take an include instead of an exclude list > v2: show number of affected programs > v2: flip around the shared and affected statistics > > Signed-off-by: Rhys Perry > --- > nv-report.py | 35 ++

[Mesa-dev] [PATCH shader-db v2 4/5] nv-report: make use of argparse

2018-08-05 Thread Rhys Perry
Signed-off-by: Rhys Perry Reviewed-by: Ilia Mirkin --- nv-report.py | 13 +++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/nv-report.py b/nv-report.py index 5049207c22..1894f91409 100644 --- a/nv-report.py +++ b/nv-report.py @@ -12,11 +12,15 @@ fields, except for the

[Mesa-dev] [PATCH shader-db v2 3/5] nv-report: additionally report changes in only affected programs

2018-08-05 Thread Rhys Perry
v2: change compute_totals() to take an include instead of an exclude list v2: show number of affected programs v2: flip around the shared and affected statistics Signed-off-by: Rhys Perry --- nv-report.py | 35 +-- 1 file changed, 25 insertions(+), 10 deletions(-)

[Mesa-dev] [PATCH shader-db v2 5/5] nv-report: add options to print affected programs

2018-08-05 Thread Rhys Perry
v2: rework --top and --smallest v2: add --affected option v2: make the summary after the affected program lists Signed-off-by: Rhys Perry --- nv-report.py | 119 ++- 1 file changed, 117 insertions(+), 2 deletions(-) diff --git a/nv-report.

[Mesa-dev] [PATCH shader-db v2 2/5] nv-report: move code out of main()

2018-08-05 Thread Rhys Perry
v2: rename create_totals() to compute_totals() v2: simplify create_totals()/compute_totals() Signed-off-by: Rhys Perry --- nv-report.py | 46 ++ 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/nv-report.py b/nv-report.py index 3f0be6355

[Mesa-dev] [PATCH shader-db v2 0/5] nv-report: a few enhancements

2018-08-05 Thread Rhys Perry
This adds the following features to nv-report: - additionally reporting changes of only affected programs - options to print affected or hurt programs, sorted in some way Rhys Perry (5): nv-report: deduplicate list of fields nv-report: move code out of main() nv-report: additionally report c

[Mesa-dev] [PATCH shader-db v2 1/5] nv-report: deduplicate list of fields

2018-08-05 Thread Rhys Perry
Signed-off-by: Rhys Perry Reviewed-by: Ilia Mirkin --- nv-report.py | 53 +++-- 1 file changed, 19 insertions(+), 34 deletions(-) diff --git a/nv-report.py b/nv-report.py index bdc2093a73..3f0be63557 100644 --- a/nv-report.py +++ b/nv-report.py @@

Re: [Mesa-dev] [PATCH] [rfc] r600: set vpm bit for loop start clause

2018-08-05 Thread Gert Wollny
Am Freitag, den 03.08.2018, 06:02 +0200 schrieb Roland Scheidegger: > Am 03.08.2018 um 05:10 schrieb Dave Airlie: > > From: Dave Airlie > > > > This fixes some hangs with the arb_shader_image_load_store- > > atomicity tests > > on evergreen/cayman GPUs. > > > > I'm not 100% sure why (VPM hurts m

[Mesa-dev] [Bug 107488] gl.h:2090: error: redefinition of typedef ‘GLeglImageOES’

2018-08-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107488 Bug ID: 107488 Summary: gl.h:2090: error: redefinition of typedef ‘GLeglImageOES’ Product: Mesa Version: git Hardware: x86-64 (AMD64) OS: All S