[Mesa-dev] [Bug 61318] Can't compile GLU 32bit on 64bit

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61318 --- Comment #4 from Alexandre Demers --- I've found out what is wrong. By comparing Makefile with another project, it seems GL_LIBS is defined as GL_LIBS = -L/usr/lib/x86_64-linux-gnu -lGL, but it should only be GL_LIBS = -lGL. If GL_LIBS was onl

[Mesa-dev] [Bug 61318] Can't compile GLU 32bit on 64bit

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61318 --- Comment #3 from Alexandre Demers --- (In reply to comment #2) > I built with both > > CFLAGS="-m32" CXXFLAGS="-m32" ./autogen.sh --prefix=/usr --libdir=/usr/lib32 > --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu > > and > > CFLAGS="-

[Mesa-dev] [PATCH v2] vl: Fix off-by-one error in device_name_length allocation.

2013-02-22 Thread Vinson Lee
Fixes out-of-bounds write reported by Coverity. Signed-off-by: Vinson Lee --- src/gallium/auxiliary/vl/vl_winsys_dri.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/vl/vl_winsys_dri.c b/src/gallium/auxiliary/vl/vl_winsys_dri.c index 560c914..88e17fe

[Mesa-dev] [Bug 59741] [softpipe] piglit depthstencil-render-miplevels 1024 s=z24_s regression

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=59741 Vinson Lee changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 60298] piglit arb_uniform_buffer_object-row-major regression

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=60298 Vinson Lee changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 61326] New: [softpipe] piglit interpolation-noperspective-gl_BackSecondaryColor-flat-vertex regression

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61326 Priority: medium Bug ID: 61326 Keywords: regression CC: bri...@vmware.com Assignee: mesa-dev@lists.freedesktop.org Summary: [softpipe] piglit interpolation-no

[Mesa-dev] [PATCH 12/14] mesa: Remove unused gl_winsys_error enum.

