[Mesa-dev] [Bug 59013] New: GLES2: definition of glShaderSource is not compliant with the specification

2013-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=59013 Priority: medium Bug ID: 59013 Assignee: mesa-dev@lists.freedesktop.org Summary: GLES2: definition of glShaderSource is not compliant with the specification Severity: normal

Re: [Mesa-dev] [PATCH 6/8 v.2] glcpp: Add --disable-line-continuations argument to standalone glcpp

2013-01-03 Thread Kenneth Graunke
On 01/03/2013 04:00 PM, Carl Worth wrote: This will allow testing of disabled line-continuation on a case-by-case basis, (with the option communicated to the preprocessor via the GL context). --- Kenneth Graunke writes: Why not use getopt()? The standalone GLSL compiler already does, so it do

Re: [Mesa-dev] [PATCH 6/8 v.2] glcpp: Add --disable-line-continuations argument to standalone glcpp

2013-01-03 Thread Carl Worth
This will allow testing of disabled line-continuation on a case-by-case basis, (with the option communicated to the preprocessor via the GL context). --- Kenneth Graunke writes: > Why not use getopt()? The standalone GLSL compiler already does, so it > doesn't add another dependency. > > For th

Re: [Mesa-dev] [RFC] intel: add support for EGL_KHR_gl_image

2013-01-03 Thread Eric Anholt
Abdiel Janulgue writes: > On Friday, December 14, 2012 11:38:04 AM Eric Anholt wrote: >> Abdiel Janulgue writes: >> > This patch set adds support for KHR_gl_texture_2D_image, >> > KHR_gl_texture_cubemap_image and KHR_gl_texture_3D_image for Gen 4 -> >> > Gen7 HW. The extension enables us to be a

[Mesa-dev] [PATCH 2/2] xlib: allow GLX_DONT_CARE for glXChooseFBConfig() attribute values

2013-01-03 Thread Brian Paul
Fixes piglit glx-dont-care-mask test. Note: This is a candidate for the stable branches. --- src/mesa/drivers/x11/fakeglx.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/mesa/drivers/x11/fakeglx.c b/src/mesa/drivers/x11/fakeglx.c index 3dca405..5b69a7f 10

[Mesa-dev] [PATCH 1/2] st/glx: allow GLX_DONT_CARE for glXChooseFBConfig() attribute values

2013-01-03 Thread Brian Paul
Fixes piglit glx-dont-care-mask test. Note: This is a candidate for the stable branches. --- src/gallium/state_trackers/glx/xlib/glx_api.c | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/src/gallium/state_trackers/glx/xlib/glx_api.c b/src/gallium/state_tracker

Re: [Mesa-dev] [PATCH 1/4 v. 2] meta: Allow meta operations to pause/resume an active occlusion query

2013-01-03 Thread Carl Worth
This allows for avoiding the occlusion query erroneously accumulating results during the meta operation. This functionality is made conditional on a new MESA_META_OCCLUSION_QUERY bit so that meta-operations which should generate fragments can continue to get the current behavior. The implementatio

Re: [Mesa-dev] [PATCH 7/8] egl/wayland: Implement EGL_EXT_buffer_age

2013-01-03 Thread Kristian Høgsberg
On Thu, Dec 20, 2012 at 02:59:09PM -0200, Ander Conselvan de Oliveira wrote: > The age of the buffers is not reset on dri2_release_buffers() or > anywhere else, so after a resize the buffer age is not zero. I think > we should set age to zero on get_back_bo() when the new buffer is > allocated. Sam

Re: [Mesa-dev] [PATCH 6/8] egl/wayland: Pull color buffers from dri2_surf->color_buffers pool

2013-01-03 Thread Kristian Høgsberg
On Thu, Dec 20, 2012 at 02:56:13PM -0200, Ander Conselvan de Oliveira wrote: > 2012/12/14 Kristian Høgsberg > > > We used to keep the color buffers in the dri_buffers array and > > swap __DRI_BUFFER_BACK_LEFT and __DRI_BUFFER_FRONT_LEFT around there > > and swap third_buffer in in case we needed

Re: [Mesa-dev] [PATCH] i965: Replace structs with bit-shifting for Gen7 SURFACE_STATE entries.

