Re: [Mesa-dev] [PATCH] glsl/builtins: Add missing mix(genType, genType, bvec) built-ins.

2012-01-06 Thread Kenneth Graunke
On 01/05/2012 07:18 PM, Eric Anholt wrote: On Thu, 5 Jan 2012 13:28:56 -0800, Kenneth Graunke wrote: The IR for mix(float, float, bool) was missing a write mask, causing the IR reader to die horribly. Furthermore, I neglected to add any of the new prototypes to the 1.30 profiles. Fixes oglc

[Mesa-dev] [PATCH] mesa: Bump version to 8.0 (devel)

2012-01-06 Thread Kenneth Graunke
--- Makefile|2 +- configs/default |4 +- docs/relnotes-7.12.html | 83 --- docs/relnotes-8.0.html | 83 +++ docs/relnotes.html |2 +- src/mesa/main/version.h |

Re: [Mesa-dev] [PATCH 1/2] mesa: add missing error check for linear blit of integer colors

2012-01-06 Thread Eric Anholt
On Fri, 6 Jan 2012 15:34:47 -0700, Brian Paul wrote: > --- > src/mesa/main/fbobject.c | 12 > 1 files changed, 12 insertions(+), 0 deletions(-) > > diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c > index 912170a..aa35ba7 100644 > --- a/src/mesa/main/fbobject.c >

Re: [Mesa-dev] [RFC PATCH] Add ability to use libXrandr for OML_sync_control

2012-01-06 Thread Keith Packard
On Tue, 20 Sep 2011 15:37:20 -0400, Matt Turner wrote: > - checking for the appropriate Xrandr version. > XRRGetScreenResourcesCurrent is a 1.3 function. It's not totally > clear to me what the difference between it and XRRGetScreenResources > is. (These aren't docum

[Mesa-dev] [PATCH] mesa: add missing color buffer datatype check for glBlitFramebuffer()

2012-01-06 Thread Brian Paul
--- src/mesa/main/fbobject.c | 44 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index ddd70be..6ff09f7 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -2579

Re: [Mesa-dev] [PATCH] mesa: Bump version to 8.0 (devel)

2012-01-06 Thread Ian Romanick
On 01/06/2012 03:33 PM, Kenneth Graunke wrote: --- Makefile|2 +- configs/default |4 ++-- src/mesa/main/version.h |6 +++--- This should also rename docs/relnotes-7.12.html to docs/relnotes-8.0.html and update the link in docs/relnotes.html. 3 files

[Mesa-dev] [PATCH] mesa: Bump version to 8.0 (devel)

2012-01-06 Thread Kenneth Graunke
--- Makefile|2 +- configs/default |4 ++-- src/mesa/main/version.h |6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index c738947..4a41948 100644 --- a/Makefile +++ b/Makefile @@ -184,7 +184,7 @@ ultrix-gcc: # Rul

[Mesa-dev] [PATCH] RFC: tgsi: Add output_type to struct tgsi_opcode_info

2012-01-06 Thread Tom Stellard
I've been working more on the TGSI->LLVM converter, and I've found that it would be useful to be able to look up information about how an opcode calculates its result. I'm looking for feedback on whether adding a field to struct tgsi_opcode_info is the right way to do this, and also if the enumera

Re: [Mesa-dev] softpipe GL3 status

2012-01-06 Thread Brian Paul
On 01/06/2012 02:12 PM, Ian Romanick wrote: On 01/06/2012 12:30 PM, Jakob Bornecrantz wrote: - Original Message - On 01/06/2012 12:26 PM, Ian Romanick wrote: On 01/06/2012 09:04 AM, Dave Airlie wrote: Hi guys, Just a quick note, I've just spent a week or so trying to see where gall

[Mesa-dev] [PATCH 2/2] mesa: check depth, stencil formats (not depths) in glBlitFramebuffer

2012-01-06 Thread Brian Paul
We were only comparing the number of depth and stencil bits but the extension spec actually says the formats must match: The error INVALID_OPERATION is generated if BlitFramebufferEXT is called and includes DEPTH_BUFFER_BIT or STENCIL_BUFFER_BIT and the source and destination depth or

[Mesa-dev] [PATCH 1/2] mesa: add missing error check for linear blit of integer colors

2012-01-06 Thread Brian Paul
--- src/mesa/main/fbobject.c | 12 1 files changed, 12 insertions(+), 0 deletions(-) diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c index 912170a..aa35ba7 100644 --- a/src/mesa/main/fbobject.c +++ b/src/mesa/main/fbobject.c @@ -2742,6 +2742,18 @@ _mesa_BlitFramebu

Re: [Mesa-dev] [PATCH 7.11] gallium/dri: Handle xserver that doesn't send needless DRI2 invalidate events

2012-01-06 Thread Ville Syrjälä
On Sun, Dec 18, 2011 at 06:22:01PM +0200, Ville Syrjälä wrote: > Ever since xserver commit 531869448d07e00ae241120b59f35709d59c, > the server no longer sends invalidate events to clients, unless they > have performed a GetBuffers request since the drawable was last > invalidated. > > If the dr

Re: [Mesa-dev] [RFC PATCH] Add ability to use libXrandr for OML_sync_control

2012-01-06 Thread Matt Turner
On Thu, Oct 6, 2011 at 3:13 PM, Jesse Barnes wrote: > On Tue, 20 Sep 2011 15:37:20 -0400 > Matt Turner wrote: > >> One more nail in the coffin of XF86VidMode. >> >> Signed-off-by: Matt Turner >> --- >> I'm not sure how to test this, but the translation from XF86VidMode >> Xrandr seems to be pret

Re: [Mesa-dev] [PATCH] i965/fs: Fix projector==1.0 optimization pre-gen6.

2012-01-06 Thread Ian Romanick
On 01/05/2012 06:59 PM, Eric Anholt wrote: The optimization was supposed to turn an attribute component that was always 1.0 into a mov of 1.0. But by leaving loop this patch removes out of that test, we applied the projection correction to the 1.0 and got some other value, breaking openarena onc

Re: [Mesa-dev] [PATCH 1/3] swrast: remove calls to _swrast_update_depth/stencil_buffer()

2012-01-06 Thread Ian Romanick
On 01/06/2012 11:43 AM, Brian Paul wrote: These functions updated the gl_renderbuffer::_DepthBuffer and _StencilBuffer fields. But those fields are no longer used. Reviewed-by: Ian Romanick --- src/mesa/swrast/s_context.c | 23 --- 1 files changed, 0 insertions(+),

Re: [Mesa-dev] softpipe GL3 status

2012-01-06 Thread Ian Romanick
On 01/06/2012 12:30 PM, Jakob Bornecrantz wrote: - Original Message - On 01/06/2012 12:26 PM, Ian Romanick wrote: On 01/06/2012 09:04 AM, Dave Airlie wrote: Hi guys, Just a quick note, I've just spent a week or so trying to see where gallium and softpipe were w.r.t GL3.0 support.

[Mesa-dev] [PATCH] Enable is_front_buffer_rendering variable in case of GL_FRONT_AND_BACK

2012-01-06 Thread Anuj Phogat
glDrawBuffer(GL_FRONT_AND_BACK) results in to segmentation fault if intel->is_front_buffer_rendering is not enabled with GL_FRONT_AND_BACK. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=44153 Reported-by: Yi Sun Signed-off-by: Anuj Phogat --- src/mesa/drivers/dri/intel/intel_buffers.c

Re: [Mesa-dev] [PATCH 1/3] swrast: remove calls to _swrast_update_depth/stencil_buffer()

2012-01-06 Thread Eric Anholt
On Fri, 6 Jan 2012 12:43:39 -0700, Brian Paul wrote: > These functions updated the gl_renderbuffer::_DepthBuffer and > _StencilBuffer fields. But those fields are no longer used. Glad to see this die. Series is Reviewed-by: Eric Anholt pgpF8bfMlM12j.pgp Description: PGP signature _

[Mesa-dev] [PATCH] swrast: fix Z testing of points/lines for 16-bit depth buffers

2012-01-06 Thread Brian Paul
We were comparing 32-bit Z buffer values against 16-bit fragment values. Need to do scaling like for the 24-bit case. Triangle Z testing was OK since it didn't hit this code path. --- src/mesa/swrast/s_depth.c | 36 +--- 1 files changed, 29 insertions(+), 7 delet

[Mesa-dev] [PATCH] swrast: s/GLbitfield/GLbitfield64/ for sw_span::arrayAttribs

