[Mesa-dev] [Bug 75315] libglapi build failure with gcc -fsanitize=address

2014-08-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75315 --- Comment #5 from nobled --- http://clang.llvm.org/docs/AddressSanitizer.html#usage > -Wl,-z,defs may cause link errors (don’t use it with AddressSanitizer). mesa links libglapi with -Wl,--no-undefined, which is the same thing as -Wl,-z,defs,

[Mesa-dev] [Bug 75315] libglapi build failure with gcc -fsanitize=address

2014-08-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75315 --- Comment #4 from Fabio Pedretti --- Here is a log with a verbose build: https://launchpadlibrarian.net/183055341/buildlog_ubuntu-utopic-i386.mesa_10.4~git1408240813.8d8a5e%2Bgallium-nine~gd~u_FAILEDTOBUILD.txt.gz Note I get the same error wit

Re: [Mesa-dev] [PATCH 02/11] mesa: add ARB_gpu_shader_fp64 extension info

2014-08-23 Thread Dave Airlie
On 23 August 2014 10:55, Ian Romanick wrote: > On 08/14/2014 03:52 AM, Dave Airlie wrote: >> From: Dave Airlie >> >> This just adds the entries to extensions.c and mtypes.h >> >> Signed-off-by: Dave Airlie >> --- >> src/mesa/main/extensions.c | 1 + >> src/mesa/main/mtypes.h | 1 + >> 2 fil

[Mesa-dev] [PATCH] meta: Make MESA_META_DRAW_BUFFERS restore properly

2014-08-23 Thread Kristian Høgsberg
A meta begin/end pair with MESA_META_DRAW_BUFFERS will change visible GL state. We recreate the draw buffer enums from the buffer bitfield, which changes GL_BACK to GL_BACK_LEFT (and GL_FRONT to GL_FRONT_LEFT). This commit modifes the save/restore logic to instead copy the buffer enums from the g

[Mesa-dev] [PATCH 8/8] main: Autogenerate format_unpack.c

2014-08-23 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/mesa/Makefile.am |9 + src/mesa/Makefile.sources |2 +- src/mesa/main/format_unpack.c | 4320 src/mesa/main/format_unpack.c.mako | 883 4 files changed, 893 insertions(+), 4321

Re: [Mesa-dev] The GL3.txt format

2014-08-23 Thread Marek Olšák
It's not correct. For example, transform feedback shouldn't be listed for r300. Marek On Sat, Aug 23, 2014 at 11:59 PM, Romain Failliot wrote: > Hi! > > I made a PHP script to have a better representation of the OpenGL compliance > of Mesa: > http://creak.foolstep.com/mesamatrix/ > > But I'm not

Re: [Mesa-dev] [PATCH] u_vbuf: Simplify the format fallback translation.

2014-08-23 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Sun, Aug 24, 2014 at 1:38 AM, Eric Anholt wrote: > Individual caps made supporting new fallbacks more complicated than it > needed to be. Instead, just make a table of fallbacks at context init > time. > > v2: Fix inverted "do we need to install vbuf?" flaggin

[Mesa-dev] [PATCH] u_vbuf: Simplify the format fallback translation.

2014-08-23 Thread Eric Anholt
Individual caps made supporting new fallbacks more complicated than it needed to be. Instead, just make a table of fallbacks at context init time. v2: Fix inverted "do we need to install vbuf?" flagging caught by Marek. --- Sorry for the crap patch, hopefully this has the fixees from your review

Re: [Mesa-dev] The GL3.txt format

2014-08-23 Thread Romain Failliot
> Cool. You may also be interested in > http://people.freedesktop.org/~imirkin/glxinfo/glxinfo.html which > takes a more pragmatic approach of just using whatever is reported by > glxinfo for various hardware for released mesa versions. > That is impressive! > Seems reasonable. You're just talki

[Mesa-dev] [Bug 75315] libglapi build failure with gcc -fsanitize=address

2014-08-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75315 --- Comment #3 from Emil Velikov --- I'm willing to blame the compiler for that one, but just in case can you run a verbose build in one of the failing directories - cd ; make V=1 -- You are receiving this mail because: You are the assigne

Re: [Mesa-dev] [PATCH 0/8] More format conversion reworking

2014-08-23 Thread Jason Ekstrand
One more note: I tested these on i965, llvmpipe, and swrast on both my laptop and my desktop. No changes on i965. A couple changes on llvmpipe on my desktop which I can't reproduce on my laptop. I think that's my desktop being funny. There seems to be one little issue still on swrast with RGB4

[Mesa-dev] [PATCH 7/8] MAYBEREVERT: Fill X components with 1

2014-08-23 Thread Jason Ekstrand
I'm not 100% sure if I like this one. If used, it'll be squashed in with the previous patch. --- src/mesa/main/format_pack.c.mako | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/format_pack.c.mako b/src/mesa/main/format_pack.c.mako index 13a20c1..45caa

[Mesa-dev] [PATCH 6/8] main: Autogenerate most of format_pack.c

2014-08-23 Thread Jason Ekstrand
We were auto-generating it before. The problem was that the autogeneration tool we were using was called "copy, paste, and edit". Let's use a more sensible solution. Signed-off-by: Jason Ekstrand --- src/mesa/Makefile.am | 9 + src/mesa/Makefile.sources| 2 +- src/mesa/

[Mesa-dev] [PATCH 5/8] mesa/format_utils: Prefix and expose the conversion helper functions

2014-08-23 Thread Jason Ekstrand
Signed-off-by: Jason Ekstrand --- src/mesa/main/format_utils.c | 215 +++ src/mesa/main/format_utils.h | 105 + 2 files changed, 159 insertions(+), 161 deletions(-) diff --git a/src/mesa/main/format_utils.c b/src/mesa/main/format_utils.

[Mesa-dev] [PATCH 0/8] More format conversion reworking

2014-08-23 Thread Jason Ekstrand
I needed a break from the i965 compiler backend, so I wrote some more format conversion patches. A lot of these are bug fixes or stand-alones. However, the last three require all the previous ones. Jason Ekstrand (8): main/format_util: Fix a bug in one of the format helper functions main: Fix

[Mesa-dev] [PATCH 1/8] main/format_util: Fix a bug in one of the format helper functions

2014-08-23 Thread Jason Ekstrand
We need to correct for snorm values less than -MAX_INT, not equal to. Signed-off-by: Jason Ekstrand --- src/mesa/main/format_utils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/format_utils.c b/src/mesa/main/format_utils.c index 240e3bc..7a00169 100644 --- a

[Mesa-dev] [PATCH 2/8] main: Fix packing/unpacking of MESA_FORMAT_R5G6B5_UNORM

2014-08-23 Thread Jason Ekstrand
Aparently, the packing/unpacking functions for these formats have differed from the format description in formats.h. Instead of fixing this, people simply left a comment saying it was broken. Let's actually fix it for real. Signed-off-by: Jason Ekstrand --- src/mesa/main/format_pack.c | 1

[Mesa-dev] [PATCH 3/8] main/colormac: Remove an unused macro

2014-08-23 Thread Jason Ekstrand
The PACK_565_REV macro is no longer used. It was also extremely confusing because it's actually a byteswapped 565 not reversed 565. Signed-off-by: Jason Ekstrand --- src/mesa/main/colormac.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/mesa/main/colormac.h b/src/mesa/main/colormac.

[Mesa-dev] [PATCH 4/8] main: Fix A1R5G5B5 packing/unpacking

2014-08-23 Thread Jason Ekstrand
As with B5G6R5, these have been left broken with comments saying they are. Signed-off-by: Jason Ekstrand --- src/mesa/main/format_pack.c | 8 +--- src/mesa/main/format_unpack.c| 11 --- src/mesa/main/formats.c | 2 ++ src/mesa/swrast/s_texfetch_tmp.h | 8

Re: [Mesa-dev] The GL3.txt format

2014-08-23 Thread Ilia Mirkin
On Sat, Aug 23, 2014 at 5:59 PM, Romain Failliot wrote: > Hi! > > I made a PHP script to have a better representation of the OpenGL compliance > of Mesa: > http://creak.foolstep.com/mesamatrix/ Cool. You may also be interested in http://people.freedesktop.org/~imirkin/glxinfo/glxinfo.html which t

[Mesa-dev] The GL3.txt format

2014-08-23 Thread Romain Failliot
Hi! I made a PHP script to have a better representation of the OpenGL compliance of Mesa: http://creak.foolstep.com/mesamatrix/ But I'm not sure about the signification of some lines. When there is a "DONE", with no parenthesis after, does it means it's done for all the drivers? And when there i

[Mesa-dev] [PATCH 6/6] radeonsi: implement EXPCLEAR optimization for depth

2014-08-23 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_pipe_common.h | 1 + src/gallium/drivers/radeonsi/si_blit.c| 12 +++- src/gallium/drivers/radeonsi/si_pipe.h| 1 + src/gallium/drivers/radeonsi/si_state.c | 3 ++- src/gallium/drivers/radeonsi/si_state_draw.c