2013-01-03 Thread Kenneth Graunke
On 01/03/2013 10:24 AM, Eric Anholt wrote: This mostly looks really good, and I expect it to be a nice small performance win. Just a few comments. Kenneth Graunke writes: static void dump_gen7_surface_state(struct brw_context *brw, uint32_t offset) { const char *name = "SURF"; - st

Re: [Mesa-dev] Fwd: [PATCH] mesa: Correctly set base and max texture levels in glTexparameterf

2013-01-03 Thread Ian Romanick
On 01/02/2013 06:44 PM, Anuj Phogat wrote: On Wed, Jan 2, 2013 at 11:50 PM, Brian Paul wrote: On 01/02/2013 10:39 AM, Paul Berry wrote: On 2 January 2013 07:38, Anuj Phogat mailto:anuj.pho...@gmail.com>> wrote: @@ -670,6 +668,28 @@ _mesa_TexParameterf(GLenum target, GLenum pname,

Re: [Mesa-dev] [PATCH] i965: Fix glCompressedTexSubImage2D offsets for ETC textures.

2013-01-03 Thread Ian Romanick
On 01/02/2013 11:25 AM, Paul Berry wrote: On 2 January 2013 10:55, Ian Romanick mailto:i...@freedesktop.org>> wrote: On 12/29/2012 11:50 AM, Paul Berry wrote: This patch fixes intel_miptree_unmap_etc() (which decompresses ETC textures to linear) to pay attention to map->x an

Re: [Mesa-dev] [PATCH] i965: Replace structs with bit-shifting for Gen7 SURFACE_STATE entries.

2013-01-03 Thread Eric Anholt
This mostly looks really good, and I expect it to be a nice small performance win. Just a few comments. Kenneth Graunke writes: > static void dump_gen7_surface_state(struct brw_context *brw, uint32_t offset) > { > const char *name = "SURF"; > - struct gen7_surface_state *surf = brw->inte

[Mesa-dev] [PATCH] radeon/r200: Fix tcl culling

2013-01-03 Thread smoki
Should fix bug 57842 --- src/mesa/drivers/dri/r200/r200_state.c | 13 - src/mesa/drivers/dri/radeon/radeon_state.c | 13 - 2 files changed, 8 insertions(+), 18 deletions(-) diff --git a/src/mesa/drivers/dri/r200/r200_state.c b/src/mesa/drivers/dri/r200/r200_state.

Re: [Mesa-dev] [PATCH 1/2] r600g: rework handling of the constants

2013-01-03 Thread Marek Olšák
Vincent, could you please mention (ideally on the first line of a commit message) that your patch only touches the LLVM backend? For example: "r600g/llvm: rework handling of the constants" The same for the other patches. Thank you, Marek On Wed, Dec 26, 2012 at 5:38 PM, Vincent Lejeune wrote

Re: [Mesa-dev] [PATCH] i965: Fix glCompressedTexSubImage2D offsets for ETC textures.

2013-01-03 Thread Eric Anholt
Paul Berry writes: > This patch fixes intel_miptree_unmap_etc() (which decompresses ETC > textures to linear) to pay attention to map->x and map->y when writing > to the destination image. Previously these values were ignored, > causing the xoffset and yoffset parameters passed to > glCompressed

Re: [Mesa-dev] [PATCH 1/2] mesa: Fix error reporting in _mesa_invalidate_pbo_{compressed_, }teximage.

2013-01-03 Thread Paul Berry
On 3 January 2013 08:46, Eric Anholt wrote: > "validate" instead of "invalidate" in the subject? :) > Shoot, you're right. I already pushed the patch, unfortunately :( ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.o

Re: [Mesa-dev] [PATCH 1/2] mesa: Fix error reporting in _mesa_invalidate_pbo_{compressed_, }teximage.

2013-01-03 Thread Eric Anholt
"validate" instead of "invalidate" in the subject? :) pgpS4EvEh6AnL.pgp Description: PGP signature ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] wayland: Don't cancel a roundtrip when any event is received

2013-01-03 Thread Kristian Høgsberg
On Tue, Dec 25, 2012 at 01:01:08PM +0100, Jonas Ådahl wrote: > Since wl_display_dispatch_queue() returns the number of processed events > or -1 on error, only cancel the roundtrip if an -1 is returned. > > This also fixes a potential memory corruption bug happening when the > roundtrip does an ear

Re: [Mesa-dev] [PATCH 4/4] R600: Fold CONST_ADDRESS when possible

