[Mesa-dev] [Bug 58446] New: src/glsl/glcpp/imports.h:161: undefined reference to `sqrtf'

2012-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=58446 Priority: medium Bug ID: 58446 Keywords: regression CC: emil.l.veli...@gmail.com Assignee: mesa-dev@lists.freedesktop.org Summary: src/glsl/glcpp/imports.h:161: undefined referen

[Mesa-dev] [Bug 54626] [PATCH] llvmpipe's Makefile: CXXFLAGS, CPPFLAGS and LDFLAGS are not properly propagated

2012-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54626 Alexandre Demers changed: What|Removed |Added Summary|llvmpipe's Makefile:|[PATCH] llvmpipe's

[Mesa-dev] [Bug 54626] llvmpipe's Makefile: CXXFLAGS, CPPFLAGS and LDFLAGS are not properly propagated

2012-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=54626 --- Comment #2 from Alexandre Demers --- Created attachment 71708 --> https://bugs.freedesktop.org/attachment.cgi?id=71708&action=edit Add missing CXXFLAGS Fixes cross compiling 32 bit on 64 bit for llvm driver. -- You are receiving this mai

[Mesa-dev] [PATCH 6/6] mesa: Fix framebuffer blitting to GL_COLOR_ATTACHMENTi when i!=0

2012-12-17 Thread Anuj Phogat
This patch fixes a case when blitting to a framebuffer with renderbuffers/textures attached to GL_COLOR_ATTACHMENT{1, 2, ...}. Earlier we were incorrectly blitting to GL_COLOR_ATTACHMENT0 by default. It also fixes a blitting case when drawAttachment->Texture == readAttachment->Texture. This was ca

[Mesa-dev] [PATCH 3/6] meta: Add functionality to do _mesa_meta_BlitFrameBuffer() using glsl

2012-12-17 Thread Anuj Phogat
This patch rewrites _mesa_meta_BlitFrameBuffer() function to add support for blitting with GLSL/GLSL ES shaders. These changes were required to support glBlitFrameBuffer() in gles3. This patch, along with other patches in this series, make 16 failing framebuffer_blit test cases in gles3 conformance

[Mesa-dev] [PATCH] radeon/llvm: add a llvm.R600.store.swizzle intrinsics

2012-12-17 Thread Vincent Lejeune
This intrinsic is translated to ALLOC_EXPORT_WORD1_SWIZ, hence its name. It is used to store vs/fs outputs --- lib/Target/AMDGPU/R600ISelLowering.cpp | 23 +-- lib/Target/AMDGPU/R600Instructions.td | 11 +++ lib/Target/AMDGPU/R600Intrinsics.td| 2 ++ 3 files chang

[Mesa-dev] [PATCH] r600g: tgsi to llvm emits store.swizzle intrinsic for vs/fs output

2012-12-17 Thread Vincent Lejeune
--- src/gallium/drivers/r600/r600_llvm.c | 197 ++- src/gallium/drivers/r600/r600_shader.c | 6 +- src/gallium/drivers/radeon/radeon_llvm.h | 1 + 3 files changed, 147 insertions(+), 57 deletions(-) diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gal

Re: [Mesa-dev] [PATCH 1/2] radeon/llvm: support for multiple const buffer

2012-12-17 Thread Vadim Girlin
AFAICS, your KC registers still represent the constant indices, same as Cxxx registers previously. The problem with such representation is that hw supports 16 buffers * 4096 constants per buffer = 65536 constants. So we'll need 65536 registers for full support, and it looks like a bit too much of r

Re: [Mesa-dev] [PATCH 2/4] Update comment to specify actual text being referenced from the specification.

2012-12-17 Thread Ian Romanick
On 12/17/2012 02:24 PM, Carl Worth wrote: Patches 2 and 3 are Reviewed-by: Ian Romanick There doesn't appear to be an order dependency with the other patches in the series. Perhaps these should go in first? The reference to "correct, see spec" was a bit too vague to be useful, (particular

Re: [Mesa-dev] [PATCH 4/4] i965: Force even an empty query to flush all previous queries.

2012-12-17 Thread Ian Romanick
On 12/17/2012 02:24 PM, Carl Worth wrote: The specification requires that query results are processed in order, (when one query result is returned, all previous query of the same type must also be available). The implementation was failing this requirement in the case of BeginQuery and EndQuery w

Re: [Mesa-dev] [PATCH 1/4] meta: Pause/resume an active occlusion query over any meta operation

2012-12-17 Thread Ian Romanick
On 12/17/2012 02:24 PM, Carl Worth wrote: This avoids the occlusion query erroneously accumulating results during the meta operation. This fixes the following es3conform tests: occlusion_query_draw_occluded.test occlusion_query_clear occlusion_query_custom_framebuffer

Re: [Mesa-dev] [PATCH 2/3] radeon/llvm: fix radeon_llvm_emit_prepare_cube_coords

2012-12-17 Thread Vadim Girlin
On Mon, 2012-12-17 at 15:47 +0100, Michel Dänzer wrote: > On Sam, 2012-12-15 at 23:29 +0400, Vadim Girlin wrote: > > --- > > This patch could use more description (or maybe comments): > > What was broken before, e.g. what piglit tests or other apps failed? > > How does the patch fix this? The

Re: [Mesa-dev] [PATCH 1/2] R600: Optimize and cleanup KILL on SI

2012-12-17 Thread Tom Stellard
On Mon, Dec 17, 2012 at 03:32:23PM +0100, Christian König wrote: > We shouldn't insert KILL optimization if we don't have a > kill instruction at all. > For both patches: Reviewed-by: Tom Stellard > Signed-off-by: Christian König > --- > lib/Target/AMDGPU/SIISelLowering.cpp | 14 >

[Mesa-dev] [PATCH 4/4] i965: Force even an empty query to flush all previous queries.

2012-12-17 Thread Carl Worth
The specification requires that query results are processed in order, (when one query result is returned, all previous query of the same type must also be available). The implementation was failing this requirement in the case of BeginQuery and EndQuery with no intervening drawing, (the result woul

[Mesa-dev] [PATCH 3/4] queryobj: Add IsQuery flag, making ISQuery() return false before BeginQuery()

2012-12-17 Thread Carl Worth
This flag allows for the specified behavior that GenQueries reserves a name, but does not associate an object with it until BeginQuery. We allocate the object immediately with the new IsQuery flag set to false, and then set the flag to true at the time of BeginQuery. This allows us to implement a

[Mesa-dev] [PATCH 2/4] Update comment to specify actual text being referenced from the specification.

2012-12-17 Thread Carl Worth
The reference to "correct, see spec" was a bit too vague to be useful, (particularly since the language being referenced here changes between OpenGL 3.1 and OpenGL 4.3). --- src/mesa/main/queryobj.c |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/queryobj

[Mesa-dev] [PATCH 1/4] meta: Pause/resume an active occlusion query over any meta operation

2012-12-17 Thread Carl Worth
This avoids the occlusion query erroneously accumulating results during the meta operation. This fixes the following es3conform tests: occlusion_query_draw_occluded.test occlusion_query_clear occlusion_query_custom_framebuffer occlusion_query_stencil_test o

Re: [Mesa-dev] [PATCH 1/2] r600g: rework flusing and synchronization pattern v6

2012-12-17 Thread Marek Olšák
On Mon, Dec 17, 2012 at 8:28 PM, wrote: > From: Jerome Glisse > > This bring r600g allmost inline with closed source driver when > it comes to flushing and synchronization pattern. > > v2-v4: history lost somewhere in outer space > v5: Fix compute size of flushing, use define for flags, update >

Re: [Mesa-dev] [PATCH] gallivm: fix conversion for pure integer formats

2012-12-17 Thread Jose Fonseca
Nice find Roland. Reviewed-by: Jose Fonseca Jose - Original Message - > From: Roland Scheidegger > > Since the idea is to just expand or shrink the bit width but not > otherwise do > conversion we also need to adjust the sign bit according to src, > otherwise > the conversion code wil

[Mesa-dev] [PATCH] gallivm: fix conversion for pure integer formats

2012-12-17 Thread sroland
From: Roland Scheidegger Since the idea is to just expand or shrink the bit width but not otherwise do conversion we also need to adjust the sign bit according to src, otherwise the conversion code will incorrectly clamp the values. (Since this only works for casting to ordinary floats the norm a

[Mesa-dev] [PATCH 2/2] r600g: add htile support v16

2012-12-17 Thread j . glisse
From: Jerome Glisse htile is used for HiZ and HiS support and fast Z/S clears. This commit just adds the htile setup and Fast Z clear. We don't take full advantage of HiS with that patch. v2 really use fast clear, still random issue with some tiles need to try more flush combination, fix dept

Re: [Mesa-dev] [PATCH 1/2] r600g: rework flusing and synchronization pattern v6

2012-12-17 Thread Alex Deucher
On Mon, Dec 17, 2012 at 2:28 PM, wrote: > From: Jerome Glisse > > This bring r600g allmost inline with closed source driver when > it comes to flushing and synchronization pattern. > > v2-v4: history lost somewhere in outer space > v5: Fix compute size of flushing, use define for flags, update >

[Mesa-dev] [PATCH 2/2] r600g: add htile support v15

2012-12-17 Thread j . glisse
From: Jerome Glisse htile is used for HiZ and HiS support and fast Z/S clears. This commit just adds the htile setup and Fast Z clear. We don't take full advantage of HiS with that patch. v2 really use fast clear, still random issue with some tiles need to try more flush combination, fix dept

[Mesa-dev] [PATCH 1/2] r600g: rework flusing and synchronization pattern v6

2012-12-17 Thread j . glisse
From: Jerome Glisse This bring r600g allmost inline with closed source driver when it comes to flushing and synchronization pattern. v2-v4: history lost somewhere in outer space v5: Fix compute size of flushing, use define for flags, update worst case cs size requirement for flush, treat rs7

[Mesa-dev] hyperz

2012-12-17 Thread j . glisse
So those were tested on everegreen (caicos, redwood, turks, barts) and on rv740 and did not regress anything. I can't test other r6xx/r7xx as currently mesa master trigger lockup on anything else than rv740. I am gonna merge those by the end of this week. Cheers, Jerome _

Re: [Mesa-dev] [PATCH] i965: Fix gl_VertexID when there are no other vertex inputs.

2012-12-17 Thread Kenneth Graunke
On 12/17/2012 10:03 AM, Paul Berry wrote: brw_emit_vertices contains special case logic to handle the case where a vertex shader doesn't read any inputs. This special case logic was incorrectly activating in the case were the only vertex input is gl_VertexID. As a result, if a shader used gl_Ve

[Mesa-dev] [PATCH] i965: Fix gl_VertexID when there are no other vertex inputs.

2012-12-17 Thread Paul Berry
brw_emit_vertices contains special case logic to handle the case where a vertex shader doesn't read any inputs. This special case logic was incorrectly activating in the case were the only vertex input is gl_VertexID. As a result, if a shader used gl_VertexID but used no other inputs, then all ve

[Mesa-dev] [PATCH 2/2] r600g: tgsi to llvm emits vertex export

2012-12-17 Thread Vincent Lejeune
--- src/gallium/drivers/r600/r600_llvm.c | 126 --- src/gallium/drivers/r600/r600_shader.c | 11 ++- src/gallium/drivers/radeon/radeon_llvm.h | 1 + 3 files changed, 127 insertions(+), 11 deletions(-) diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/ga

[Mesa-dev] [PATCH 1/2] r600g: tgsi to llvm emits kcache bank

2012-12-17 Thread Vincent Lejeune
--- src/gallium/drivers/r600/r600_llvm.c | 6 -- src/gallium/drivers/r600/r600_shader.c | 4 +++- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c index 79f6cf0..5efde2d 100644 --- a/src/gallium/driver

[Mesa-dev] [PATCH 2/2] radeon/llvm: add store.vertex.{position, param} intrinsics

2012-12-17 Thread Vincent Lejeune
--- lib/Target/AMDGPU/R600ISelLowering.cpp| 51 +++ lib/Target/AMDGPU/R600Instructions.td | 5 +++ lib/Target/AMDGPU/R600Intrinsics.td | 4 +++ lib/Target/AMDGPU/R600MachineFunctionInfo.cpp | 1 + lib/Target/AMDGPU/R600MachineFunctionInfo.h |

[Mesa-dev] [PATCH 1/2] radeon/llvm: support for multiple const buffer

2012-12-17 Thread Vincent Lejeune
--- lib/Target/AMDGPU/AMDGPUIntrinsics.td | 2 +- .../AMDGPU/MCTargetDesc/R600MCCodeEmitter.cpp | 26 +++- lib/Target/AMDGPU/R600ISelLowering.cpp | 57 +++- lib/Target/AMDGPU/R600Instructions.td | 4 +- lib/Target/AMDGPU/R600RegisterInfo.td

Re: [Mesa-dev] [PATCH 1/2] R600: Optimize and cleanup KILL on SI

2012-12-17 Thread Michel Dänzer
On Mon, 2012-12-17 at 15:32 +0100, Christian König wrote: > We shouldn't insert KILL optimization if we don't have a > kill instruction at all. > > Signed-off-by: Christian König Both patches are Tested-by: Michel Dänzer -- Earthling Michel Dänzer | http://www.a

Re: [Mesa-dev] [PATCH 3/6] meta: Add functionality to do _mesa_meta_BlitFrameBuffer() using glsl

2012-12-17 Thread Anuj Phogat
On Wed, Dec 12, 2012 at 3:25 PM, Anuj Phogat wrote: > This is required by glBlitFrameBuffer() in gles3. This patch, along with > other patches in this series, make failing framebuffer_blit test cases in > gles3 conformancen pass. > I noticed few bugs in my glsl implementation of glBlitFrameBuffer(

Re: [Mesa-dev] [PATCH] mesa osmesa/x11: fix build error introduced in 4bea4cb9

2012-12-17 Thread Brian Paul
On 12/16/2012 06:05 PM, Jordan Justen wrote: Fixes https://bugs.freedesktop.org/show_bug.cgi?id=58380 Signed-off-by: Jordan Justen Cc: Vinson Lee --- src/mesa/drivers/osmesa/osmesa.c | 10 +- src/mesa/drivers/x11/xm_api.c|6 +++--- 2 files changed, 8 insertions(+), 8 deleti

Re: [Mesa-dev] [PATCH 1/2] r600g: tgsi to llvm emits stream output intrinsics.

2012-12-17 Thread Tom Stellard
For both patches: Reviewed-by: Tom Stellard On Sun, Dec 16, 2012 at 09:05:49PM +0100, Vincent Lejeune wrote: > --- > src/gallium/drivers/r600/eg_asm.c| 2 ++ > src/gallium/drivers/r600/r600_asm.c | 2 ++ > src/gallium/drivers/r600/r600_llvm.c | 20 > src/

Re: [Mesa-dev] [PATCH] radeon/llvm: fix literals inlining

2012-12-17 Thread Tom Stellard
On Sat, Dec 15, 2012 at 05:53:26PM +0400, Vadim Girlin wrote: > Use bitwise comparison to check whether we can replace float literal > with inline constant (0.0, 0.5, 1.0), otherwise we can get unexpected > results for integer literals bitcasted to float. > > Fixes lockup with glsl-fs-unroll-out-p

Re: [Mesa-dev] [PATCH 2/3] radeon/llvm: fix radeon_llvm_emit_prepare_cube_coords

2012-12-17 Thread Michel Dänzer
On Sam, 2012-12-15 at 23:29 +0400, Vadim Girlin wrote: > --- This patch could use more description (or maybe comments): What was broken before, e.g. what piglit tests or other apps failed? How does the patch fix this? ... -- Earthling Michel Dänzer | http://www.a

Re: [Mesa-dev] [PATCH 1/2] radeon/llvm: add SHADOWCUBE to TEX_SHADOW pattern

2012-12-17 Thread Michel Dänzer
On Sam, 2012-12-15 at 23:27 +0400, Vadim Girlin wrote: > --- > lib/Target/AMDGPU/R600Instructions.td | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/Target/AMDGPU/R600Instructions.td > b/lib/Target/AMDGPU/R600Instructions.td > index 5900794..6364645 100644 > --- a/l

[Mesa-dev] [PATCH 2/2] R600: Proper insert S_WAITCNT instructions

2012-12-17 Thread Christian König
Some instructions like memory reads/writes are executed asynchronously, so we need to insert S_WAITCNT instructions to block before accessing their results. Previously we have just inserted S_WAITCNT instructions after each async instruction, this patch fixes this and adds a prober insertion pass.

[Mesa-dev] [PATCH 1/2] R600: Optimize and cleanup KILL on SI

2012-12-17 Thread Christian König
We shouldn't insert KILL optimization if we don't have a kill instruction at all. Signed-off-by: Christian König --- lib/Target/AMDGPU/SIISelLowering.cpp | 14 lib/Target/AMDGPU/SIISelLowering.h |2 - lib/Target/AMDGPU/SIInstructions.td | 24 +++--- lib/Target/AMDGPU/

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

2012-12-17 Thread Abdiel Janulgue
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 bit more conformant to the > >

[Mesa-dev] [Bug 57173] sigsegv in Planeshift

2012-12-17 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=57173 --- Comment #5 from Andreas Boll --- Please attach your Xorg.log and the outputs from dmesg and glxinfo. -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing