Re: [Mesa-dev] [PATCH 04/11] configure: allow building shared-glapi powered libgl-xlib

2015-06-21 Thread Emil Velikov
On 19/06/15 19:56, Emil Velikov wrote: XXX: With this one done, we can finally transition with enforcing shared-glapi, and - link the dri modules against libglapi.so, add --no-undefined to the LDFLAGS - drop the dlopen(libglapi.so/libGL.so, RTLD_GLOBAL) workarounds in the loaders -

Re: [Mesa-dev] [PATCH 08/11] confiigure: drop unused variable GBM_BACKEND_DIRS

2015-06-21 Thread Emil Velikov
On 19/06/15 22:00, Eric Anholt wrote: Emil Velikov emil.l.veli...@gmail.com writes: Signed-off-by: Emil Velikov emil.l.veli...@gmail.com s/confiigure/configure/ in the subject. Will fix. After that, and some cleanup of the commit message in 4, patches 1-8 will be: Reviewed-by: Eric

Re: [Mesa-dev] abundance of branches in mesa.git

2015-06-21 Thread Emil Velikov
On 20/06/15 10:01, Eirik Byrkjeflot Anonsen wrote: Ilia Mirkin imir...@alum.mit.edu writes: Hello, There are a *ton* of branches in the upstream mesa git. Here is a full list: [...] is there any reason to keep these around with the exception of: master $version (i.e. 9.0, 10.0,

Re: [Mesa-dev] [PATCH 2/2] glapi: remap_helper.py: remove unused argument 'es'

2015-06-21 Thread Emil Velikov
On 19/06/15 18:43, Dylan Baker wrote: This one is reviewed too. I'm on my phone and typing the reviewed by is hard though, so you'll have to copy from the last one. I'm currently in the process of writing a series to replace the mesa XML with the khronos XML, and as part of that I was

[Mesa-dev] [PATCH 1/3] egl_dri2: Move filling context_attrib array in a separate function

2015-06-21 Thread Boyan Ding
Signed-off-by: Boyan Ding boyan.j.d...@gmail.com --- src/egl/drivers/dri2/egl_dri2.c | 89 - 1 file changed, 53 insertions(+), 36 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index e590db6..c2a857f 100644 ---

[Mesa-dev] [PATCH 0/3] egl_dri2: Enable EGL_KHR_create_context when using swrast

2015-06-21 Thread Boyan Ding
This series of patches add support for EGL_KHR_create_context when using swrast. The first patch moves context_attrib filling into a separate function for reuse in swrast. The second one uses createContextAttribs in swrast extension and the third one enables EGL_KHR_create_context. I tested the

[Mesa-dev] [PATCH 2/3] egl_dri2: Use createContextAttribs if swrast version = 3

2015-06-21 Thread Boyan Ding
Signed-off-by: Boyan Ding boyan.j.d...@gmail.com --- src/egl/drivers/dri2/egl_dri2.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index c2a857f..7df77c8 100644 ---

[Mesa-dev] [PATCH 3/3] egl_dri2: Add support for EGL_KHR_create_contest when using swrast

2015-06-21 Thread Boyan Ding
This requires swrast version = 3. Also EGL_EXT_create_context_robostness is supported if __DRI2_ROBUSTNESS extension is found. Reference: https://bugs.freedesktop.org/show_bug.cgi?id=80821 Signed-off-by: Boyan Ding boyan.j.d...@gmail.com --- src/egl/drivers/dri2/egl_dri2.c | 3 ++- 1 file

[Mesa-dev] [Bug 91044] piglit spec/egl_khr_create_context/valid debug flag gles* fail

2015-06-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91044 Bug ID: 91044 Summary: piglit spec/egl_khr_create_context/valid debug flag gles* fail Product: Mesa Version: git Hardware: Other OS: All

Re: [Mesa-dev] [PATCH 2/2] glapi: remap_helper.py: remove unused argument 'es'

2015-06-21 Thread Emil Velikov
On 19/06/15 12:29, Jose Fonseca wrote: I only did minor tweaks to these files, but the series LGTM. Being the ancient beast this is, I've merely picked of the last two people that had fun in the area. Never meant to target you/others in any way :-) Reviewed-by: Jose Fonseca

Re: [Mesa-dev] [PATCH 1/3] egl_dri2: Move filling context_attrib array in a separate function

2015-06-21 Thread Marek Olšák
bool as the return type of the new function would be more appropriate. Other than that: Reviewed-by: Marek Olšák marek.ol...@amd.com Marek On Sun, Jun 21, 2015 at 5:06 PM, Boyan Ding boyan.j.d...@gmail.com wrote: Signed-off-by: Boyan Ding boyan.j.d...@gmail.com ---

Re: [Mesa-dev] abundance of branches in mesa.git

2015-06-21 Thread Ilia Mirkin
On Sun, Jun 21, 2015 at 12:22 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 20/06/15 10:01, Eirik Byrkjeflot Anonsen wrote: Ilia Mirkin imir...@alum.mit.edu writes: Hello, There are a *ton* of branches in the upstream mesa git. Here is a full list: [...] is there any reason to keep

Re: [Mesa-dev] [PATCH 15/46] mesa: add tessellation shader getters.

2015-06-21 Thread Marek Olšák
On Fri, Jun 19, 2015 at 9:22 AM, Kenneth Graunke kenn...@whitecape.org wrote: On Wednesday, June 17, 2015 01:01:11 AM Marek Olšák wrote: From: Fabian Bieler fabianbie...@fastmail.fm Tessellation dependencies added by Marek. --- src/mesa/main/get.c | 1 +

[Mesa-dev] [PATCH] tgsi: handle indirect sampler arrays. (v2)

2015-06-21 Thread Dave Airlie
This is required for ARB_gpu_shader5 support in softpipe. v2: add support to txd/txf/txq paths. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/tgsi/tgsi_exec.c | 42 ++ 1 file changed, 38 insertions(+), 4 deletions(-) diff --git

[Mesa-dev] [PATCH 2/2] draw/gallivm: add invocation ID support for llvmpipe.

2015-06-21 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This extends the draw code to add support for invocations. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/draw/draw_gs.c| 3 ++- src/gallium/auxiliary/draw/draw_llvm.c | 5 -

Re: [Mesa-dev] [PATCH] r600g: ignore sampler views for now.

2015-06-21 Thread Dave Airlie
On 22 June 2015 at 13:37, Dave Airlie airl...@gmail.com wrote: From: Dave Airlie airl...@redhat.com This fixes a regression in that r600 stopped working when sampler views were pushed. I pushed this already, regressions are too annoying to wait. Dave.

Re: [Mesa-dev] [PATCH 04/17] i965/fs: Explicitly set the exec_size on the add(32) in interpolation setup

2015-06-21 Thread Iago Toral
On Fri, 2015-06-19 at 07:01 -0700, Jason Ekstrand wrote: On Jun 19, 2015 5:09 AM, Iago Toral ito...@igalia.com wrote: On Thu, 2015-06-18 at 17:50 -0700, Jason Ekstrand wrote: Soon we will start using the builder to explicitly set all the execution sizes. We could make a 32-wide

[Mesa-dev] [PATCH v4 1/2] nouveau: support for custom VRAM domains

2015-06-21 Thread Alexandre Courbot
Some GPUs (e.g. GK20A, GM20B) do not embed VRAM of their own and use the system memory as a backend instead. For such systems, allocating objects in VRAM results in errors since the kernel will not allow VRAM objects allocations. This patch adds a vram_domain member to struct nouveau_screen that

[Mesa-dev] [PATCH v4 2/2] nvc0: use NV_VRAM_DOMAIN() macro

2015-06-21 Thread Alexandre Courbot
Use the newly-introduced NV_VRAM_DOMAIN() macro to support alternative VRAM domains for chips that do not have dedicated video memory. Signed-off-by: Alexandre Courbot acour...@nvidia.com Reviewed-by: Ilia Mirkin imir...@alum.mit.edu Reviewed-by: Martin Peres martin.pe...@free.fr ---

Re: [Mesa-dev] abundance of branches in mesa.git

2015-06-21 Thread Michel Dänzer
On 22.06.2015 00:31, Ilia Mirkin wrote: On Sun, Jun 21, 2015 at 12:22 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 20/06/15 10:01, Eirik Byrkjeflot Anonsen wrote: Ilia Mirkin imir...@alum.mit.edu writes: Hello, There are a *ton* of branches in the upstream mesa git. Here is a full

[Mesa-dev] [PATCH 1/2] draw/tgsi: implement geom shader invocation support.

2015-06-21 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This is just for softpipe, llvmpipe won't work without some changes. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/auxiliary/draw/draw_gs.c | 47 +- src/gallium/auxiliary/draw/draw_gs.h | 2 ++

[Mesa-dev] softpipe and llvmpipe geom shader invocation support

2015-06-21 Thread Dave Airlie
Hey, repost of patch 1, the second patch adds the corresponding code to llvmpipe, passes the basic tests. Dave. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] r600g: ignore sampler views for now.

2015-06-21 Thread Dave Airlie
From: Dave Airlie airl...@redhat.com This fixes a regression in that r600 stopped working when sampler views were pushed. Signed-off-by: Dave Airlie airl...@redhat.com --- src/gallium/drivers/r600/r600_shader.c | 1 + 1 file changed, 1 insertion(+) diff --git

[Mesa-dev] [PATCH v4 0/2] nouveau: support for custom VRAM domains

2015-06-21 Thread Alexandre Courbot
New (hopefully good to merge) revision of this patchset that prevents VRAM objects from being allocated on VRAM-less systems like Tegra's GK20A and GM20B. This is required for Mesa to work on such systems. Changes since v3: - Fixed change that would make a comment ambiguous - Added Reviewed-by

Re: [Mesa-dev] abundance of branches in mesa.git

2015-06-21 Thread Ilia Mirkin
On Sun, Jun 21, 2015 at 11:33 PM, Michel Dänzer mic...@daenzer.net wrote: On 22.06.2015 00:31, Ilia Mirkin wrote: On Sun, Jun 21, 2015 at 12:22 PM, Emil Velikov emil.l.veli...@gmail.com wrote: On 20/06/15 10:01, Eirik Byrkjeflot Anonsen wrote: Ilia Mirkin imir...@alum.mit.edu writes:

[Mesa-dev] [PATCH v2 1/3] egl_dri2: Move filling context_attrib array in a separate function

2015-06-21 Thread Boyan Ding
v2: Change return type of the new function from int to bool Reviewed-by: Marek Olšák marek.ol...@amd.com Signed-off-by: Boyan Ding boyan.j.d...@gmail.com --- src/egl/drivers/dri2/egl_dri2.c | 90 - 1 file changed, 54 insertions(+), 36 deletions(-) diff

[Mesa-dev] [PATCH v2 2/3] egl_dri2: Use createContextAttribs if swrast version = 3

2015-06-21 Thread Boyan Ding
v2: Change return type of the new function from int to bool Signed-off-by: Boyan Ding boyan.j.d...@gmail.com --- src/egl/drivers/dri2/egl_dri2.c | 33 +++-- 1 file changed, 27 insertions(+), 6 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c

Re: [Mesa-dev] [PATCH 2/2] glapi: remap_helper.py: remove unused argument 'es'

2015-06-21 Thread Dylan Baker
Cleanups are definitely party of the plan. I'm doing three phases. First is going to mako for generation. Second is using the khronos XML. Finally I want to clean things up and hybridize for python 3 On Jun 21, 2015 7:34 AM, Emil Velikov emil.l.veli...@gmail.com wrote: On 19/06/15 18:43, Dylan

[Mesa-dev] [PATCH] nvc0: always put all tfb bufs into bufctx

2015-06-21 Thread Ilia Mirkin
Since we clear the TFB bufctx binding point above, we need to put all of the active tfb's back in, even if they haven't changed since last time. Otherwise the tfb may get moved into sysmem and the underlying mapping will generate write errors. Signed-off-by: Ilia Mirkin imir...@alum.mit.edu ---

[Mesa-dev] [PATCH] nv50, nvc0: make sure to pushbuf_refn before putting bo into pushbuf_data

2015-06-21 Thread Ilia Mirkin
Without first running the bo through pushbuf_refn, the nouveau drm library will have uninitialized structures regarding this bo, and will insert incorrect data. This fixes supertuxkart 0.9 crash on start (where it ends up doing a lot of indirect draws). Signed-off-by: Ilia Mirkin

Re: [Mesa-dev] [PATCH 19/19] glsl: Allow arrays of arrays in GLSL ES 3.10 and GLSL 4.30

2015-06-21 Thread Timothy Arceri
On Sat, 2015-06-20 at 23:57 -0400, Ilia Mirkin wrote: On Sat, Jun 20, 2015 at 11:38 PM, Timothy Arceri t_arc...@yahoo.com.au wrote: On Sat, 2015-06-20 at 19:35 -0400, Ilia Mirkin wrote: On Sat, Jun 20, 2015 at 8:33 AM, Timothy Arceri t_arc...@yahoo.com.au wrote: ---

Re: [Mesa-dev] [PATCH 11/11] android: egl: do not link against libglapi

2015-06-21 Thread Marek Olšák
FWIW, flushing can be done through flush_with_flags(__DRI2_FLUSH_CONTEXT), so glFlush shouldn't be needed, but some drivers don't implement flush_with_flags and I've heard libEGL and libGL need to support DRI drivers from older Mesas too. Marek On Fri, Jun 19, 2015 at 9:56 PM, Emil Velikov