Re: [Mesa-dev] [PATCH] clover: Require libelf

2014-10-23 Thread Matt Turner
On Thu, Oct 23, 2014 at 6:52 PM, Emil Velikov wrote: > On 24 October 2014 02:32, Matt Turner wrote: >> On Thu, Oct 23, 2014 at 6:22 PM, Matt Turner wrote: >>> On Thu, Oct 23, 2014 at 6:19 PM, Matt Turner wrote: On Thu, Oct 23, 2014 at 5:43 PM, Emil Velikov wrote: > On 24 October

Re: [Mesa-dev] [PATCH 01/10] i965: Add functions to convert float <-> VF.

2014-10-23 Thread Matt Turner
On Thu, Oct 23, 2014 at 11:01 PM, Ville Syrjälä wrote: > On Thu, Oct 23, 2014 at 04:44:03PM -0700, Matt Turner wrote: >> --- >> src/mesa/drivers/dri/i965/Makefile.sources | 1 + >> src/mesa/drivers/dri/i965/brw_packed_float.c | 74 >> >> src/mesa/drivers/dri/i965/

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 --- Comment #39 from Iago Toral --- (In reply to Jason Ekstrand from comment #37) > (In reply to Iago Toral from comment #35) > > Jason, you wrote some fast paths in _mesa_format_convert for the cases where > > we can directly pack or unpack to t

Re: [Mesa-dev] [PATCH 01/10] i965: Add functions to convert float <-> VF.

2014-10-23 Thread Ville Syrjälä
On Thu, Oct 23, 2014 at 04:44:03PM -0700, Matt Turner wrote: > --- > src/mesa/drivers/dri/i965/Makefile.sources | 1 + > src/mesa/drivers/dri/i965/brw_packed_float.c | 74 > > src/mesa/drivers/dri/i965/brw_packed_float.h | 25 ++ > 3 files changed, 100 inse

Re: [Mesa-dev] [PATCH 01/10] i965: Add functions to convert float <-> VF.

2014-10-23 Thread Kenneth Graunke
On Thursday, October 23, 2014 04:44:03 PM Matt Turner wrote: > --- > src/mesa/drivers/dri/i965/Makefile.sources | 1 + > src/mesa/drivers/dri/i965/brw_packed_float.c | 74 > > src/mesa/drivers/dri/i965/brw_packed_float.h | 25 ++ > 3 files changed, 100 inse

[Mesa-dev] [Bug 85189] llvm/invocation.cpp: In function 'void {anonymous}::optimize(llvm::Module*, unsigned int, const std::vector&)': llvm/invocation.cpp:324:18: error: expected type

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85189 Vinson Lee changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 --- Comment #38 from Jason Ekstrand --- (In reply to Samuel Iglesias from comment #36) > (In reply to Jason Ekstrand from comment #32) > > (In reply to Iago Toral from comment #31) > > > Jason, there is an had-hoc path to deal with MESA_FORMAT_YC

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 --- Comment #37 from Jason Ekstrand --- (In reply to Iago Toral from comment #35) > Jason, you wrote some fast paths in _mesa_format_convert for the cases where > we can directly pack or unpack to the destination format. In these paths, if > we h

Re: [Mesa-dev] [PATCH 1/3] r600g: fix polygon mode for points and lines and point/line fill modes

2014-10-23 Thread Michel Dänzer
On 23.10.2014 22:46, Marek Olšák wrote: From: Marek Olšák Fixes piglit/polygon-mode-offset. Cc: 10.2 10.3 mesa-sta...@lists.freedesktop.org This series is Reviewed-by: Michel Dänzer -- Earthling Michel Dänzer| http://www.amd.com Libre software enthusiast

Re: [Mesa-dev] [PATCH] clover: Require libelf

2014-10-23 Thread Emil Velikov
On 24 October 2014 02:32, Matt Turner wrote: > On Thu, Oct 23, 2014 at 6:22 PM, Matt Turner wrote: >> On Thu, Oct 23, 2014 at 6:19 PM, Matt Turner wrote: >>> On Thu, Oct 23, 2014 at 5:43 PM, Emil Velikov >>> wrote: On 24 October 2014 01:29, Matt Turner wrote: [...] > I just noti

Re: [Mesa-dev] [PATCH] clover: Require libelf

2014-10-23 Thread Matt Turner
On Thu, Oct 23, 2014 at 6:22 PM, Matt Turner wrote: > On Thu, Oct 23, 2014 at 6:19 PM, Matt Turner wrote: >> On Thu, Oct 23, 2014 at 5:43 PM, Emil Velikov >> wrote: >>> On 24 October 2014 01:29, Matt Turner wrote: >>> [...] I just noticed this patch. Why aren't we using pkg-conf