2012-01-06 Thread Brian Paul
This is a bitfield of FRAG_BIT_x values so it should be 64-bits now. --- src/mesa/swrast/s_context.c |2 +- src/mesa/swrast/s_context.h |4 ++-- src/mesa/swrast/s_span.c|5 +++-- src/mesa/swrast/s_span.h|3 ++- 4 files changed, 8 insertions(+), 6 deletions(-) diff --git a/

Re: [Mesa-dev] softpipe GL3 status

2012-01-06 Thread Jakob Bornecrantz
- Original Message - > On 01/06/2012 12:26 PM, Ian Romanick wrote: > > On 01/06/2012 09:04 AM, Dave Airlie wrote: > >> Hi guys, > >> > >> Just a quick note, I've just spent a week or so trying to see > >> where gallium and softpipe were w.r.t GL3.0 support. > >> Cool stuff, great work!

[Mesa-dev] [PATCH 3/3] mesa: remove gl_framebuffer:_DepthBuffer, _StencilBuffer fields

2012-01-06 Thread Brian Paul
These were used by swrast to make a combined depth+stencil buffer look like separate depth and stencil buffers. But that's no longer needed after rewriting the depth/stencil code in swrast. --- src/mesa/main/framebuffer.c |6 -- src/mesa/main/mtypes.h |6 -- 2 files changed,

[Mesa-dev] [PATCH 2/3] swrast: remove s_depthstencil.[ch] files

2012-01-06 Thread Brian Paul
The code is no longer used. --- src/mesa/SConscript |1 - src/mesa/sources.mak |1 - src/mesa/swrast/s_depthstencil.c | 791 -- src/mesa/swrast/s_depthstencil.h | 39 -- 4 files changed, 0 insertions(+), 832 deletions(-) dele

[Mesa-dev] [PATCH 1/3] swrast: remove calls to _swrast_update_depth/stencil_buffer()

2012-01-06 Thread Brian Paul
These functions updated the gl_renderbuffer::_DepthBuffer and _StencilBuffer fields. But those fields are no longer used. --- src/mesa/swrast/s_context.c | 23 --- 1 files changed, 0 insertions(+), 23 deletions(-) diff --git a/src/mesa/swrast/s_context.c b/src/mesa/swrast/s

Re: [Mesa-dev] [PATCH 3/3] glsl_to_tgsi: Use mesa register allocator

2012-01-06 Thread Tom Stellard
On Fri, 2012-01-06 at 20:15 +0100, Vincent Lejeune wrote: > --- > src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 156 +-- > 1 files changed, 75 insertions(+), 81 deletions(-) > > diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp > b/src/mesa/state_tracker/st_glsl_to_

Re: [Mesa-dev] softpipe GL3 status

2012-01-06 Thread Brian Paul
On 01/06/2012 12:26 PM, Ian Romanick wrote: On 01/06/2012 09:04 AM, Dave Airlie wrote: Hi guys, Just a quick note, I've just spent a week or so trying to see where gallium and softpipe were w.r.t GL3.0 support. I've pushed a branch to my repo called softpipe-gl3. It contains patches in various

Re: [Mesa-dev] softpipe GL3 status

2012-01-06 Thread Christoph Bumiller
On 01/06/2012 08:26 PM, Ian Romanick wrote: > On 01/06/2012 09:04 AM, Dave Airlie wrote: >> Hi guys, >> >> Just a quick note, I've just spent a week or so trying to see where >> gallium and softpipe were w.r.t GL3.0 support. >> >> I've pushed a branch to my repo called softpipe-gl3. It contains >>

Re: [Mesa-dev] softpipe GL3 status

2012-01-06 Thread Bryan Cain
On 01/06/2012 01:26 PM, Ian Romanick wrote: > On 01/06/2012 09:04 AM, Dave Airlie wrote: >> Hi guys, >> >> Just a quick note, I've just spent a week or so trying to see where >> gallium and softpipe were w.r.t GL3.0 support. >> >> I've pushed a branch to my repo called softpipe-gl3. It contains >>

Re: [Mesa-dev] softpipe GL3 status

2012-01-06 Thread Ian Romanick
On 01/06/2012 09:04 AM, Dave Airlie wrote: Hi guys, Just a quick note, I've just spent a week or so trying to see where gallium and softpipe were w.r.t GL3.0 support. I've pushed a branch to my repo called softpipe-gl3. It contains patches in various state of usefulness but it brings the piglit