2013-02-22 Thread Eric Anholt
--- src/mesa/main/mtypes.h |8 1 file changed, 8 deletions(-) diff --git a/src/mesa/main/mtypes.h b/src/mesa/main/mtypes.h index 11e1f9e..65c823d 100644 --- a/src/mesa/main/mtypes.h +++ b/src/mesa/main/mtypes.h @@ -3403,14 +3403,6 @@ typedef enum { } gl_api_error; typedef enum {

[Mesa-dev] [PATCH 09/14] i965: Make perf_debug() output to GL_ARB_debug_output in a debug context.

2013-02-22 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_context.c |6 ++- src/mesa/drivers/dri/i965/brw_draw.c |1 + src/mesa/drivers/dri/i965/brw_fs.cpp |4 +- src/mesa/drivers/dri/i965/brw_program.h |3 +- src/mesa/drivers/dri/i965/brw_queryobj.c

[Mesa-dev] [PATCH 13/14] mesa: Remove the enum for the oom-within-debug-output case.

2013-02-22 Thread Eric Anholt
--- src/mesa/main/errors.c |5 - src/mesa/main/mtypes.h |5 - 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 9dcf4eb..405ee82 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -310,12 +310,15 @@

[Mesa-dev] [PATCH 11/14] mesa: Report ARB_debug_output for both shader errors and warnings.

2013-02-22 Thread Eric Anholt
This ends up reusing the dynamic ID support, so a silly enum gets to go away. We don't assign good IDs to different messages yet, but at least that's tractable now. --- src/glsl/glsl_parser_extras.cpp | 15 +++ src/glsl/standalone_scaffolding.cpp |2 +- src/glsl/standalone_s

[Mesa-dev] [PATCH 05/14] mesa: Merge handling of application-provided and built-in error sources.

2013-02-22 Thread Eric Anholt
I want to have dynamic IDs so that we don't need to add to mtypes.h for every error we might want to add. To do so, I need to get rid of the static arrays and actually support all the crazy filtering of dynamic IDs that we already support for application-provided error sources. --- src/mesa/main/

[Mesa-dev] [PATCH 14/14] mesa: Remove the special enum for _mesa_error debug output.

2013-02-22 Thread Eric Anholt
Now all the per-message enums from mtypes are gone. Note that in this case, as in a few others in the series, it would be nice to see the "static GLuint msg_id" moved to the caller of some error-generating function. I know this can be done with #defines on gcc, but I think it may be non-portable,

[Mesa-dev] [PATCH 10/14] intel: Add missing perf debug for a stall on mapping a BO.

2013-02-22 Thread Eric Anholt
I was testing the ARB_debug_output code and wrote an obvious sample that should have hit this, and got confused that my ARB_debug_output was broken. --- src/mesa/drivers/dri/intel/intel_buffer_objects.c |2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_buffe

[Mesa-dev] [PATCH 08/14] intel: Finish renaming fallback_debug() to perf_debug().

2013-02-22 Thread Eric Anholt
They're about to change to handle GL_ARB_debug_output, so just make one function. --- src/mesa/drivers/dri/intel/intel_context.h |5 - src/mesa/drivers/dri/intel/intel_mipmap_tree.c |4 ++-- src/mesa/drivers/dri/intel/intel_pixel_copy.c | 18 +- src/mesa/drivers/

[Mesa-dev] [PATCH 06/14] mesa: Add support for GL_ARB_debug_output with dynamic ID allocation.

2013-02-22 Thread Eric Anholt
We can emit messages now without always having to use the same ID for each, or having a giant table of all possible errors in mtypes.h. --- src/mesa/main/errors.c | 54 +--- src/mesa/main/errors.h | 10 - 2 files changed, 60 insertions(+), 4

[Mesa-dev] [PATCH 07/14] intel: Hook up the WARN_ONCE macro to GL_ARB_debug_output.

2013-02-22 Thread Eric Anholt
--- src/mesa/drivers/dri/i965/brw_wm_surface_state.c |1 + src/mesa/drivers/dri/intel/intel_context.h |5 + 2 files changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c index 587ad05..623b99a 1

[Mesa-dev] [PATCH 03/14] mesa: Move debug type/severity enums to mesa core.

2013-02-22 Thread Eric Anholt
These will get reused by new ARB_debug_output messages in drivers/core, instead of having the caller pass GL enums and have us immediately switch-statement those into enums. Add source enums will be handled in the next commit, because the way different sources are handled at the moment is pretty s

[Mesa-dev] [PATCH 04/14] mesa: Fix _mesa_problem() on context destroy after application debug output

2013-02-22 Thread Eric Anholt
This was apparently not noticed because we don't have any testing of application-generated debug output. However, as I'm changing the GL-generated debug output to use the same path as application/middleware-generated debug output, this obviously became an issue. --- src/mesa/main/errors.c |6

[Mesa-dev] [PATCH 02/14] mesa: Replace open-coded _mesa_lookup_enum_by_nr().

2013-02-22 Thread Eric Anholt
--- src/mesa/main/errors.c | 38 +++--- 1 file changed, 3 insertions(+), 35 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 761b555..987cddb 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -29,7 +29,7 @@ #i

[Mesa-dev] [PATCH 01/14] mesa: Remove extra #define MAXSTRING duplicating MAX_DEBUG_MESSAGE_LENGTH.

2013-02-22 Thread Eric Anholt
--- src/mesa/main/errors.c | 29 ++--- 1 file changed, 14 insertions(+), 15 deletions(-) diff --git a/src/mesa/main/errors.c b/src/mesa/main/errors.c index 0c5e36d..761b555 100644 --- a/src/mesa/main/errors.c +++ b/src/mesa/main/errors.c @@ -38,8 +38,6 @@ #include "vers

[Mesa-dev] GL_ARB_debug_output from drivers

2013-02-22 Thread Eric Anholt
One of the features Valve asked for, that they expected after using other drivers, is that they can easily get information about performance traps (and other important stuff) from drivers. We wrote INTEL_DEBUG=perf this summer as a quick fix, but it's not how most drivers integrate this sort of fe

[Mesa-dev] [Bug 61199] mapi/glapi/glprocs.h:2573:5: error: ‘glDiscardFramebufferEXT’ undeclared here (not in a function)

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61199 Vinson Lee changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 61199] mapi/glapi/glprocs.h:2573:5: error: ‘glDiscardFramebufferEXT’ undeclared here (not in a function)

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61199 --- Comment #7 from Tapani Pälli --- someone please commit the fix -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org ht

Re: [Mesa-dev] Multiple 'OPTION ARB_precision_hint_*' lines in ARB FP shaders

2013-02-22 Thread Ian Romanick
On 02/22/2013 04:44 PM, Jonathan Hamilton wrote: Hi all, I have an issue where an ARBfp shader does the following: """ !!ARBfp1.0 OPTION ARB_precision_hint_fastest; OPTION ARB_precision_hint_fastest; """ This is then being rejected by the mesa parser. The spec I found at http://oss.sgi.com/pro

[Mesa-dev] Mesa 9.1 release

2013-02-22 Thread Ian Romanick
Mesa 9.1 has been released! Mesa 9.1 is a feature release that includes many updates and enhancements. The full list is available in the release notes file in docs/relnotes-9.1.html. The tag in the GIT repository for Mesa 9.1 is 'mesa-9.1'. Mesa 9.1 is available for download at ftp://freedesktop

Re: [Mesa-dev] [PATCH] i965: Avoid segfault in gen6_upload_state

2013-02-22 Thread Ian Romanick
On 02/22/2013 05:20 PM, Ian Romanick wrote: On 02/22/2013 05:15 PM, Carl Worth wrote: Ian Romanick writes: Also, the correct way to say this is: Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59445 Thanks. I missed that on this patch, but will get it right in the future. ctx->Draw

Re: [Mesa-dev] [PATCH] i965: Avoid segfault in gen6_upload_state

2013-02-22 Thread Ian Romanick
On 02/22/2013 05:15 PM, Carl Worth wrote: Ian Romanick writes: Also, the correct way to say this is: Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59445 Thanks. I missed that on this patch, but will get it right in the future. ctx->DrawBuffer->Visual doesn't know about your alpha

Re: [Mesa-dev] [PATCH] i965: Avoid segfault in gen6_upload_state