Re: [Mesa-dev] [PATCH] clover: Require libelf

2014-10-23 Thread Matt Turner
On Thu, Oct 23, 2014 at 6:19 PM, Matt Turner wrote: > On Thu, Oct 23, 2014 at 5:43 PM, Emil Velikov > wrote: >> On 24 October 2014 01:29, Matt Turner wrote: >> [...] >>> I just noticed this patch. >>> >>> Why aren't we using pkg-config? >>> >> Because the package (neither upstream nor distros)

Re: [Mesa-dev] [PATCH] clover: Require libelf

2014-10-23 Thread Matt Turner
On Thu, Oct 23, 2014 at 5:43 PM, Emil Velikov wrote: > On 24 October 2014 01:29, Matt Turner wrote: > [...] >> I just noticed this patch. >> >> Why aren't we using pkg-config? >> > Because the package (neither upstream nor distros) provide the > relevant .pc file(s) :-( > Perhaps someone can give

Re: [Mesa-dev] [PATCH] clover: Require libelf

2014-10-23 Thread Emil Velikov
On 24 October 2014 01:29, Matt Turner wrote: [...] > I just noticed this patch. > > Why aren't we using pkg-config? > Because the package (neither upstream nor distros) provide the relevant .pc file(s) :-( Perhaps someone can give the upstream devs a ping/send them a patch ? -Emil ___

Re: [Mesa-dev] [PATCH] clover: Require libelf

2014-10-23 Thread Matt Turner
On Mon, Oct 20, 2014 at 2:44 PM, Jan Vesely wrote: > From: Jan Vesely > > CC: Tom Stellard > CC: Emil Velikov > CC: Francisco Jerez > Signed-off-by: Jan Vesely > --- > > This fixes clover build failures when building without radeon > > configure.ac | 2 ++ > 1 file changed, 2 insertions(+) >

Re: [Mesa-dev] [PATCH RFC 1/1] configure: Drop LLVM_COMPONENTS

2014-10-23 Thread Jan Vesely
unfortunately the patch won't work correctly. libtool appends linker flags at the end of command line (after linked libraries), so -Wl,--as-needed is useless, the ordering comes from libtool.m4 so until that is fixed (or somebody fixes ld to not depend on the order of arguments) it's impossible to

[Mesa-dev] [Bug 79662] [DRI3 all Bisected] Many webglc cases fail

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=79662 --- Comment #10 from Matt Turner --- Is this still a problem on Ivybridge? -- You are receiving this mail because: You are the assignee for the bug. ___ mesa-dev mailing list mesa-dev@lists.freedeskto

[Mesa-dev] [PATCH 07/10] i965/vec4: Add VEC4_OPCODE_PACK_4_BYTES.

2014-10-23 Thread Matt Turner
Will be used by emit_pack_{s,u}norm_4x8(). --- src/mesa/drivers/dri/i965/brw_defines.h | 2 ++ src/mesa/drivers/dri/i965/brw_shader.cpp | 3 ++ src/mesa/drivers/dri/i965/brw_vec4.cpp | 12 src/mesa/drivers/dri/i965/brw_vec4_generator.cpp | 35 +

[Mesa-dev] [PATCH 04/10] i965/vec4: Add vector float immediate infrastructure.

2014-10-23 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_vec4.cpp | 20 src/mesa/drivers/dri/i965/brw_vec4.h | 1 + src/mesa/drivers/dri/i965/brw_vec4_generator.cpp | 3 +++ 3 files changed, 24 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_vec4.cpp b/src/mesa/dri

[Mesa-dev] [PATCH 06/10] i965/vec4: Optimize unpackSnorm4x8().

2014-10-23 Thread Matt Turner
Reduces the number of instructions needed to implement unpackSnorm4x8() from 16 -> 6. --- src/mesa/drivers/dri/i965/brw_shader.cpp | 4 ++-- src/mesa/drivers/dri/i965/brw_vec4.h | 1 + src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 32 +- 3 files changed

[Mesa-dev] [PATCH 01/10] i965: Add functions to convert float <-> VF.

2014-10-23 Thread Matt Turner
--- src/mesa/drivers/dri/i965/Makefile.sources | 1 + src/mesa/drivers/dri/i965/brw_packed_float.c | 74 src/mesa/drivers/dri/i965/brw_packed_float.h | 25 ++ 3 files changed, 100 insertions(+) create mode 100644 src/mesa/drivers/dri/i965/brw_packed_float.c

[Mesa-dev] [PATCH 09/10] i965/vec4: Optimize packSnorm4x8().

2014-10-23 Thread Matt Turner
Reduces the number of instructions needed to implement packSnorm4x8() from 13 -> 7. --- src/mesa/drivers/dri/i965/brw_shader.cpp | 6 +++--- src/mesa/drivers/dri/i965/brw_vec4.h | 1 + src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 26 +- 3 files changed

[Mesa-dev] [PATCH 03/10] i965/fs: Add vector float immediate infrastructure.

2014-10-23 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 20 src/mesa/drivers/dri/i965/brw_fs.h | 1 + src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 3 +++ 3 files changed, 24 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri

[Mesa-dev] [PATCH 05/10] i965/vec4: Optimize unpackUnorm4x8().

2014-10-23 Thread Matt Turner
Reduces the number of instructions needed to implement unpackUnorm4x8() from 11 -> 4. --- src/mesa/drivers/dri/i965/brw_shader.cpp | 7 +-- src/mesa/drivers/dri/i965/brw_vec4.h | 1 + src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 27 +- 3 files chan

[Mesa-dev] [PATCH 10/10] i965/vec4: Handle destination writemasks in VEC4_OPCODE_PACK_BYTES.

2014-10-23 Thread Matt Turner
Since pack_bytes expands to two mov(4) align1 instructions, we can't use swizzles directly. For an instruction like pack_bytes m4.y:UD, vgrf13.xyzw:UD we can write into the .y component by settings the offset based on the swizzle. Also while we're doing this, we can set the dependency control

[Mesa-dev] [PATCH 08/10] i965/vec4: Optimize packUnorm4x8().

2014-10-23 Thread Matt Turner
Reduces the number of instructions needed to implement packUnorm4x8() from 11 -> 6. --- src/mesa/drivers/dri/i965/brw_shader.cpp | 6 +++--- src/mesa/drivers/dri/i965/brw_vec4.h | 1 + src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 24 +++- 3 files changed,

[Mesa-dev] [PATCH 02/10] i965: Disassemble vector float immediates properly.

2014-10-23 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_disasm.c | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index 53ec767..6f5290e 100644 --- a/src/mesa/drivers/dri/i965/brw_disasm.c +++ b/src/mesa/drivers/dr

[Mesa-dev] [PATCH 00/10] i965: Silly vec4 un/packing optimizations

2014-10-23 Thread Matt Turner
When I implemented these built-ins couple of years ago, I thought there must be a neat way to optimize them. I tried a couple of things with the different vector immediates i965 provides, but the V/UV types are too small to represent the appropriate shift values, and shift instructions can't shift

[Mesa-dev] [PATCH] glsl: Drop constant 0.0 components from dot products.

2014-10-23 Thread Matt Turner
Helps a small number of vertex shaders in the games Dungeon Defenders and Shank, as well as an internal benchmark. instructions in affected programs: 2801 -> 2719 (-2.93%) --- src/glsl/opt_algebraic.cpp | 25 + 1 file changed, 25 insertions(+) diff --git a/src/glsl/op

Re: [Mesa-dev] [PATCH 4/5] gallium: introduce PIPE_CAP_CLIP_HALFZ.

2014-10-23 Thread Roland Scheidegger
Am 23.10.2014 um 22:56 schrieb Mathias Fröhlich: > > Hi Michel, > > On Thursday, October 23, 2014 11:47:32 Michel Dänzer wrote: >> Does softpipe really handle it though? Have you tested that? > I have just rechecked, both softpipe and llvmpipe gallium drivers > pass the piglit test. > > I though

Re: [Mesa-dev] [PATCH RFC] mesa: add SSE optimisation for glDrawElements

2014-10-23 Thread Timothy Arceri
On Thu, 2014-10-23 at 17:08 -0400, Ilia Mirkin wrote: > On Thu, Oct 23, 2014 at 4:56 PM, Timothy Arceri wrote: > > On Thu, 2014-10-23 at 09:20 -0600, Brian Paul wrote: > >> > >> Can something similar be done for 16-bit values? > >> > > > > Yes there are _mm_max_epu16 and _mm_min_epu16 intrinsics t

Re: [Mesa-dev] [PATCH RFC] mesa: add SSE optimisation for glDrawElements