2013-01-03 Thread Tom Stellard
On Wed, Dec 26, 2012 at 05:37:21PM +0100, Vincent Lejeune wrote: > --- > lib/Target/AMDGPU/AMDILISelDAGToDAG.cpp | 27 ++- > 1 file changed, 26 insertions(+), 1 deletion(-) > Reviewed-by: Tom Stellard > diff --git a/lib/Target/AMDGPU/AMDILISelDAGToDAG.cpp > b/lib/Targe

Re: [Mesa-dev] [PATCH 2/4] R600: Add a CONST_ADDRESS node to model constant buf read

2013-01-03 Thread Tom Stellard
On Wed, Dec 26, 2012 at 05:37:19PM +0100, Vincent Lejeune wrote: > --- > lib/Target/AMDGPU/AMDGPUISelLowering.cpp | 1 + > lib/Target/AMDGPU/AMDGPUISelLowering.h | 1 + > lib/Target/AMDGPU/R600Instructions.td| 11 ++- > 3 files changed, 12 insertions(+), 1 deletion(-) > Reviewed-

Re: [Mesa-dev] [PATCH 3/4] R600: rework handling of the constants

2013-01-03 Thread Tom Stellard
On Wed, Dec 26, 2012 at 05:37:20PM +0100, Vincent Lejeune wrote: > From: Vadim Girlin > > Remove Cxxx registers, add new special register - "ALU_CONST" and new > operand for each alu src - "sel". ALU_CONST is used to designate that the > new operand contains the value to override src.sel, src.kc_

Re: [Mesa-dev] [PATCH 1/4] R600: Factorise VTX_WORD0 and VTX_WORD1 in tblgen def

2013-01-03 Thread Tom Stellard
On Wed, Dec 26, 2012 at 05:37:18PM +0100, Vincent Lejeune wrote: > --- > lib/Target/AMDGPU/R600Instructions.td | 110 > -- > 1 file changed, 65 insertions(+), 45 deletions(-) > Reviewed-by: Tom Stellard > diff --git a/lib/Target/AMDGPU/R600Instructions.td > b/

Re: [Mesa-dev] [PATCH 1/2] r600g: rework handling of the constants

2013-01-03 Thread Tom Stellard
On Tue, Jan 01, 2013 at 01:42:34AM +0400, Vadim Girlin wrote: > On 12/31/2012 10:39 PM, Vincent wrote: > >Le dimanche 30 décembre 2012 à 10:29 -0500, Tom Stellard a écrit : > >>On Wed, Dec 26, 2012 at 05:38:27PM +0100, Vincent Lejeune wrote: > >>> From Vadim Girlin patch > >>>--- > >>> src/gallium

[Mesa-dev] [PATCH 1/2] util: add get/put_tile_z() support for PIPE_FORMAT_Z32_FLOAT_S8X24_UINT

2013-01-03 Thread Brian Paul
Fixes https://bugs.freedesktop.org/show_bug.cgi?id=58972 Note: This is a candidate for the stable branches. --- src/gallium/auxiliary/util/u_tile.c | 36 +++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/src/gallium/auxiliary/util/u_tile.c b/sr

[Mesa-dev] [PATCH 2/2] util: fix addressing bug in pipe_put_tile_z() for PIPE_FORMAT_Z32_FLOAT

2013-01-03 Thread Brian Paul
The Z32 pixel is 4 bytes so multiply x by 4, not 2. Note: This is a candidate for the stable branches. --- src/gallium/auxiliary/util/u_tile.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/src/gallium/auxiliary/util/u_tile.c b/src/gallium/auxiliary/util/u_tile.c index

[Mesa-dev] [Bug 57044] build failure: make[4]: *** No rule to make target `../../src/mesa/program/libprogram.la', needed by `libmesagallium.la'. Stop.

2013-01-03 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57044 --- Comment #8 from Brad King --- (In reply to comment #6) > Created attachment 70736 [details] [review] > Simple patch to fix libprogram build > > Attached a patch to fix both build by introducing a new NEED_LIBPROGRAM > Automake conditional I

[Mesa-dev] thread safe llvmpipe

2013-01-03 Thread swiz...@t-online.de
Last year end of march i remember there was a discusssion about the thread safety in llvmpipe. It seems that llvmpipe was not thread safe since the underlying LLVM contexts were shared, but there was a branch mentioned that fixes this issue and that was planned to be merged to the mainlin