[Mesa-dev] [PATCH 3/6] radeonsi: move DB_RENDER_CONTROL into draw_vbo

2014-08-23 Thread Marek Olšák
From: Marek Olšák So that I can add fast depth clear. --- src/gallium/drivers/radeonsi/si_blit.c | 35 ++-- src/gallium/drivers/radeonsi/si_pipe.c | 7 +- src/gallium/drivers/radeonsi/si_pipe.h | 11 + src/gallium/drivers/radeonsi/si_state.c

[Mesa-dev] [PATCH 5/6] r600g, radeonsi: initialize HTILE to fully-expanded state

2014-08-23 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_texture.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index d667834..dad2412 100644 --- a/src/gallium/drivers/radeon/r600_textur

[Mesa-dev] [PATCH 2/6] radeonsi: disable occlusion queries if they are not needed

2014-08-23 Thread Marek Olšák
From: Marek Olšák We always left them enabled, which turned off HiZ in some cases. This should improve performace with Hyper-Z. --- src/gallium/drivers/radeonsi/si_state_draw.c | 8 1 file changed, 8 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium

[Mesa-dev] [PATCH 4/6] radeonsi: implement fast depth clear

2014-08-23 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_blit.c | 15 +++ src/gallium/drivers/radeonsi/si_pipe.h | 1 + src/gallium/drivers/radeonsi/si_state.c | 4 ++-- src/gallium/drivers/radeonsi/si_state_draw.c | 3 +++ 4 files changed, 21 insertions(+), 2 deleti

[Mesa-dev] [PATCH 1/6] r600g, radeonsi: force fast stencil and HTILE stencil off, fixing a Hyper-Z hang

2014-08-23 Thread Marek Olšák
From: Marek Olšák This should be as fast as no HTILE for stencil. I think we can still get full performance with depth-only rendering even if stencil is present in the buffer but not used, but I'm not 100% sure. This may be revisited when HiS and fast stencil clear are implemented. This fixes a