2014-10-23 Thread Matt Turner
On Thu, Oct 23, 2014 at 2:08 PM, Ilia Mirkin wrote: > On Thu, Oct 23, 2014 at 4:56 PM, Timothy Arceri wrote: >> On Thu, 2014-10-23 at 09:20 -0600, Brian Paul wrote: >>> >>> Can something similar be done for 16-bit values? >>> >> >> Yes there are _mm_max_epu16 and _mm_min_epu16 intrinsics too. > >

Re: [Mesa-dev] [PATCH RFC] mesa: add SSE optimisation for glDrawElements

2014-10-23 Thread Ilia Mirkin
On Thu, Oct 23, 2014 at 4:56 PM, Timothy Arceri wrote: > On Thu, 2014-10-23 at 09:20 -0600, Brian Paul wrote: >> >> Can something similar be done for 16-bit values? >> > > Yes there are _mm_max_epu16 and _mm_min_epu16 intrinsics too. And those only need SSE2 iirc. There are also _mm256_* intrinsi

Re: [Mesa-dev] [PATCH RFC] mesa: add SSE optimisation for glDrawElements

2014-10-23 Thread Matt Turner
On Thu, Oct 23, 2014 at 1:56 PM, Timothy Arceri wrote: > On Thu, 2014-10-23 at 09:20 -0600, Brian Paul wrote: >> >> Can something similar be done for 16-bit values? >> > > Yes there are _mm_max_epu16 and _mm_min_epu16 intrinsics too. And for 8-bit as well, which is part of SSE(1). ___

Re: [Mesa-dev] [PATCH RFC] mesa: add SSE optimisation for glDrawElements

2014-10-23 Thread Timothy Arceri
On Thu, 2014-10-23 at 09:20 -0600, Brian Paul wrote: > > Can something similar be done for 16-bit values? > Yes there are _mm_max_epu16 and _mm_min_epu16 intrinsics too. > -Brian ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists

Re: [Mesa-dev] [PATCH 4/5] gallium: introduce PIPE_CAP_CLIP_HALFZ.

2014-10-23 Thread Mathias Fröhlich
Hi Michel, On Thursday, October 23, 2014 11:47:32 Michel Dänzer wrote: > Does softpipe really handle it though? Have you tested that? I have just rechecked, both softpipe and llvmpipe gallium drivers pass the piglit test. I thought that is handled somewhere in the ...gallium/auxiliary/draw/... c

Re: [Mesa-dev] [PATCH RFC 1/1] configure: Drop LLVM_COMPONENTS

2014-10-23 Thread Kai Wasserbäch
You can have my Tested-by: Kai Wasserbäch for that, since it is essentially the same as attachment 108315 from bug 85380. Please add a reference to that bug report. And now I abuse this to send a ping for the fix for bug 70410 (there should be a patch for this on the list): can we add "--system-l

[Mesa-dev] [PATCH RFC 1/1] configure: Drop LLVM_COMPONENTS

2014-10-23 Thread Jan Vesely
Use -Wl,--as-needed instead This should fix the problem of using llvm split libraries. Since the component split may change it's safer to list everything and let linker filter out the unneeded ones. CC: Tom Stellard CC: Emil Velikov CC: k...@dev.carbon-project.org Signed-off-by: Jan Vesely ---

[Mesa-dev] [Bug 85380] FTBFS in Clover: /usr/lib/llvm-3.6/include/llvm/Config/Targets.def:26: undefined reference to `LLVMInitialize*Target'

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85380 Kai changed: What|Removed |Added CC||tstel...@gmail.com --- Comment #3 from Kai --- Ok

[Mesa-dev] [Bug 85380] FTBFS in Clover: /usr/lib/llvm-3.6/include/llvm/Config/Targets.def:26: undefined reference to `LLVMInitialize*Target'

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85380 --- Comment #2 from Kai --- Created attachment 108316 --> https://bugs.freedesktop.org/attachment.cgi?id=108316&action=edit LLVM build log (In reply to Jan Vesely from comment #1) > I assume you are using cmake build of llvm with split shared

[Mesa-dev] [PATCH] i965: Swap the order of the vertex ID and edge flag attributes

2014-10-23 Thread Neil Roberts
The edge flag data on Gen6+ is passed through the fixed function hardware as an extra attribute. According to the PRM it must be the last valid VERTEX_ELEMENT structure. However if the vertex ID is also used then another extra element is added to source the VID. This made it so the vertex ID is in