2013-02-22 Thread Carl Worth
Ian Romanick writes: > Also, the correct way to say this is: > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59445 Thanks. I missed that on this patch, but will get it right in the future. >> ctx->DrawBuffer->Visual doesn't know about your alpha bits when you have >> MRT some with alp

[Mesa-dev] [Bug 61318] Can't compile GLU 32bit on 64bit

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61318 --- Comment #2 from Matt Turner --- I built with both CFLAGS="-m32" CXXFLAGS="-m32" ./autogen.sh --prefix=/usr --libdir=/usr/lib32 --build=x86_64-pc-linux-gnu --host=i686-pc-linux-gnu and CFLAGS="-m32" CXXFLAGS="-m32" ./autogen.sh --prefix=/us

[Mesa-dev] [Bug 61318] Can't compile GLU 32bit on 64bit

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61318 Matt Turner changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] Multiple 'OPTION ARB_precision_hint_*' lines in ARB FP shaders

2013-02-22 Thread Jonathan Hamilton
Hi all, I have an issue where an ARBfp shader does the following: """ !!ARBfp1.0 OPTION ARB_precision_hint_fastest; OPTION ARB_precision_hint_fastest; """ This is then being rejected by the mesa parser. The spec I found at http://oss.sgi.com/projects/ogl-sample/registry/ARB/fragment_program.txt

[Mesa-dev] [PATCH] draw: make sure pipeline is revalidated when sampler views or samplers change.

2013-02-22 Thread sroland
From: Roland Scheidegger Since with llvm execution parts of sampler view and sampler state is baked into the shader, we need to revalidate otherwise the wrong shader might get used. (Not completely sure but I think this would not be required for non-llvm case, along with everything else in these

[Mesa-dev] [Bug 38086] Mesa 7.11-devel implementation error: Unexpected program target in destroy_program_variants_cb()

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38086 Brian Paul changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 61318] New: Can't compile GLU 32bit on 64bit

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61318 Priority: medium Bug ID: 61318 Assignee: mesa-dev@lists.freedesktop.org Summary: Can't compile GLU 32bit on 64bit Severity: critical Classification: Unclassified OS: All

[Mesa-dev] [PATCH 6/6] r600g: enable CP DMA on r6xx (v3)

2013-02-22 Thread alexdeucher
From: Alex Deucher With the previous flushing changes this seems to work reliably now. v2: add R600_CONTEXT_FLUSH_AND_INV v3: just enable CP DMA Signed-off-by: Alex Deucher --- src/gallium/drivers/r600/r600_blit.c |3 +-- src/gallium/drivers/r600/r600_hw_context.c |6 -- 2 f

[Mesa-dev] [PATCH 5/6] r600g: add missing emit_flush for R600_CONTEXT_FLUSH_AND_INV case

2013-02-22 Thread alexdeucher
From: Alex Deucher We set the cp_coher_cntl bits but never emit them. Signed-off-by: Alex Deucher --- src/gallium/drivers/r600/r600_hw_context.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_

[Mesa-dev] [PATCH 4/6] r600g: synchronize streamout buffers on r6xx too (v3)

2013-02-22 Thread alexdeucher
From: Alex Deucher Streamout buffers need to be synchronized on r6xx as well. v2: Add DEST flush as well. v3: drop DEST flush Signed-off-by: Alex Deucher --- src/gallium/drivers/r600/r600_hw_context.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/driver

[Mesa-dev] [PATCH 3/6] r600g: emit a ps partial flush after CP DMA

2013-02-22 Thread alexdeucher
From: Alex Deucher May fix: https://bugs.freedesktop.org/show_bug.cgi?id=58042 Signed-off-by: Alex Deucher --- src/gallium/drivers/r600/r600_hw_context.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/

[Mesa-dev] [PATCH 2/6] r600g: r6xx deadlock workaround (v6)

2013-02-22 Thread alexdeucher
From: Alex Deucher Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=50655 https://bugs.freedesktop.org/show_bug.cgi?id=47116 v2: flush along with workaround. v3: just need a flush v4: try WAIT_UNTIL v5: switch to PS partial flush v6: rework patch Note: this is a candidate for the 9.1 branch.

[Mesa-dev] [PATCH 1/6] r600g: add PS_PARTIAL_FLUSH flag

2013-02-22 Thread alexdeucher
From: Alex Deucher PS_PARTIAL flushes seems to be required in certain cases to prevent hangs, especially on r6xx. Note: this is a candidate for the 9.1 branch. Signed-off-by: Alex Deucher --- src/gallium/drivers/r600/r600.h|1 + src/gallium/drivers/r600/r600_hw_context.c |

[Mesa-dev] [PATCH 0/6] r6xx flushing rework and enable CP DMA (v2)

2013-02-22 Thread alexdeucher
From: Alex Deucher Respin based on feedback from associated bugs. No piglit regressions on RS780 which I was testing on. Alex Deucher (6): r600g: add PS_PARTIAL_FLUSH flag r600g: r6xx deadlock workaround (v6) r600g: emit a ps partial flush after CP DMA r600g: synchronize streamout buffe

Re: [Mesa-dev] [PATCH] r600g: workaround hyperz lockup on evergreen

2013-02-22 Thread Marek Olšák
This looks good. One minor nit: zwritemask should be in r600_db_misc_state instead of r600_context. Marek On Fri, Feb 22, 2013 at 5:20 PM, wrote: > From: Jerome Glisse > > This work around disable hyperz if write to zbuffer is disabled. Somehow > using hyperz when not writting to the zbuffer t

Re: [Mesa-dev] [PATCH] meta: Allocate texture before initializing texture coordinates

2013-02-22 Thread Anuj Phogat
On Fri, Feb 22, 2013 at 12:28 PM, Patrick Baggett wrote: > > > On Fri, Feb 22, 2013 at 2:23 PM, Ian Romanick wrote: >> >> On 02/15/2013 11:20 AM, Anuj Phogat wrote: >>> >>> tex->Sright and tex->Ttop are initialized during texture allocation. >>> This fixes depth buffer blitting failures in khrono

[Mesa-dev] [Bug 29044] GLSL compiler tracker

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=29044 Bug 29044 depends on bug 28138, which changed state. Bug 28138 Summary: [G45] Regnum Online, sparkling in in-game rendering https://bugs.freedesktop.org/show_bug.cgi?id=28138 What|Removed |Added ---

[Mesa-dev] [Bug 61312] Assertion failure: freeing bad or corrupted memory in st_translate_mesa_program

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61312 --- Comment #1 from Keith Kriewall --- Created attachment 75375 --> https://bugs.freedesktop.org/attachment.cgi?id=75375&action=edit Trace of GL calls made by dinospin In case it helps, I'm attaching a JOGL trace of the GL calls made by 'dinos

[Mesa-dev] [Bug 61312] New: Assertion failure: freeing bad or corrupted memory in st_translate_mesa_program

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61312 Priority: medium Bug ID: 61312 Assignee: mesa-dev@lists.freedesktop.org Summary: Assertion failure: freeing bad or corrupted memory in st_translate_mesa_program Severity: nor

Re: [Mesa-dev] A few fixes for the preprocessor for GLSL 1.30

2013-02-22 Thread Kenneth Graunke
On 02/22/2013 01:14 PM, Carl Worth wrote: Ian Romanick writes: Though, it turns out that this deviates from what C99 specifies. Specifically, the ISO/IEC 9899:TC2 Committee Draft dated May 6, 2005 says: "After all replacements due to macro expansion and the defined unary operator h

Re: [Mesa-dev] [PATCH 0/2] improve gles2 conformance on android

2013-02-22 Thread Ian Romanick
On 02/20/2013 03:00 AM, Tapani Pälli wrote: Following changes improve gles2 conformance on android. There are additional failures related to sampling but those will be dealt later. This series is: Reviewed-by: Ian Romanick Tapani Pälli (2): mesa: add missing case in _mesa_GetTexParameter

Re: [Mesa-dev] [PATCH 1/2] mesa: Fix setup of ctx->Point.PointSprite for GLES2.

2013-02-22 Thread Ian Romanick
On 02/20/2013 04:58 PM, Eric Anholt wrote: The recent change for GL core broke the older setup, which broke gl_PointCoord on pre-gen6 (where gl_PointCoord is undefined if point sprites are disabled). Fixes the new piglit GLES-2.0/glsl-fs-pointcoord test. Bugzilla: https://bugs.freedesktop.org/sh

[Mesa-dev] [Bug 61199] mapi/glapi/glprocs.h:2573:5: error: ‘glDiscardFramebufferEXT’ undeclared here (not in a function)

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61199 --- Comment #6 from Brad King --- Comment on attachment 75234 --> https://bugs.freedesktop.org/attachment.cgi?id=75234 fix without typos included Review of attachment 75234: - Te

Re: [Mesa-dev] [PATCH 1/2] i965: Make sRGB-capable framebuffers by default.

2013-02-22 Thread Ian Romanick
On 02/22/2013 12:00 PM, Eric Anholt wrote: The GLX extension lets you expose visuals that explicitly guarantee you that the GL_FRAMEBUFFER_SRGB_CAPABLE flag will be set, but we can set the flag even while the visual doesn't provide the guarantee. This appears to be consistent with other implemen

Re: [Mesa-dev] [PATCH] configure: Fix build with automake < 1.11

2013-02-22 Thread Matt Turner
On Fri, Feb 22, 2013 at 12:25 PM, Lauri Kasanen wrote: > Commit 86d30dea3c13d29ef8d39bc18db63a0441051975 broke building with older > automake versions with this error: > > Makefile:769: *** Recursive variable am__v_YACC_ references itself > (eventually). Stop. > > This patch fixes it. Fix stolen

Re: [Mesa-dev] [PATCH 0/4] r6xx flushing rework and enable CP DMA

2013-02-22 Thread Jerome Glisse
On Fri, Feb 22, 2013 at 2:38 PM, wrote: > From: Alex Deucher > > This patch set cleans up the flushing on r6xx in what seems to be > a logical manner. The last patch enables CP DMA on r6xx. No piglit > regressions on RS780 which I was testing on. > > Alex Deucher (4): > r600g: add missing em

Re: [Mesa-dev] A few fixes for the preprocessor for GLSL 1.30

2013-02-22 Thread Carl Worth
Ian Romanick writes: > Though, it turns out that this deviates from what C99 specifies. > Specifically, the ISO/IEC 9899:TC2 Committee Draft dated May 6, 2005 says: > > "After all replacements due to macro expansion and the defined unary > operator have been performed, all remaining ide

Re: [Mesa-dev] [PATCH] i965/gen[45]: Do point coord logic whenever gl_PointCoord is asked for.

2013-02-22 Thread Ian Romanick
On 02/21/2013 08:48 AM, Eric Anholt wrote: Ian Romanick writes: On 02/15/2013 10:46 PM, Eric Anholt wrote: The desktop spec asks for gl_PointCoord to be defined only when GL_POINT_SPRITE is enabled, and it's undefined otherwise (why?!). The ES spec doesn't have GL_POINT_SPRITE and gl_PointCo

Re: [Mesa-dev] [PATCH] i965: Avoid segfault in gen6_upload_state

2013-02-22 Thread Ian Romanick
On 02/20/2013 05:34 PM, Eric Anholt wrote: Ian Romanick writes: On 02/19/2013 04:27 PM, Carl Worth wrote: This fixes a bug introduced in commit 258453716f001eab1288d99765213 and triggered whenever "rb" is NULL. Fixes bug #59445: [SNB/IVB/HSW Bisected]Oglc draw-buffers2(advanced.blen

[Mesa-dev] [PATCH] configure: Fix build with automake < 1.11

2013-02-22 Thread Lauri Kasanen
Commit 86d30dea3c13d29ef8d39bc18db63a0441051975 broke building with older automake versions with this error: Makefile:769: *** Recursive variable am__v_YACC_ references itself (eventually). Stop. This patch fixes it. Fix stolen from xorg-macros. -- This is a candidate for the 9.1 branch, sinc

[Mesa-dev] [Bug 61199] mapi/glapi/glprocs.h:2573:5: error: ‘glDiscardFramebufferEXT’ undeclared here (not in a function)

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61199 Tapani Pälli changed: What|Removed |Added CC||brad.k...@kitware.com --- Comment #5 from

Re: [Mesa-dev] [PATCH] meta: Allocate texture before initializing texture coordinates

2013-02-22 Thread Patrick Baggett
On Fri, Feb 22, 2013 at 2:23 PM, Ian Romanick wrote: > On 02/15/2013 11:20 AM, Anuj Phogat wrote: > >> tex->Sright and tex->Ttop are initialized during texture allocation. >> This fixes depth buffer blitting failures in khronos conformance tests >> when run on desktop GL 3.0. >> >> Note: This is

[Mesa-dev] [Bug 61282] build failure since 413941e1, glDiscardFramebufferEXT undeclared

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61282 Ian Romanick changed: What|Removed |Added Assignee|mesa-dev@lists.freedesktop. |lem...@gmail.com |org

Re: [Mesa-dev] [PATCH] meta: Allocate texture before initializing texture coordinates

2013-02-22 Thread Ian Romanick
On 02/15/2013 11:20 AM, Anuj Phogat wrote: tex->Sright and tex->Ttop are initialized during texture allocation. This fixes depth buffer blitting failures in khronos conformance tests when run on desktop GL 3.0. Note: This is a candidate for stable branches. Signed-off-by: Anuj Phogat Reviewe

[Mesa-dev] [Bug 12817] Xorg 7.3 crashes due to Mesa/GL problems

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=12817 Ian Romanick changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 61282] build failure since 413941e1, glDiscardFramebufferEXT undeclared

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61282 Jon TURNEY changed: What|Removed |Added CC||jon.tur...@dronecode.org.uk --- Comment #1

[Mesa-dev] [PATCH 1/2] i965: Make sRGB-capable framebuffers by default.

2013-02-22 Thread Eric Anholt
The GLX extension lets you expose visuals that explicitly guarantee you that the GL_FRAMEBUFFER_SRGB_CAPABLE flag will be set, but we can set the flag even while the visual doesn't provide the guarantee. This appears to be consistent with other implementations, as we've seen several apps now that

[Mesa-dev] [PATCH 2/2] intel: Use the new "ctx" local variable I just added some more.

2013-02-22 Thread Eric Anholt
--- src/mesa/drivers/dri/intel/intel_context.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c index 488cf9b..82b00bd 100644 --- a/src/mesa/drivers/dri/intel/intel_context.c +++ b/sr

Re: [Mesa-dev] [PATCH] clover: Fix build with LLVM 3.3

2013-02-22 Thread Aaron Watry
On Fri, Feb 22, 2013 at 12:21 PM, Tom Stellard wrote: > On Thu, Feb 21, 2013 at 08:25:20AM -0600, Aaron Watry wrote: > > Hi Tom, > > > > Mesa+Clover does indeed build against master llvm/clang, but I'm having > > trouble building against it when I try to do a clean build of Piglit. > > > > Error

Re: [Mesa-dev] [PATCH] meta: Allocate texture before initializing texture coordinates

2013-02-22 Thread Chad Versace
On 02/19/2013 04:15 PM, Anuj Phogat wrote: > On Fri, Feb 15, 2013 at 11:20 AM, Anuj Phogat wrote: >> tex->Sright and tex->Ttop are initialized during texture allocation. >> This fixes depth buffer blitting failures in khronos conformance tests >> when run on desktop GL 3.0. >> >> Note: This is a c

[Mesa-dev] [PATCH 4/4] r600g: enable CP DMA on r6xx (v2)

2013-02-22 Thread alexdeucher
From: Alex Deucher With the previous flushing changes this seems to work reliably now. v2: add R600_CONTEXT_FLUSH_AND_INV Signed-off-by: Alex Deucher --- src/gallium/drivers/r600/r600_blit.c |3 +-- src/gallium/drivers/r600/r600_hw_context.c |9 ++--- 2 files changed, 3 inse

[Mesa-dev] [PATCH 3/4] r600g: set additional cp_coher_cntl bits for 6xx/7xx flush (v2)

2013-02-22 Thread alexdeucher
From: Alex Deucher I don't see why we shouldn't be setting these bits on 6xx/7xx as well. They shouldn't hurt anything and we may be missing synchronizations with certain blocks by not setting them. The ddx already sets cp_coher_cntl in a similar manner. v2: adjust selected bits. Signed-off-by

[Mesa-dev] [PATCH 2/4] r600g: synchronize streamout buffers on r6xx too (v2)

2013-02-22 Thread alexdeucher
From: Alex Deucher Streamout buffers need to be synchronized on r6xx as well. v2: Add DEST flush as well. Signed-off-by: Alex Deucher --- src/gallium/drivers/r600/r600_hw_context.c |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/gallium/drivers/r600/r600_hw_con

[Mesa-dev] [PATCH 1/4] r600g: add missing emit_flush for R600_CONTEXT_FLUSH_AND_INV case

2013-02-22 Thread alexdeucher
From: Alex Deucher We set the cp_coher_cntl bits but never emit them. Signed-off-by: Alex Deucher --- src/gallium/drivers/r600/r600_hw_context.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/gallium/drivers/r600/r600_hw_context.c b/src/gallium/drivers/r600/r600_

[Mesa-dev] [PATCH 0/4] r6xx flushing rework and enable CP DMA

2013-02-22 Thread alexdeucher
From: Alex Deucher This patch set cleans up the flushing on r6xx in what seems to be a logical manner. The last patch enables CP DMA on r6xx. No piglit regressions on RS780 which I was testing on. Alex Deucher (4): r600g: add missing emit_flush for R600_CONTEXT_FLUSH_AND_INV case r600g: sy

[Mesa-dev] [PATCH] r600g: r6xx deadlock workaround (v2)

2013-02-22 Thread alexdeucher
From: Alex Deucher Write to a CB register between draws. May fix: https://bugs.freedesktop.org/show_bug.cgi?id=50655 https://bugs.freedesktop.org/show_bug.cgi?id=47116 v2: flush along with workaround. Note: this is a candidate for the 9.1 branch. Signed-off-by: Alex Deucher --- src/gallium/

[Mesa-dev] [PATCH 1/4] glsl: allow GLSL compiler version to be overridden to 1.50

2013-02-22 Thread Jordan Justen
Although GLSL 1.50 compiler support is not available, this change will allow MESA_GLSL_VERSION_OVERRIDE=150 to be used while 1.50 support is being developed. Since no drivers claim 1.50 GLSL support, this change should only impact Mesa when MESA_GLSL_VERSION_OVERRIDE=150 is set. Signed-off-by: Jo

[Mesa-dev] [PATCH 3/4] intel: update max versions based on MESA_GL_VERSION_OVERRIDE

2013-02-22 Thread Jordan Justen
If the override is version is >= 3.1, then update the max_gl_core_version. Otherwise, update max_gl_compat_version. Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/intel/intel_screen.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/mesa/drivers/dri/intel/intel_screen

[Mesa-dev] [PATCH 2/4] mesa version: add _mesa_get_gl_version_override

2013-02-22 Thread Jordan Justen
This will allow other code to get access to the override version before a context is available. Signed-off-by: Jordan Justen --- src/mesa/main/version.c | 94 +-- src/mesa/main/version.h |3 ++ 2 files changed, 70 insertions(+), 27 deletions(-)

[Mesa-dev] [PATCH 4/4] intel: Enable __DRI_API_OPENGL_CORE api with dri2 contexts

2013-02-22 Thread Jordan Justen
Without this set, dri_util.c:dri2CreateContextAttribs will reject requests to create a context with __DRI_API_OPENGL_CORE. This prevents a 3.2 core profile context from being created even when MESA_GL_OVERRIDE_VERSION=3.2 is used. Signed-off-by: Jordan Justen --- src/mesa/drivers/dri/intel/inte

[Mesa-dev] [PATCH 0/4] Fix issue with overriding GL to 3.2 and GLSL to 1.50

2013-02-22 Thread Jordan Justen
Using MESA_GL_VERSION_OVERRIDE=3.2 and MESA_GLSL_VERSION_OVERRIDE=150 currently fails with piglit's shader_runner. For a GLSL 1.50 test, shader_runner wants to create a 3.2 core profile for a 1.50 test, but that was not working. Also, the compiler would assert during initialization if the version o

[Mesa-dev] [PATCH] llvmpipe: support GL_ARB_texture_buffer_object/GL_ARB_texture_buffer_range

2013-02-22 Thread sroland
From: Roland Scheidegger This also fixes not honoring first/last_layer view parameters for array textures, plus not honoring last_level view parameter for all textures (neither is really used by OpenGL). This mostly passes piglit arb_texture_buffer_object tests (it needs, however, glsl 140 versio

Re: [Mesa-dev] [PATCH 4/4] R600/SI: Support AMDGPU.ddx/y intrinsics

2013-02-22 Thread Michel Dänzer
On Fre, 2013-02-22 at 09:05 -0800, Paul Berry wrote: > On 22 February 2013 08:02, Michel Dänzer wrote: > From: Michel Dänzer > > Use LDS for calculating the deltas between neighbouring > pixels. Not sure the > sign of the delta is correct for both dimensi

[Mesa-dev] [Bug 61299] New: LLVM 3.2 fails to link with Mesa 9.0.2 on Windows; missing link libraries

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=61299 Priority: medium Bug ID: 61299 Assignee: mesa-dev@lists.freedesktop.org Summary: LLVM 3.2 fails to link with Mesa 9.0.2 on Windows; missing link libraries Severity: normal

Re: [Mesa-dev] [PATCH] clover: Fix build with LLVM 3.3

2013-02-22 Thread Tom Stellard
On Thu, Feb 21, 2013 at 08:25:20AM -0600, Aaron Watry wrote: > Hi Tom, > > Mesa+Clover does indeed build against master llvm/clang, but I'm having > trouble building against it when I try to do a clean build of Piglit. > > Error received: > > [ 18%] Built target piglitutil_cl > Linking C executa

[Mesa-dev] [PATCH] clover: Fix build with LLVM 3.3 v2

2013-02-22 Thread Tom Stellard
From: Tom Stellard v2: - Fix order that the clang libraries are passed to the linker to avoid missing symbol errors. --- .../state_trackers/clover/llvm/invocation.cpp | 47 --- src/gallium/targets/opencl/Makefile.am |2 +- 2 files changed, 40 inserti

Re: [Mesa-dev] [RFC] New EGL extension: EGL_EXT_platform_display

2013-02-22 Thread Eric Anholt
Chad Versace writes: > On 02/20/2013 05:44 PM, Eric Anholt wrote: >> Chad Versace writes: >> >>> -BEGIN PGP SIGNED MESSAGE- >>> Hash: SHA1 >>> >>> I'm seeking feedback on an EGL extension that I'm drafting. The ideas have >>> already been discussed at Khronos meetings to a good receptio

Re: [Mesa-dev] [PATCH 4/4] R600/SI: Support AMDGPU.ddx/y intrinsics

2013-02-22 Thread Paul Berry
On 22 February 2013 08:02, Michel Dänzer wrote: > From: Michel Dänzer > > Use LDS for calculating the deltas between neighbouring pixels. Not sure > the > sign of the delta is correct for both dimensions (the sign doesn't seem to > matter for the relevant piglit tests), but it'll be easy to fix

Re: [Mesa-dev] [PATCH 4/4] R600/SI: Support AMDGPU.ddx/y intrinsics

2013-02-22 Thread Michel Dänzer
On Fre, 2013-02-22 at 17:44 +0100, Tom Stellard wrote: > This patch has my r-b, [...] Thanks. > > + // Get this thread's ID > > + BuildMI(BB, I, BB.findDebugLoc(I), > > TII->get(AMDGPU::V_MBCNT_LO_U32_B32_e64), mbcnt_lo) > > + .addImm(0x) > > + .addImm(0x80) // Inli

Re: [Mesa-dev] [PATCH] r600g: workaround hyperz lockup on evergreen

2013-02-22 Thread Alex Deucher
On Fri, Feb 22, 2013 at 11:20 AM, wrote: > From: Jerome Glisse > > This work around disable hyperz if write to zbuffer is disabled. Somehow > using hyperz when not writting to the zbuffer trigger GPU lockup. See : > > https://bugs.freedesktop.org/show_bug.cgi?id=60848 > > Candidate for 9.1 > > S

Re: [Mesa-dev] [PATCH 1/3] radeonsi: Refactor packing of texture coordinates

2013-02-22 Thread Tom Stellard
On Fri, Feb 22, 2013 at 05:02:37PM +0100, Michel Dänzer wrote: > From: Michel Dänzer > > The number of coordinates to pack will be useful for other address parameters > as well. > > Signed-off-by: Michel Dänzer These patches depend on LLVM changes, and I would like to track this somehow. Do yo

Re: [Mesa-dev] [PATCH 2/4] R600/SI: Handle VGPR256 in copyPhysReg

2013-02-22 Thread Tom Stellard
On Fri, Feb 22, 2013 at 05:02:11PM +0100, Michel Dänzer wrote: > From: Michel Dänzer > > > Signed-off-by: Michel Dänzer Reviewed-by: Tom Stellard > --- > lib/Target/R600/SIInstrInfo.cpp | 28 +++- > 1 file changed, 27 insertions(+), 1 deletion(-) > > diff --git a/lib/

Re: [Mesa-dev] [PATCH 1/4] R600/SI: Add intrinsics for texture sampling with user derivatives

2013-02-22 Thread Tom Stellard
On Fri, Feb 22, 2013 at 05:02:10PM +0100, Michel Dänzer wrote: > From: Michel Dänzer > > > Signed-off-by: Michel Dänzer Reviewed-by: Tom Stellard > --- > lib/Target/R600/SIInstructions.td | 7 ++- > lib/Target/R600/SIIntrinsics.td | 1 + > 2 files changed, 7 insertions(+), 1 deletion(-)

Re: [Mesa-dev] [PATCH 4/4] R600/SI: Support AMDGPU.ddx/y intrinsics

2013-02-22 Thread Tom Stellard
This patch has my r-b, but I think we need a better solution for representing inline constants. See my comment below. On Fri, Feb 22, 2013 at 05:02:13PM +0100, Michel Dänzer wrote: > From: Michel Dänzer > > Use LDS for calculating the deltas between neighbouring pixels. Not sure the > sign of t

Re: [Mesa-dev] [PATCH 3/4] R600/SI: Initial support for LDS/GDS instructions

2013-02-22 Thread Tom Stellard
On Fri, Feb 22, 2013 at 05:02:12PM +0100, Michel Dänzer wrote: > From: Michel Dänzer > > > Signed-off-by: Michel Dänzer > --- > lib/Target/R600/SIInstrFormats.td | 24 > lib/Target/R600/SIInstrInfo.td| 22 ++ > lib/Target/R600/SIInstructions.td

[Mesa-dev] [PATCH] r600g: workaround hyperz lockup on evergreen

2013-02-22 Thread j . glisse
From: Jerome Glisse This work around disable hyperz if write to zbuffer is disabled. Somehow using hyperz when not writting to the zbuffer trigger GPU lockup. See : https://bugs.freedesktop.org/show_bug.cgi?id=60848 Candidate for 9.1 Signed-off-by: Jerome Glisse --- src/gallium/drivers/r600/

[Mesa-dev] [Bug 57563] Crash in debug_backtrace_capture (src/gallium/auxiliary/util/u_debug_stack.c) when running mesa-demos using drm backend

2013-02-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57563 José Fonseca changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH] llvmpipe: Fix rendering into PIPE_FORMAT_X8B8G8R8_UNORM.

2013-02-22 Thread Jose Fonseca
Roland found a better fix. Please ignore. Jose - Original Message - > From: José Fonseca > > Weird format, which Mesa state tracker recently started using. > > Fixes segfault in > > ./bin/texture-packed-formats -auto > > because swizzle[foo] was 0xff for padding channel (X). It sti

Re: [Mesa-dev] [PATCH 1/3] radeonsi: Refactor packing of texture coordinates

2013-02-22 Thread Christian König
Am 22.02.2013 17:02, schrieb Michel Dänzer: From: Michel Dänzer The number of coordinates to pack will be useful for other address parameters as well. Signed-off-by: Michel Dänzer Very nice, for this series: Reviewed-by: Christian König --- src/gallium/drivers/radeonsi/radeonsi_shader

[Mesa-dev] [PATCH 3/3] radeonsi: Handle TGSI_OPCODE_DDX/Y

2013-02-22 Thread Michel Dänzer
From: Michel Dänzer 15 more little piglits. Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/radeonsi_shader.c | 34 ++ src/gallium/drivers/radeonsi/radeonsi_shader.h | 1 + src/gallium/drivers/radeonsi/si_state_draw.c | 1 + 3 files changed, 36 inserti

[Mesa-dev] [PATCH 2/3] radeonsi: Handle TGSI_OPCODE_TXD

2013-02-22 Thread Michel Dänzer
From: Michel Dänzer Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/radeonsi_shader.c | 23 +-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/radeonsi/radeonsi_shader.c b/src/gallium/drivers/radeonsi/radeonsi_shader.c inde

[Mesa-dev] [PATCH 1/3] radeonsi: Refactor packing of texture coordinates

2013-02-22 Thread Michel Dänzer
From: Michel Dänzer The number of coordinates to pack will be useful for other address parameters as well. Signed-off-by: Michel Dänzer --- src/gallium/drivers/radeonsi/radeonsi_shader.c | 54 +++--- 1 file changed, 32 insertions(+), 22 deletions(-) diff --git a/src/galliu

[Mesa-dev] [PATCH 4/4] R600/SI: Support AMDGPU.ddx/y intrinsics

2013-02-22 Thread Michel Dänzer
From: Michel Dänzer Use LDS for calculating the deltas between neighbouring pixels. Not sure the sign of the delta is correct for both dimensions (the sign doesn't seem to matter for the relevant piglit tests), but it'll be easy to fix that up if not. Signed-off-by: Michel Dänzer --- lib/Targe

  1   2   >