Re: [Mesa-dev] [PATCH 3/4] glsl: Emit extra errors for l-value violations in 'out' or 'inout' parameters

2012-01-06 Thread Paul Berry
On 23 December 2011 14:35, Ian Romanick wrote: > From: Ian Romanick > > Somethings, like pre-increment operations, were not previously caught. > After the 8.0 release, this code needs some major refactoring and > clean-up. It's a mess. :( > > Signed-off-by: Ian Romanick > Bugzilla: https://bug

Re: [Mesa-dev] [PATCH 2/4] glsl: Emit errors for assignments to non-l-value expressions

2012-01-06 Thread Paul Berry
On 23 December 2011 14:35, Ian Romanick wrote: > From: Ian Romanick > > Signed-off-by: Ian Romanick > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=42755 > --- > src/glsl/ast_to_hir.cpp | 28 +--- > 1 files changed, 21 insertions(+), 7 deletions(-) > > diff -

[Mesa-dev] [PATCH 3/3] glsl_to_tgsi: Use mesa register allocator

2012-01-06 Thread Vincent Lejeune
--- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 156 +-- 1 files changed, 75 insertions(+), 81 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index e0013f1..2f752d6 100644 --- a/src/mesa/state_tracker/st

[Mesa-dev] [PATCH 2/3] glsl_to_tgsi: Use a separate visitor to handle dereferences.

2012-01-06 Thread Vincent Lejeune
--- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 381 +++ 1 files changed, 268 insertions(+), 113 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index b4cf76e..e0013f1 100644 --- a/src/mesa/state_tracker/

[Mesa-dev] [PATCH 1/3] glsl_to_tgsi: Create a new variable_store class replacing variables field in glsl_to_tgsi_visitor

2012-01-06 Thread Vincent Lejeune
--- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 392 1 files changed, 287 insertions(+), 105 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index cecceca..b4cf76e 100644 --- a/src/mesa/state_tracker

[Mesa-dev] [PATCH] i965/gen7: Fix segfault in transform feedback to DYNAMIC_DRAW buffers.

2012-01-06 Thread Eric Anholt
Fixes piglit EXT_transform_feedback/buffer-usage. --- src/mesa/drivers/dri/i965/gen7_sol_state.c |5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/gen7_sol_state.c b/src/mesa/drivers/dri/i965/gen7_sol_state.c index 04783ec..110c166 100644 --- a

[Mesa-dev] softpipe GL3 status

2012-01-06 Thread Dave Airlie
Hi guys, Just a quick note, I've just spent a week or so trying to see where gallium and softpipe were w.r.t GL3.0 support. I've pushed a branch to my repo called softpipe-gl3. It contains patches in various state of usefulness but it brings the piglit results to 220 failures in 7623 tests, which

Re: [Mesa-dev] softpipe GL3 status

2012-01-06 Thread Dave Airlie
On Fri, Jan 6, 2012 at 5:04 PM, Dave Airlie wrote: > Hi guys, > > Just a quick note, I've just spent a week or so trying to see where > gallium and softpipe were w.r.t GL3.0 support. > > I've pushed a branch to my repo called softpipe-gl3. It contains > patches in various state of usefulness but i

Re: [Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors. (v2)

2012-01-06 Thread Marek Olšák
On Fri, Jan 6, 2012 at 4:50 PM, Christoph Bumiller wrote: > On 01/06/2012 04:35 PM, Brian Paul wrote: >> On 01/06/2012 08:26 AM, Dave Airlie wrote: >>> On Fri, Jan 6, 2012 at 3:13 PM, Brian Paul  wrote: On 01/06/2012 06:57 AM, Dave Airlie wrote: > > From: Dave Airlie > > Brian

Re: [Mesa-dev] [PATCH 18/20] mesa: Rewrite the way uniforms are tracked and handled

2012-01-06 Thread Marek Olšák
On Fri, Jan 6, 2012 at 4:28 AM, Eric Anholt wrote: > So when someone changes from a program using samplerunits bound one way > to a program using samplerunits bound another way, are you expecting > glUseProgram to flag _NEW_TEXTURE?  Because it doesn't. Yes it doesn't, but st/mesa always looks if

Re: [Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors. (v2)

2012-01-06 Thread Christoph Bumiller
On 01/06/2012 04:35 PM, Brian Paul wrote: > On 01/06/2012 08:26 AM, Dave Airlie wrote: >> On Fri, Jan 6, 2012 at 3:13 PM, Brian Paul wrote: >>> On 01/06/2012 06:57 AM, Dave Airlie wrote: From: Dave Airlie Brian mentioned that mesa-demos/reflect was broken on softpipe, by m

[Mesa-dev] [PATCH] r600g: add support for virtual address space on cayman v8

2012-01-06 Thread j . glisse
From: Jerome Glisse Virtual address space put the userspace in charge of their GPU address space. It's up to userspace to bind bo into the virtual address space. Command stream can them be executed using the IB_VM chunck. This patch add support for this configuration. It doesn't remove the 64K i

Re: [Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors. (v2)

2012-01-06 Thread Brian Paul
On 01/06/2012 08:26 AM, Dave Airlie wrote: On Fri, Jan 6, 2012 at 3:13 PM, Brian Paul wrote: On 01/06/2012 06:57 AM, Dave Airlie wrote: From: Dave Airlie Brian mentioned that mesa-demos/reflect was broken on softpipe, by my previous commit. The problem was were blindly translating none to pe

Re: [Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors. (v2)

2012-01-06 Thread Dave Airlie
On Fri, Jan 6, 2012 at 3:13 PM, Brian Paul wrote: > On 01/06/2012 06:57 AM, Dave Airlie wrote: >> >> From: Dave Airlie >> >> Brian mentioned that mesa-demos/reflect was broken on softpipe, >> by my previous commit. The problem was were blindly translating none >> to perspective, when color/pntc at

Re: [Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors. (v2)

2012-01-06 Thread Brian Paul
On 01/06/2012 06:57 AM, Dave Airlie wrote: From: Dave Airlie Brian mentioned that mesa-demos/reflect was broken on softpipe, by my previous commit. The problem was were blindly translating none to perspective, when color/pntc at least need it linear. v2: no regressions version. use shademodel t

Re: [Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors. (v2)

2012-01-06 Thread Dave Airlie
On Fri, Jan 6, 2012 at 1:57 PM, Dave Airlie wrote: > From: Dave Airlie > > Brian mentioned that mesa-demos/reflect was broken on softpipe, > by my previous commit. The problem was were blindly translating none > to perspective, when color/pntc at least need it linear. > > v2: no regressions versi

Re: [Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors.

2012-01-06 Thread Dave Airlie
On Fri, Jan 6, 2012 at 1:33 PM, Dave Airlie wrote: > From: Dave Airlie > > Brian mentioned that mesa-demos/reflect was broken on softpipe, > by my previous commit. The problem was were blindly translating none > to perspective, when color/pntc at least need it linear. > > This fixes that and fixe

[Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors. (v2)

2012-01-06 Thread Dave Airlie
From: Dave Airlie Brian mentioned that mesa-demos/reflect was broken on softpipe, by my previous commit. The problem was were blindly translating none to perspective, when color/pntc at least need it linear. v2: no regressions version. use shademodel to pick what none means. Signed-off-by: Dave

[Mesa-dev] [PATCH] st/mesa: fix default interpolation for colors.

2012-01-06 Thread Dave Airlie
From: Dave Airlie Brian mentioned that mesa-demos/reflect was broken on softpipe, by my previous commit. The problem was were blindly translating none to perspective, when color/pntc at least need it linear. This fixes that and fixes reflect. Signed-off-by: Dave Airlie --- src/mesa/state_trac

[Mesa-dev] [Bug 44519] New: SIGABRT src/gallium/tests/unit/translate_test.c:250

2012-01-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44519 Bug #: 44519 Summary: SIGABRT src/gallium/tests/unit/translate_test.c:250 Classification: Unclassified Product: Mesa Version: git Platform: All OS/Version: All Status:

[Mesa-dev] [Bug 35945] GLX contexts are not resized properly when using XCBOwnsEventQueue

2012-01-06 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35945 --- Comment #4 from Samuel Rødal 2012-01-06 00:01:22 PST --- For the record, here's what the current work-around in Qt looks like: #ifdef XCB_USE_XLIB if (!handled) { // Check if a custom XEvent constructor was registered in xlib for