[Mesa-dev] [Bug 85380] FTBFS in Clover: /usr/lib/llvm-3.6/include/llvm/Config/Targets.def:26: undefined reference to `LLVMInitialize*Target'

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85380 --- Comment #1 from Jan Vesely --- Created attachment 108315 --> https://bugs.freedesktop.org/attachment.cgi?id=108315&action=edit llvm_link_fix.diff I assume you are using cmake build of llvm with split shared libraries. the failure was intr

Re: [Mesa-dev] [Mesa-announce] Mesa 10.3 release candidate 1

2014-10-23 Thread Matt Turner
On Sun, Aug 24, 2014 at 11:51 PM, Thierry Vignaud wrote: > On 21 August 2014 17:54, Carl Worth wrote: >> I have verified building from the .tar.bz2 file by doing the following >> on a Debian (unstable) system: >> >> tar xjf MesaLib-10.3.0-rc1.tar.bz2 >> cd Mesa-10.3.0-rc1 >> ./configure --enable-

[Mesa-dev] [Bug 85380] FTBFS in Clover: /usr/lib/llvm-3.6/include/llvm/Config/Targets.def:26: undefined reference to `LLVMInitialize*Target'

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85380 Kai changed: What|Removed |Added Attachment #108314|text/plain |application/x-xz mime type|

[Mesa-dev] [Bug 85380] New: FTBFS in Clover: /usr/lib/llvm-3.6/include/llvm/Config/Targets.def:26: undefined reference to `LLVMInitialize*Target'

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85380 Bug ID: 85380 Summary: FTBFS in Clover: /usr/lib/llvm-3.6/include/llvm/Config/Targets.def:26: undefined reference to `LLVMInitialize*Target' Product: Mesa Version

[Mesa-dev] [pull] freedreno backports for 10.3

2014-10-23 Thread Rob Clark
Emil, Here are freedreno patches from master backported to 10.3.. plus one patch outside of freedreno ('util/u_format: add _is_alpha()') If too much for tomorrows release, pulling in to 10.3 branch right after the release for the next one would be nice. According to piglit 395 fixes, 5 regressio

[Mesa-dev] [Bug 35268] initial-exec TLS model breaks dlopen'ed libGL

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35268 --- Comment #20 from Rich Felker --- Update from the musl libc side: we now have TLSDESC support for x86 and x86_64, so the situation would be much improved (with no performance regression) by using TLSDESC. Support for TLSDESC on ARM and other a

Re: [Mesa-dev] [PATCH 14/15] i965: Silence unused parameter warnings in brwIsProgramNative

2014-10-23 Thread Kenneth Graunke
On Thursday, October 23, 2014 09:35:29 AM Ian Romanick wrote: > From: Ian Romanick > > brw_program.c: In function 'brwIsProgramNative': > brw_program.c:123:39: warning: unused parameter 'ctx' [-Wunused- parameter] > brw_program.c:124:13: warning: unused parameter 'target' > [-Wunused-parameter] b

Re: [Mesa-dev] [PATCH 00/15] Lots of little clean ups

2014-10-23 Thread Matt Turner
On Thu, Oct 23, 2014 at 9:35 AM, Ian Romanick wrote: > This is just a big pile of clean up patches that I accumulated while > working on something else. These have been mostly stable for a few > days, and the other work is starting to settle. I figured I'd send out > any easy series that anyone

[Mesa-dev] [Bug 85377] New: lp_test_format failure with llvm-3.6

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85377 Bug ID: 85377 Summary: lp_test_format failure with llvm-3.6 Product: Mesa Version: unspecified Hardware: x86-64 (AMD64) OS: All Status: NEW Keywords: have

Re: [Mesa-dev] [PATCH RFC] mesa: add SSE optimisation for glDrawElements

2014-10-23 Thread Steven Newbury
On Thu, 2014-10-23 at 09:20 -0700, Matt Turner wrote: > On Thu, Oct 23, 2014 at 2:13 AM, Timothy Arceri < > t_arc...@yahoo.com.au> wrote: > > On Wed, 2014-10-22 at 22:49 -0700, Matt Turner wrote: > > > On Wed, Oct 22, 2014 at 10:30 PM, Matt Turner > > > wrote: > > > > On Wed, Oct 22, 2014 at 9:02

[Mesa-dev] [PATCH 09/15] glsl_to_tgsi: Remove st_new_shader

2014-10-23 Thread Ian Romanick
From: Ian Romanick It was identical to the default implementation in _mesa_new_shader. Signed-off-by: Ian Romanick Cc: Marek Olšák Cc: Dave Airlie --- src/mesa/state_tracker/st_cb_program.c | 1 - src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 16 src/mesa/state_tracker/s

[Mesa-dev] [PATCH 13/15] mesa: Silence unused parameter warning in _mesa_init_shader_program