[Mesa-dev] [Bug 66184] src/mesa/state_tracker/st_glsl_to_tgsi.cpp:3216:simplify_cmp: Assertion `inst->dst.index < 4096' failed.

2014-08-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=66184 --- Comment #2 from p...@cooco.de --- Created attachment 105171 --> https://bugs.freedesktop.org/attachment.cgi?id=105171&action=edit shaders reproducing the issue I'm still hitting this bug when running some game (miasmata) in wine src/mesa/st

[Mesa-dev] [Bug 75315] libglapi build failure with gcc -fsanitize=address

2014-08-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=75315 Fabio Pedretti changed: What|Removed |Added Summary|build failure with gcc |libglapi build failure with

Re: [Mesa-dev] [PATCH 2/2] glapi: add function pointers for KHR_debug for gles

2014-08-23 Thread Ian Romanick
On 08/21/2014 03:02 AM, Matthew Waters wrote: > Signed-off-by: Matthew Waters > --- > src/mapi/glapi/gen/KHR_debug.xml| 73 > + > src/mesa/main/extensions.c | 2 +- > src/mesa/main/tests/dispatch_sanity.cpp | 25 +++ > 3 files changed

[Mesa-dev] RadeonProgram webpage access

2014-08-23 Thread Benjamin Bellec
Hello, I would like to have an access to the RadeonProgram web page (http://www.x.org/wiki/RadeonProgram/) in order to update and improve it. I requested this access 9 months ago to jrayh...@freedesktop.org and tfh...@freedesktop.org and still have no access. - Benjamin __

Re: [Mesa-dev] [PATCH 1/2] egl: rework handling EGL_CONTEXT_FLAGS for ES debug contexts

2014-08-23 Thread Ian Romanick
On 08/21/2014 03:02 AM, Matthew Waters wrote: > As of version 15 of the EGL_KHR_create_context spec, debug contexts > are allowed for ES contexts. We should allow creation instead of > erroring. > > Signed-off-by: Matthew Waters > --- > src/egl/main/eglcontext.c | 50 > +++

Re: [Mesa-dev] [PATCH] mesa/{version, getstring}: Future-proof version handling

2014-08-23 Thread Olivier Galibert
Are we that far? OG. On Sat, Aug 23, 2014 at 7:22 PM, Ian Romanick wrote: > I'm content with waiting to add this until we're even close to > supporting any of those versions... especially given all the lines like > "false && // ARB_gpu_shader_fp64 &&". That's just clutter. > > On 08/21/2014

Re: [Mesa-dev] [PATCH] mesa/{version, getstring}: Future-proof version handling

2014-08-23 Thread Ian Romanick
I'm content with waiting to add this until we're even close to supporting any of those versions... especially given all the lines like "false && // ARB_gpu_shader_fp64 &&". That's just clutter. On 08/21/2014 05:02 AM, Olivier Galibert wrote: > Signed-off-by: Olivier Galibert > --- > src/mesa/ma

Re: [Mesa-dev] [PATCH 2/2] u_vbuf: Add a few more format fallbacks.

2014-08-23 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Fri, Aug 22, 2014 at 10:54 PM, Eric Anholt wrote: > Fixes piglit draw-vertices and gl-2.0-vertexattribpointer on vc4, where > I'm only advertising R32F to RGBA32F support so far. > > Note: regresses gl-1.5-normal3b3s-invariance due to introduced flushes and > m

Re: [Mesa-dev] [PATCH 1/2] u_vbuf: Simplify the format fallback translation.

2014-08-23 Thread Marek Olšák
On Fri, Aug 22, 2014 at 10:54 PM, Eric Anholt wrote: > Individual caps made supporting new fallbacks more complicated than it > needed to be. Instead, just make a table of fallbacks at context init > time. > --- > src/gallium/auxiliary/cso_cache/cso_context.c | 12 +- > src/gallium/auxiliary/ut

Re: [Mesa-dev] [RFC PATCH 00/16] A new IR for Mesa

2014-08-23 Thread Connor Abbott
On Sat, Aug 23, 2014 at 5:14 AM, Christian König wrote: > Am 22.08.2014 um 18:01 schrieb Connor Abbott: > >> On Fri, Aug 22, 2014 at 11:27 AM, Christian König >> wrote: >>> >>> Am 22.08.2014 um 17:13 schrieb Connor Abbott: >>> On Thu, Aug 21, 2014 at 11:08 PM, Dave Airlie wrote: > >

Re: [Mesa-dev] [PATCH] r600/compute: Don't leak compute pool item_list/unallocated_list

2014-08-23 Thread Bruno Jimenez
On Thu, 2014-08-21 at 14:37 -0500, Aaron Watry wrote: > v2: Change to C-style comments and fix indentation > > Signed-off-by: Aaron Watry > --- > src/gallium/drivers/r600/compute_memory_pool.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/src/gallium/drivers/r600/compute_memory_

Re: [Mesa-dev] [PATCH] glsl: uniform sampler should occupy 1 location

2014-08-23 Thread Micael
On second thought, the glsl_type::uniform_locations() method comment in the header file says: /** * Calculate the number of unique values from glGetUniformLocation for the * elements of the type. */ Which makes me believe that maybe we should return at least 1 for every case because this is onl

Re: [Mesa-dev] [PATCH] glsl: uniform sampler should occupy 1 location

2014-08-23 Thread Micael
On Fri, Aug 22, 2014 at 9:23 PM, Ian Romanick wrote: > I'm not sure this is correct, and I think we need a more complex fix. > As Dave points out, bindless will make it even more complex. > > In a non-bindless, static-sampler-array-indexing world, applications > assume that samplers will use zero

[Mesa-dev] [PATCH 1/3] r300g: handle PIPE_BIND_BLENDABLE

2014-08-23 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/r300/r300_screen.c | 45 +- 1 file changed, 44 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/r300/r300_screen.c b/src/gallium/drivers/r300/r300_screen.c index a64f5f5..f8a7ef1 100644 --- a/src/gallium/dri

[Mesa-dev] [PATCH 2/3] r600g: only set PIPE_BIND_BLENDABLE if colorbuffer rendering is supported

2014-08-23 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/r600/evergreen_state.c | 15 +-- src/gallium/drivers/r600/r600_state.c | 15 +-- 2 files changed, 10 insertions(+), 20 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_state.c b/src/gallium/drivers/r600/evergree

[Mesa-dev] [PATCH 3/3] radeonsi: handle PIPE_BIND_BLENDABLE

2014-08-23 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_state.c | 6 +- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_state.c index 3467af6..e5b2bb6 100644 --- a/src/gallium/drivers/radeonsi/si_state.c ++

Re: [Mesa-dev] [RFC PATCH 00/16] A new IR for Mesa

2014-08-23 Thread Christian König
Am 22.08.2014 um 18:01 schrieb Connor Abbott: On Fri, Aug 22, 2014 at 11:27 AM, Christian König wrote: Am 22.08.2014 um 17:13 schrieb Connor Abbott: On Thu, Aug 21, 2014 at 11:08 PM, Dave Airlie wrote: On 22 August 2014 12:46, Jason Ekstrand wrote: On Thu, Aug 21, 2014 at 7:36 PM, Dave Ai