2014-10-23 Thread Ian Romanick
From: Ian Romanick Just remove the parameter. Silences: ../../src/mesa/main/uniform_query.cpp:1062:1: warning: unused parameter 'ctx' [-Wunused-parameter] Signed-off-by: Ian Romanick --- src/mesa/main/uniform_query.cpp | 3 +-- src/mesa/main/uniforms.c| 8 src/mesa/main/uni

[Mesa-dev] [PATCH 01/15] ff_fragment_shader: Silence unused parameter warning in smear

2014-10-23 Thread Ian Romanick
From: Ian Romanick Just remove the parameter. Silences: ../../src/mesa/main/ff_fragment_shader.cpp:668:1: warning: unused parameter 'p' [-Wunused-parameter] Signed-off-by: Ian Romanick --- src/mesa/main/ff_fragment_shader.cpp | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-

[Mesa-dev] [PATCH 08/15] i965: Remove brw_new_shader

2014-10-23 Thread Ian Romanick
From: Ian Romanick It was identical to the default implementation in _mesa_new_shader. Signed-off-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_program.c | 1 - src/mesa/drivers/dri/i965/brw_shader.cpp | 16 src/mesa/drivers/dri/i965/brw_wm.h | 1 - 3 files chang

[Mesa-dev] [PATCH 10/15] mesa: Remove context parameter from _mesa_init_shader_program

2014-10-23 Thread Ian Romanick
From: Ian Romanick Silences: ../../src/mesa/main/shaderobj.c: In function '_mesa_init_shader_program': ../../src/mesa/main/shaderobj.c:239:46: warning: unused parameter 'ctx' [-Wunused-parameter] For now, this adds a couple other unused parameter warnings, but future patches will clean those u

[Mesa-dev] [PATCH 14/15] i965: Silence unused parameter warnings in brwIsProgramNative

2014-10-23 Thread Ian Romanick
From: Ian Romanick brw_program.c: In function 'brwIsProgramNative': brw_program.c:123:39: warning: unused parameter 'ctx' [-Wunused-parameter] brw_program.c:124:13: warning: unused parameter 'target' [-Wunused-parameter] brw_program.c:125:25: warning: unused parameter 'prog' [-Wunused-parameter]

[Mesa-dev] [PATCH 05/15] mesa: Silence unused parameter warning in _mesa_clear_shader_program_data

2014-10-23 Thread Ian Romanick
From: Ian Romanick Just remove the parameter. Signed-off-by: Ian Romanick --- src/glsl/main.cpp | 2 +- src/glsl/standalone_scaffolding.cpp | 3 +-- src/glsl/standalone_scaffolding.h | 3 +-- src/mesa/main/shaderobj.c | 5 ++--- src/mesa/main/shaderobj.h

[Mesa-dev] [PATCH 11/15] mesa: Make _mesa_init_shader_program static

2014-10-23 Thread Ian Romanick
From: Ian Romanick Since a couple commits ago, there is only one caller, and that caller is in the same file. Signed-off-by: Ian Romanick --- src/mesa/main/shaderobj.c | 6 +++--- src/mesa/main/shaderobj.h | 3 --- 2 files changed, 3 insertions(+), 6 deletions(-) diff --git a/src/mesa/main/sh

[Mesa-dev] [PATCH 06/15] i965: Remove brw_new_shader_program

2014-10-23 Thread Ian Romanick
From: Ian Romanick It was identical to the default implementation in _mesa_new_shader_program. Signed-off-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_program.c | 1 - src/mesa/drivers/dri/i965/brw_shader.cpp | 11 --- src/mesa/drivers/dri/i965/brw_wm.h | 1 - 3 files ch

[Mesa-dev] [PATCH 12/15] mesa: Remove context parameter from dd_function_table::NewShaderProgram

2014-10-23 Thread Ian Romanick
From: Ian Romanick This fixes some unused parameter warnings introduced by the previous commit. Signed-off-by: Ian Romanick --- src/mesa/main/dd.h | 3 +-- src/mesa/main/ff_fragment_shader.cpp | 2 +- src/mesa/main/shaderapi.c| 2 +- src/mesa/main/shaderobj.c

[Mesa-dev] [PATCH 03/15] mesa: Add some missing clean-up to _mesa_clear_shader_program_data

2014-10-23 Thread Ian Romanick
From: Ian Romanick All of this is already done in link_shaders. More clean-ups coming. Signed-off-by: Ian Romanick --- src/mesa/main/shaderobj.c | 15 ++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/shaderobj.c b/src/mesa/main/shaderobj.c index 693e

[Mesa-dev] [PATCH 02/15] mesa: Remove prototypes for nonexistent functions

2014-10-23 Thread Ian Romanick
From: Ian Romanick _mesa_UseShaderProgramEXT, _mesa_ActiveProgramEXT, and _mesa_CreateShaderProgramEXT were all removed when support for GL_EXT_separate_shader_objects was removed. Signed-off-by: Ian Romanick --- src/mesa/main/shaderapi.h | 9 - 1 file changed, 9 deletions(-) diff --g

[Mesa-dev] [PATCH 15/15] i965: Silence unused parameter warning in brw_dump_ir

2014-10-23 Thread Ian Romanick
From: Ian Romanick Just remove the parameter. Silences: brw_program.c: In function 'brw_dump_ir': brw_program.c:566:33: warning: unused parameter 'brw' [-Wunused-parameter] Signed-off-by: Ian Romanick --- src/mesa/drivers/dri/i965/brw_fs.cpp | 2 +- src/mesa/drivers/dri/i965/brw

[Mesa-dev] [PATCH 07/15] glsl_to_tgsi: Remove st_new_shader_program

2014-10-23 Thread Ian Romanick
From: Ian Romanick It was identical to the default implementation in _mesa_new_shader_program. Signed-off-by: Ian Romanick Cc: Marek Olšák Cc: Dave Airlie --- src/mesa/state_tracker/st_cb_program.c | 1 - src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 12 src/mesa/state_track

[Mesa-dev] [PATCH 00/15] Lots of little clean ups

2014-10-23 Thread Ian Romanick
This is just a big pile of clean up patches that I accumulated while working on something else. These have been mostly stable for a few days, and the other work is starting to settle. I figured I'd send out any easy series that anyone can review before sending out the "real" work. __

[Mesa-dev] [PATCH] egl_dri2: do not leak dri2_dpy->driver_configs

2014-10-23 Thread Emil Velikov
Walk through the list and free each config, and finally free the list itself. Freeing approx 20KiB of memory, according to valgrind. Inspired by a similar patch by enpeng xu. Signed-off-by: Emil Velikov --- Hi enpeng xu, This is a small improvement of your patch that fully cleans-up the driver

Re: [Mesa-dev] [PATCH RFC] mesa: add SSE optimisation for glDrawElements

2014-10-23 Thread Matt Turner
On Thu, Oct 23, 2014 at 2:13 AM, Timothy Arceri wrote: > On Wed, 2014-10-22 at 22:49 -0700, Matt Turner wrote: >> On Wed, Oct 22, 2014 at 10:30 PM, Matt Turner wrote: >> > On Wed, Oct 22, 2014 at 9:02 PM, Timothy Arceri >> > wrote: >> >> I almost wasn't going to bother sending this out since it

[Mesa-dev] [Bug 65534] Piglit glx_glx-multithread-shader-compile randomly aborts or core dumps

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=65534 Eero Tamminen changed: What|Removed |Added CC||eero.t.tammi...@intel.com --- Comment #4

Re: [Mesa-dev] [PATCH 1/1] glapi: Fix compiler warning and script name

2014-10-23 Thread Jan Vesely
On Thu, 2014-10-23 at 16:04 +0100, Emil Velikov wrote: > On 25/09/14 23:45, Jan Vesely wrote: > > On Wed, 2014-08-13 at 16:47 -0400, Jan Vesely wrote: > >> Signed-off-by: Jan Vesely > >> --- > >> src/mapi/glapi/gen/gl_gentable.py | 4 ++-- > >> 1 file changed, 2 insertions(+), 2 deletions(-) > >>

Re: [Mesa-dev] [PATCH 1/1] glapi: Fix compiler warning and script name

2014-10-23 Thread Emil Velikov
On 25/09/14 23:45, Jan Vesely wrote: > On Wed, 2014-08-13 at 16:47 -0400, Jan Vesely wrote: >> Signed-off-by: Jan Vesely >> --- >> src/mapi/glapi/gen/gl_gentable.py | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/src/mapi/glapi/gen/gl_gentable.py >> b/src/mapi/gla

Re: [Mesa-dev] [PATCH] radeon: enable Hyper-Z on r600g and radeonsi by default

2014-10-23 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, Oct 23, 2014 at 4:06 PM, Andreas Boll wrote: > This reverts commit 01e637114914453451becc0dc8afe60faff48d84. > Since there many Hyper-Z issues have been fixed or worked around. > > Enable Hyper-Z by default so that we get enough feedback for the upcoming >

Re: [Mesa-dev] [PATCH 00/14] [v2] Famous Gallium Nine

2014-10-23 Thread Kai Wasserbäch
Axel Davy wrote on 22.10.2014 07:41: > On 21/10/2014 18:30, Kai Wasserbäch wrote : >> Hello, >> according to DRI3 is mandatory. But AFAICT you >> only >> enforce "has Gallium3D drivers" in the configure checks introduced in >>

Re: [Mesa-dev] [PATCH 0/7] vs12 cleanup patches

2014-10-23 Thread Emil Velikov
Hi Alon, On 22/07/14 22:06, Alon Levy wrote: > Hi, > > These patches include some actual fixes for building target libgl-gdi with > scons, and some warning removal (there are a ton left I didn't pursue - > mostly > truncation warnings and sign warnings). > > Not related to the patchset, but

Re: [Mesa-dev] [PATCH 2/3] gallium/nouveau: use std::isfinite in c++ sources

2014-10-23 Thread Emil Velikov
On 20/10/14 20:56, Jose Fonseca wrote: > Note that doing > > #include > > is a bad idea too, as it can cause precisely the same error you're trying to > fix. This is because on certain implementations of C++ STL, if some other > header has '#include , then '#include ' later on, the later >

[Mesa-dev] [Bug 85030] [GALLIVM] Lib32-mesa build with LLVM 3.6 git (API change)

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=85030 Aaron B changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [PATCH] radeon: enable Hyper-Z on r600g and radeonsi by default

2014-10-23 Thread Andreas Boll
This reverts commit 01e637114914453451becc0dc8afe60faff48d84. Since there many Hyper-Z issues have been fixed or worked around. Enable Hyper-Z by default so that we get enough feedback for the upcoming mesa 10.4 release. If you have issues with Hyper-Z try to disable Hyper-Z using the enviroment

[Mesa-dev] [PATCH 1/3] r600g: fix polygon mode for points and lines and point/line fill modes

2014-10-23 Thread Marek Olšák
From: Marek Olšák Fixes piglit/polygon-mode-offset. Cc: 10.2 10.3 mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/r600/evergreen_state.c | 6 +++--- src/gallium/drivers/r600/r600_state.c | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gallium/driver

[Mesa-dev] [PATCH 3/3] radeonsi: fix incorrect index buffer max size for lowered 8-bit indices

2014-10-23 Thread Marek Olšák
From: Marek Olšák Cc: 10.2 10.3 mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/radeonsi/si_state_draw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_state_draw.c b/src/gallium/drivers/radeonsi/si_state_draw.c index 4f81dac..708e4

[Mesa-dev] [PATCH 2/3] radeonsi: fix polygon mode for points and lines and point/line fill modes

2014-10-23 Thread Marek Olšák
From: Marek Olšák Fixes piglit/polygon-mode-offset. Cc: 10.2 10.3 mesa-sta...@lists.freedesktop.org --- src/gallium/drivers/radeonsi/si_state.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.c b/src/gallium/drivers/radeonsi/si_st

[Mesa-dev] [Bug 63476] nothing find

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=63476 Andreas Boll changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH 2/2] clover: Fix bug when binary programs are passed to clBuildProgram()

2014-10-23 Thread Francisco Jerez
Tom Stellard writes: > This was a regression introduced by > 611d66fe4513e53bde052dd2bab95d448c909a2a > > Passing a binary program to clBuildProgram() is legal, but passing one > to clCompileProgram() is not. > --- > src/gallium/state_trackers/clover/api/program.cpp | 21 - >

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 --- Comment #36 from Samuel Iglesias --- (In reply to Jason Ekstrand from comment #32) > (In reply to Iago Toral from comment #31) > > Jason, there is an had-hoc path to deal with MESA_FORMAT_YCBCR* in > > texstore.c. Seems that this path only al

Re: [Mesa-dev] [PATCH RFC] mesa: add SSE optimisation for glDrawElements

2014-10-23 Thread Timothy Arceri
On Wed, 2014-10-22 at 22:49 -0700, Matt Turner wrote: > On Wed, Oct 22, 2014 at 10:30 PM, Matt Turner wrote: > > On Wed, Oct 22, 2014 at 9:02 PM, Timothy Arceri > > wrote: > >> I almost wasn't going to bother sending this out since it uses SSE4.1 > >> and its recommended to use glDrawRangeElemen

[Mesa-dev] [Bug 84566] Unify the format conversion code

2014-10-23 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=84566 --- Comment #35 from Iago Toral --- Jason, you wrote some fast paths in _mesa_format_convert for the cases where we can directly pack or unpack to the destination format. In these paths, if we have to pack from or unpack to RGBA UINT, you hav