Re: [Mesa-dev] [PATCH v2 5/9] mesa: Handle QUERY_RESULT_NO_WAIT in GetQueryObject{ui64}v

2014-03-28 Thread Kenneth Graunke
On 03/27/2014 01:59 PM, Rafal Mielniczuk wrote: Just return and do nothing if query result is not yet available Signed-off-by: Rafal Mielniczuk rafal.mielnicz...@gmail.com --- src/mesa/main/queryobj.c | 16 1 file changed, 16 insertions(+) diff --git

Re: [Mesa-dev] [PATCH 13/19] linker: Modify cross_validate_outputs_to_inputs to match using explicit locations

2014-03-28 Thread Chia-I Wu
On Fri, Mar 28, 2014 at 5:40 AM, Ian Romanick i...@freedesktop.org wrote: From: Ian Romanick ian.d.roman...@intel.com This will be used for GL_ARB_separate_shader_objects. That extension not only allows separable shaders to rendezvous by location, but it also allows traditionally linked

[Mesa-dev] [WIP 01/13] glapi: add GL_ARB_explicit_uniform_location

2014-03-28 Thread Tapani Pälli
Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/mapi/glapi/gen/gl_API.xml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 9129d57..255c8a0 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++

[Mesa-dev] [WIP 08/13] glsl/linker: GL_ARB_explicit_uniform_location support

2014-03-28 Thread Tapani Pälli
Patch refactors the existing uniform processing so explicit locations are taken in to account during variable processing. These locations are temporarily stored in gl_uniform_storage before actual locations are set. The 'remap_location' variable in gl_uniform_storage is changed to be signed so

[Mesa-dev] [WIP 10/13] glsl: add enable bit for ARB_explicit_uniform_location

2014-03-28 Thread Tapani Pälli
Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/glsl/glsl_parser_extras.cpp | 1 + src/glsl/glsl_parser_extras.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 4e35bc0..eca3dab 100644 ---

[Mesa-dev] [WIP 02/13] mesa: add enable bit for ARB_explicit_uniform_location

2014-03-28 Thread Tapani Pälli
Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/mesa/main/extensions.c | 1 + src/mesa/main/mtypes.h | 1 + 2 files changed, 2 insertions(+) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index a72284c..8605189 100644 --- a/src/mesa/main/extensions.c +++

[Mesa-dev] [WIP 09/13] mesa: support inactive uniforms in glUniform* functions

2014-03-28 Thread Tapani Pälli
Support inactive uniforms that have explicit location set in glUniform* functions. Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/mesa/main/uniform_query.cpp | 16 1 file changed, 16 insertions(+) diff --git a/src/mesa/main/uniform_query.cpp

[Mesa-dev] [WIP 11/13] glsl: parser changes for GL_ARB_explicit_uniform_location

2014-03-28 Thread Tapani Pälli
Patch adds a preprocessor define for the extension and stores explicit location data for uniforms during AST-HIR conversion. It also sets layout token to be available when having the extension in place. Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/glsl/ast_to_hir.cpp | 13

[Mesa-dev] [WIP 00/13] GL_ARB_explicit_uniform_location extension

2014-03-28 Thread Tapani Pälli
Hi; Patches implement the extension, no Piglit regressions and all the tests for the extension pass (I've planned some more tests which are not yet in though). Changes shortly: - opt_dead_code optimization is modifed to build a list of removed uniform locations (that had explicit

[Mesa-dev] [WIP 13/13] docs: update ARB_explicit_uniform_location status

2014-03-28 Thread Tapani Pälli
Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- docs/GL3.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/GL3.txt b/docs/GL3.txt index b7e4c87..d1ff084 100644 --- a/docs/GL3.txt +++ b/docs/GL3.txt @@ -148,7 +148,7 @@ GL 4.3: GL_ARB_compute_shader

[Mesa-dev] [WIP 07/13] glsl/linker: change link_assign_uniform_locations signature

2014-03-28 Thread Tapani Pälli
Patch changes link_assign_uniform_locations to return bool to indicate success and adds context as a parameter so that function can access constant variables in the context. Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/glsl/link_uniforms.cpp | 9 + src/glsl/linker.cpp

[Mesa-dev] [WIP 12/13] intel: Enable GL_ARB_explicit_uniform_location

2014-03-28 Thread Tapani Pälli
Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/mesa/drivers/dri/i965/intel_extensions.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index 15fcd30..f8abf98 100644 ---

[Mesa-dev] [WIP 04/13] mesa: add a storage for inactive/removed uniform variables

2014-03-28 Thread Tapani Pälli
GL_ARB_explicit_uniform_location extension requires driver to reserve locations for all uniforms (including inactive ones) when they have explicit location set. Patch adds additional storage structure and a list of locations reserved by inactive uniforms as part of the shader program structure.

[Mesa-dev] [WIP 05/13] glsl: change do_common_optimization signature

2014-03-28 Thread Tapani Pälli
Patch adds gl_shader_program struct as a mandatory parameter for calls that supply linked IR. This is to assure that optimization passes can construct common data to be used in a gl_shader_program across shader stages. This will be utilized by explicit uniform locations to save data on unactive

[Mesa-dev] [WIP 06/13] glsl: change do_dead_code signature, store uniform locations

2014-03-28 Thread Tapani Pälli
Patch adds gl_shader_program structure as additional parameter to do_dead_code optimization pass. This pass is modified to check if any removed uniform has explicit location set and in this case add this location to a list of reserved locations in the program structure. This information will be

[Mesa-dev] [WIP 03/13] mesa: add new enum MAX_UNIFORM_LOCATIONS and default value

2014-03-28 Thread Tapani Pälli
Patch adds new implementation dependent value required by the GL_ARB_explicit_uniform_location extension. Default value for 'user assignable locations' is set as 16384. Signed-off-by: Tapani Pälli tapani.pa...@intel.com --- src/mesa/main/context.c | 3 +++ src/mesa/main/get.c

Re: [Mesa-dev] [PATCH v2 0/9] Add ARB_query_buffer_object (swrast)

2014-03-28 Thread Kenneth Graunke
On 03/27/2014 01:59 PM, Rafal Mielniczuk wrote: Hello, This is the second version of the series implementing ARB_query_buffer_object in mesa. Main changes to the first version are: - Enable extension only for software driver - Fix possible segfault in patch #7 - Fix typos and

Re: [Mesa-dev] [PATCH v2 5/9] mesa: Handle QUERY_RESULT_NO_WAIT in GetQueryObject{ui64}v

2014-03-28 Thread Kenneth Graunke
On 03/27/2014 11:34 PM, Kenneth Graunke wrote: On 03/27/2014 01:59 PM, Rafal Mielniczuk wrote: Just return and do nothing if query result is not yet available Signed-off-by: Rafal Mielniczuk rafal.mielnicz...@gmail.com --- src/mesa/main/queryobj.c | 16 1 file changed, 16

[Mesa-dev] [PATCH] i965: Make sure we always compute valid index bounds before drawing.

2014-03-28 Thread Iago Toral Quiroga
When doing software rendering (i.e. rendering to the selection buffer) we need to make sure that we have valid index bounds before calling _tnl_draw_prims(), otherwise we can crash. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=59455 --- src/mesa/drivers/dri/i965/brw_draw.c | 3 ++- 1

[Mesa-dev] Mesa branchpoint tags?

2014-03-28 Thread Eric Anholt
I was looking at a bug report about old software, and wanted to see what development branch a quoted commit was on: anholt@eliezer:anholt/src/mesa-release% git describe 97217a40f97cdeae0304798b607f704deb0c3558 snb-magic-15797-g97217a4 That's... not terribly useful. It would be nice

Re: [Mesa-dev] [PATCH 07/10] i965/fs: Handle arrays of special regs more cleanly.

2014-03-28 Thread Eric Anholt
Kenneth Graunke kenn...@whitecape.org writes: On 03/26/2014 02:23 PM, Eric Anholt wrote: I need to extend the size of the outputs[] array, and this was going to get ridiculous. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 36 ++-- 1 file changed, 22

Re: [Mesa-dev] Questions regarding KHR_debug for OpenGL ES

2014-03-28 Thread Timothy Arceri
On Wed, 2014-03-26 at 16:27 -0700, Felipe Tonello wrote: Hi Timothy, On Sun, Mar 23, 2014 at 2:11 PM, Timothy Arceri t_arc...@yahoo.com.au wrote: On Mon, 2014-03-17 at 11:42 -0700, Felipe Tonello wrote: Hi all, I'm working on the KHR_debug for OpenGL ES junior job. I recently

Re: [Mesa-dev] Questions regarding KHR_debug for OpenGL ES

2014-03-28 Thread Timothy Arceri
On Fri, 2014-03-28 at 19:22 +1100, Timothy Arceri wrote: On Wed, 2014-03-26 at 16:27 -0700, Felipe Tonello wrote: Hi Timothy, On Sun, Mar 23, 2014 at 2:11 PM, Timothy Arceri t_arc...@yahoo.com.au wrote: On Mon, 2014-03-17 at 11:42 -0700, Felipe Tonello wrote: Hi all, I'm

Re: [Mesa-dev] [PATCH 24/24] automake: ask the linker to do garbage collection

2014-03-28 Thread Lauri Kasanen
On Thu, 27 Mar 2014 21:00:39 + Emil Velikov emil.l.veli...@gmail.com wrote: By doing GC the linker removes all the symbols that are not referenced and/or used by the final library. This results in a saving of ~100K up-to ~600K per (stripped) binary (classic vs gallium drivers). If

Re: [Mesa-dev] [PATCH 24/24] automake: ask the linker to do garbagecollection

2014-03-28 Thread Marc Dietrich
Am Freitag, 28. März 2014, 10:35:00 schrieb Lauri Kasanen: On Thu, 27 Mar 2014 21:00:39 + Emil Velikov emil.l.veli...@gmail.com wrote: By doing GC the linker removes all the symbols that are not referenced and/or used by the final library. This results in a saving of ~100K up-to

[Mesa-dev] [Bug 76252] Dynamic loading/unloading of opengl32.dll results in a deadlock

2014-03-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76252 --- Comment #7 from cgerlac...@gmail.com --- José, thanks for the feedback. Our first try was to call the dll llvmpipe.dll and we ran exactly in the issues you mentioned regarding GDI. Therefore we don't see this as an option for us. A

Re: [Mesa-dev] [PATCH 24/24] automake: ask the linker to do garbage collection

2014-03-28 Thread Emil Velikov
On 28/03/14 08:35, Lauri Kasanen wrote: On Thu, 27 Mar 2014 21:00:39 + Emil Velikov emil.l.veli...@gmail.com wrote: By doing GC the linker removes all the symbols that are not referenced and/or used by the final library. This results in a saving of ~100K up-to ~600K per (stripped)

Re: [Mesa-dev] [PATCH 17/24] targets/omx: define GALLIUM_TRACE when using the trace driver

2014-03-28 Thread Emil Velikov
On 28/03/14 09:40, Christian König wrote: Am 27.03.2014 22:00, schrieb Emil Velikov: Otherwise the omx drivers are explicitly linked but never wrapped in order to use it. On the other hand I'm not sure if we really need the tracer linked in here, referencing it was just to make drm_target.c

Re: [Mesa-dev] Mesa branchpoint tags?

2014-03-28 Thread Erik Faye-Lund
On Fri, Mar 28, 2014 at 8:25 AM, Eric Anholt e...@anholt.net wrote: I was looking at a bug report about old software, and wanted to see what development branch a quoted commit was on: anholt@eliezer:anholt/src/mesa-release% git describe 97217a40f97cdeae0304798b607f704deb0c3558

[Mesa-dev] [PATCH] targets/omx: do not link against the trace driver

2014-03-28 Thread Emil Velikov
Unused due to the missing GALLIUM_TRACE define. Requested-by: Christian König christian.koe...@amd.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- Hi Christian Seems like none of the other video accel targets use the tracer. I'm assuming that the VDPAU issue(s) you've mentioned

Re: [Mesa-dev] [PATCH] targets/omx: do not link against the trace driver

2014-03-28 Thread Christian König
Am 28.03.2014 13:26, schrieb Emil Velikov: Unused due to the missing GALLIUM_TRACE define. Requested-by: Christian König christian.koe...@amd.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com Reviewed-by: Christian König christian.koe...@amd.com --- Hi Christian Seems like none of

[Mesa-dev] [PATCH 0/5] Using MAC to optimize LRP on i965 gen 6

2014-03-28 Thread Juha-Pekka Heikkila
v3: I took out accumulator flag from backend_instruction::has_side_effects() as Matt suggested and rebased my patches on top of master where had shown up Matt's patches which were overlapping a bit on dead code elimination. This set does not do anything for the MACH anomaly on vec4_visitor::visit

[Mesa-dev] [PATCH 2/5] i965/vec4: Add support for the MAC instruction.

2014-03-28 Thread Juha-Pekka Heikkila
This allows us to generate the MAC (multiply-accumulate) instruction, which can be used to implement some expressions in fewer instructions than doing a series of MUL and ADDs. Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com --- src/mesa/drivers/dri/i965/brw_eu.h |

[Mesa-dev] [PATCH 5/5] i965/fs: Change fs_visitor::emit_lrp to use MAC for gen6

2014-03-28 Thread Juha-Pekka Heikkila
This allows us to emit ADD/MUL/MAC instead of MUL/ADD/MUL/ADD, saving one instruction and two temporary registers. Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com --- src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 11 --- 1 file changed, 4 insertions(+), 7 deletions(-)

[Mesa-dev] [PATCH 1/5] i965: Add writes_accumulator flag

2014-03-28 Thread Juha-Pekka Heikkila
Our hardware has an accumulator register, which can be used to store intermediate results across multiple instructions. Many instructions can implicitly write a value to the accumulator in addition to their normal destination register. This is enabled by the AccWrEn flag. This patch introduces

[Mesa-dev] [PATCH 4/5] i965/fs: Add support for the MAC instruction.

2014-03-28 Thread Juha-Pekka Heikkila
This allows us to generate the MAC (multiply-accumulate) instruction, which can be used to implement some expressions in fewer instructions than doing a series of MUL and ADDs. Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com --- src/mesa/drivers/dri/i965/brw_fs.cpp | 1

Re: [Mesa-dev] RFC: per-driver extension lists

2014-03-28 Thread Ilia Mirkin
On Fri, Mar 28, 2014 at 10:15 AM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 05:06, schrieb Kenneth Graunke: I've attached the info for everything on the i965 driver. In case you ever want to regenerate things, I just ran: $ INTEL_DEVID_OVERRIDE=0x29a2 glxinfo -l -s gen4 $

Re: [Mesa-dev] i965: Vector splitting of outputs

2014-03-28 Thread Kenneth Graunke
On 03/26/2014 02:23 PM, Eric Anholt wrote: Here's a little series I wrote yesterday while tracking down why some silly MOVs were generated in a microbenchmark. As usual with optimization, the thing I was trying to work on (not present in this series) ended up requiring a bunch of other work

Re: [Mesa-dev] [PATCH 24/24] automake: ask the linker to do garbagecollection

2014-03-28 Thread Lauri Kasanen
On Fri, 28 Mar 2014 09:57:15 +0100 Marc Dietrich marvi...@gmx.de wrote: lto is broken on many compiler/ld combinations. Even if it is supported I won't recomment to enable it. A config option to enable it would be nice though. Lauri, on which compiler/binutils version did you got it

Re: [Mesa-dev] [PATCH 1/4] glsl: Move Doxygen block closing ot the correct place

2014-03-28 Thread Kenneth Graunke
On 03/27/2014 02:33 PM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com This is the closing for the \defgroup IR Intermediate representation nodes all the way at the top of the file. Signed-off-by: Ian Romanick ian.d.roman...@intel.com --- src/glsl/ir.h | 4 ++-- 1 file

Re: [Mesa-dev] RFC: per-driver extension lists

2014-03-28 Thread Roland Scheidegger
Am 28.03.2014 05:06, schrieb Kenneth Graunke: I've attached the info for everything on the i965 driver. In case you ever want to regenerate things, I just ran: $ INTEL_DEVID_OVERRIDE=0x29a2 glxinfo -l -s gen4 $ INTEL_DEVID_OVERRIDE=0x2a42 glxinfo -l -s gen4.5 $

Re: [Mesa-dev] [PATCH 24/24] automake: ask the linker to do garbage collection

2014-03-28 Thread Lauri Kasanen
On Fri, 28 Mar 2014 10:08:53 + Emil Velikov emil.l.veli...@gmail.com wrote: On 28/03/14 08:35, Lauri Kasanen wrote: Emil Velikov emil.l.veli...@gmail.com wrote: By doing GC the linker removes all the symbols that are not referenced and/or used by the final library. This results in a

[Mesa-dev] [Bug 76212] latest dota2 builds do crash with the radeon open source driver

2014-03-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76212 Sylvain BERTRAND sylvain.bertr...@gmail.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH 09/10] i965/fs: Track output regs on a split virtual GRF basis.

2014-03-28 Thread Kenneth Graunke
On 03/26/2014 02:23 PM, Eric Anholt wrote: Basically, replace the output_components[] array with per-channel tracking of the register storing that channel, or a BAD_FILE undefined reg. Right now var-data.location_frac is always 0, but I'm going to use that in vector_splitting next. ---

Re: [Mesa-dev] RFC: per-driver extension lists

2014-03-28 Thread Aaron Watry
Do people have opinions on whether it'd be useful to also gather data for older hardware? FWIW I threw my TNT2 in there, which is probably among the oldest hw supported by mesa. I'm not sure if it's worthwhile or not, but if you want/need it, I've got a Radeon x1950 at home that I can pop in

Re: [Mesa-dev] RFC: per-driver extension lists

2014-03-28 Thread Marek Olšák
It would be nicer not to use dots to indicate an extension is supported. I recommend using a high-contrast background color for td of supported extensions and white or other neutral color for unsupported extensions, a lot like piglit has green for pass and gray for skip, but each vendor can have

Re: [Mesa-dev] [PATCH v2 0/9] Add ARB_query_buffer_object (swrast)

2014-03-28 Thread Rafał Mielniczuk
On 28.03.2014 07:51, Kenneth Graunke wrote: On 03/27/2014 01:59 PM, Rafal Mielniczuk wrote: Hello, This is the second version of the series implementing ARB_query_buffer_object in mesa. Main changes to the first version are: - Enable extension only for software driver - Fix possible

[Mesa-dev] [Bug 76753] New: [swrast] piglit arb_clear_buffer_object-formats regression

2014-03-28 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=76753 Priority: medium Bug ID: 76753 Keywords: regression CC: bri...@vmware.com, chr...@ijw.co.nz Assignee: mesa-dev@lists.freedesktop.org Summary: [swrast] piglit

Re: [Mesa-dev] [PATCH v2 5/9] mesa: Handle QUERY_RESULT_NO_WAIT in GetQueryObject{ui64}v

2014-03-28 Thread Rafał Mielniczuk
On 28.03.2014 08:01, Kenneth Graunke wrote: On 03/27/2014 11:34 PM, Kenneth Graunke wrote: On 03/27/2014 01:59 PM, Rafal Mielniczuk wrote: Just return and do nothing if query result is not yet available Signed-off-by: Rafal Mielniczuk rafal.mielnicz...@gmail.com --- src/mesa/main/queryobj.c

[Mesa-dev] [PATCH 3/5] i965/vec4: Change vec4_visitor::emit_lrp to use MAC for gen6

2014-03-28 Thread Juha-Pekka Heikkila
This allows us to emit ADD/MUL/MAC instead of MUL/ADD/MUL/ADD, saving one instruction and two temporary registers. Signed-off-by: Juha-Pekka Heikkila juhapekka.heikk...@gmail.com --- src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp | 22 ++ 1 file changed, 6 insertions(+), 16

Re: [Mesa-dev] [PATCH] i965: disable blorp's linear filtering on SNB

2014-03-28 Thread Anuj Phogat
On Thu, Mar 27, 2014 at 1:29 AM, Samuel Iglesias Gonsalvez sigles...@igalia.com wrote: Commit 079bdba05f870807d3ed77fa3093cdb7727aa2fd enabled the use of BLORP engine for single sample scaled blit with bilinear filter. However piglit fails when running fbo-blit-stretch test on SandyBridge.

Re: [Mesa-dev] [PATCH 1/5] i965: Add writes_accumulator flag

2014-03-28 Thread Matt Turner
On Fri, Mar 28, 2014 at 6:28 AM, Juha-Pekka Heikkila juhapekka.heikk...@gmail.com wrote: diff --git a/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp b/src/mesa/drivers/dri/i965/brw_schedule_instructions.cpp index a951459..492ee0d 100644 ---

Re: [Mesa-dev] [PATCH 1/5] i965: Add writes_accumulator flag

2014-03-28 Thread Matt Turner
On Fri, Mar 28, 2014 at 6:28 AM, Juha-Pekka Heikkila juhapekka.heikk...@gmail.com wrote: + if (inst-writes_accumulator||inst-writes_flag()) Spaces around || inst-dst = dst_reg(retype(brw_null_reg(), inst-dst.type)); - break; - default: - if

Re: [Mesa-dev] [PATCH 0/5] Using MAC to optimize LRP on i965 gen 6

2014-03-28 Thread Matt Turner
On Fri, Mar 28, 2014 at 6:28 AM, Juha-Pekka Heikkila juhapekka.heikk...@gmail.com wrote: v3: I took out accumulator flag from backend_instruction::has_side_effects() as Matt suggested and rebased my patches on top of master where had shown up Matt's patches which were overlapping a bit on dead

[Mesa-dev] RFC: ARB_sample_shading in gallium

2014-03-28 Thread Ilia Mirkin
Hey guys, I was thinking of taking a shot at implementing ARB_sample_shading for nv50 (well, nva3-nva8) this weekend. One of the issues is that it's not implemented in gallium at all right now, so I need to pipe it through somehow. I believe that the only piece of data that needs to be piped

Re: [Mesa-dev] [PATCH 01/24] Partially revert automake: allow only shared builds

2014-03-28 Thread Matt Turner
On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov emil.l.veli...@gmail.com wrote: Evidently at least static OSMesa is still used as shared one causes substantial increase in the load time for some programs that use it (from seconds up-to ~30min). Rather than forcing everyone to use shared mesa,

Re: [Mesa-dev] [PATCH 07/24] targets/xa: drop libudev references from automake build

2014-03-28 Thread Matt Turner
On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov emil.l.veli...@gmail.com wrote: Mesa does _not_ against libudev. I think you a word. :) ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 11/24] targets/pipe-loader: move LLVM_LIBS handling inside PIPE_LIBS

2014-03-28 Thread Matt Turner
On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov emil.l.veli...@gmail.com wrote: This lets us have only one if HAVE_MESA_LLVM block, rather than one for each driver. Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/targets/pipe-loader/Makefile.am | 34

Re: [Mesa-dev] [PATCH 12/24] targets/omx: introduce GALLIUM_OMX_LIB_DEPS

2014-03-28 Thread Matt Turner
On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov emil.l.veli...@gmail.com wrote: Cc: Christian König christian.koe...@amd.com Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/Automake.inc | 6 ++ src/gallium/targets/r600/omx/Makefile.am | 5 +

Re: [Mesa-dev] RFC: per-driver extension lists

2014-03-28 Thread Aaron Watry
On Fri, Mar 28, 2014 at 10:32 AM, Ilia Mirkin imir...@alum.mit.edu wrote: On Fri, Mar 28, 2014 at 11:14 AM, Aaron Watry awa...@gmail.com wrote: Do people have opinions on whether it'd be useful to also gather data for older hardware? FWIW I threw my TNT2 in there, which is probably among the

Re: [Mesa-dev] [PATCH 16/24] gallium/targets: explicitly include a dummy.cpp and remove all the LINK mayhem

2014-03-28 Thread Matt Turner
On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov emil.l.veli...@gmail.com wrote: We've been copying and pasting this hunk for a while now, only to prevent build issues on very old and buggy build toolchains. At this point this should no longer be needed, so we can cleanup all the mess and simplify

Re: [Mesa-dev] [PATCH 18/24] targets/egl-static: move the common LDFLAGS into AM_LDFLAGS

2014-03-28 Thread Matt Turner
On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov emil.l.veli...@gmail.com wrote: Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/targets/egl-static/Makefile.am | 19 +-- 1 file changed, 13 insertions(+), 6 deletions(-) diff --git

Re: [Mesa-dev] RFC: ARB_sample_shading in gallium

2014-03-28 Thread Roland Scheidegger
Am 28.03.2014 22:18, schrieb Ilia Mirkin: Hey guys, I was thinking of taking a shot at implementing ARB_sample_shading for nv50 (well, nva3-nva8) this weekend. One of the issues is that it's not implemented in gallium at all right now, so I need to pipe it through somehow. I believe that

Re: [Mesa-dev] [PATCH 21/24] pipe-loader: use PTHREAD_LIBS over -lpthread

2014-03-28 Thread Matt Turner
On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov emil.l.veli...@gmail.com wrote: Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/targets/pipe-loader/Makefile.am | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 22/24] gallium/targets: add missing library dependencies

2014-03-28 Thread Matt Turner
On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov emil.l.veli...@gmail.com wrote: Signed-off-by: Emil Velikov emil.l.veli...@gmail.com --- src/gallium/targets/gbm/Makefile.am | 5 - src/gallium/targets/xa/Makefile.am | 7 ++- 2 files changed, 10 insertions(+), 2 deletions(-) diff

Re: [Mesa-dev] [PATCH 00/24] LDFLAG additions and misc automake cleanups

2014-03-28 Thread Matt Turner
On Thu, Mar 27, 2014 at 2:00 PM, Emil Velikov emil.l.veli...@gmail.com wrote: Hello list, Yet another small series from me, targeting the following - Revert allow only shared builds. Static osmesa/libgl-xlib is still a used, so rever the commit for now. - Add -no-undefined,

Re: [Mesa-dev] [PATCH 0/6] Some glapi clean-up releated to GLES

2014-03-28 Thread Matt Turner
On Wed, Mar 26, 2014 at 5:12 PM, Ian Romanick i...@freedesktop.org wrote: Tomorrow or Friday I'm going to send out the last of the GL_ARB_separate_shader_objects patches. Shortly after that, I will send out patches to enable GL_EXT_separate_shader_objects on GLES. This EXT is the GLES subset

Re: [Mesa-dev] RFC: ARB_sample_shading in gallium

2014-03-28 Thread Ilia Mirkin
On Fri, Mar 28, 2014 at 5:47 PM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 22:18, schrieb Ilia Mirkin: Hey guys, I was thinking of taking a shot at implementing ARB_sample_shading for nv50 (well, nva3-nva8) this weekend. One of the issues is that it's not implemented in

[Mesa-dev] [PATCH 1/2] i965/fs: Recalculate live intervals in calculate_register_pressure().

2014-03-28 Thread Matt Turner
Otherwise calling dump_instructions() after declaring a new fs_reg would segfault when calculate_register_pressure()'s loop over reg walked off the end of the virtual_grf_start[] array that calculate_live_intervals() would have reallocated for you, if it had known there was a new register. ---

[Mesa-dev] [PATCH 2/2] i965/fs: Name temporary ralloc contexts something other than mem_ctx.

2014-03-28 Thread Matt Turner
Or else poor programmers might mistakenly use the temporary mem_ctx, instead of the fs_visitor's mem_ctx and wonder why their code is crashing. Also remove the parenting. These contexts are local to the optimization passes they're in and are freed at the end. ---

Re: [Mesa-dev] RFC: ARB_sample_shading in gallium

2014-03-28 Thread Roland Scheidegger
Am 28.03.2014 22:56, schrieb Ilia Mirkin: On Fri, Mar 28, 2014 at 5:47 PM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 22:18, schrieb Ilia Mirkin: Hey guys, I was thinking of taking a shot at implementing ARB_sample_shading for nv50 (well, nva3-nva8) this weekend. One of the

Re: [Mesa-dev] [PATCH 2/2] glsl: remove UBO fields from _mesa_glsl_parse_state

2014-03-28 Thread Matt Turner
Reviewed-by: Matt Turner matts...@gmail.com ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] RFC: ARB_sample_shading in gallium

2014-03-28 Thread Ilia Mirkin
On Fri, Mar 28, 2014 at 6:41 PM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 22:56, schrieb Ilia Mirkin: On Fri, Mar 28, 2014 at 5:47 PM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 22:18, schrieb Ilia Mirkin: Hey guys, I was thinking of taking a shot at

[Mesa-dev] [PATCH 2/2] mesa: Fix format matching checks for GL_INTENSITY* internalformats.

2014-03-28 Thread Chris Forbes
GL_INTENSITY has never been valid as a pixel format -- to get the memcpy pack/unpack paths, the app needs to specify GL_RED as the pixel format (or GL_RED_INTEGER for the integer formats). Note: This was briefly merged before, but exposed some breakage in gallium, so was reverted. Hopefully it

[Mesa-dev] [PATCH 1/2] st: fix st_choose_matching_format to ignore intensity

2014-03-28 Thread Chris Forbes
_mesa_format_matches_format_and_type() returns true for GL_RED/GL_RED_INTEGER (with an appropriate type) into an intensity mesa_format. We want the `red`-based format instead, regardless of the order we find them in our walk of the mesa formats list. Signed-off-by: Chris Forbes chr...@ijw.co.nz

Re: [Mesa-dev] RFC: ARB_sample_shading in gallium

2014-03-28 Thread Roland Scheidegger
Am 28.03.2014 23:57, schrieb Ilia Mirkin: On Fri, Mar 28, 2014 at 6:41 PM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 22:56, schrieb Ilia Mirkin: On Fri, Mar 28, 2014 at 5:47 PM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 22:18, schrieb Ilia Mirkin: Hey

[Mesa-dev] [PATCH] i965/vec4: Don't trim writemasks of texture instructions.

2014-03-28 Thread Matt Turner
It was my understanding that the writemask works in SIMD4x2 mode for texturing instructions and doesn't require a message header. Some bit of this logic must be wrong, so disable it until it's understood. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76617 ---

Re: [Mesa-dev] RFC: ARB_sample_shading in gallium

2014-03-28 Thread Ilia Mirkin
On Fri, Mar 28, 2014 at 7:43 PM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 23:57, schrieb Ilia Mirkin: On Fri, Mar 28, 2014 at 6:41 PM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 22:56, schrieb Ilia Mirkin: On Fri, Mar 28, 2014 at 5:47 PM, Roland Scheidegger

[Mesa-dev] [PATCH] i965/vec4: Don't trim writemasks of texture instructions.

2014-03-28 Thread Matt Turner
It was my understanding that the writemask works in SIMD4x2 mode for texturing instructions and doesn't require a message header. Some bit of this logic must be wrong, so disable it until it's understood. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=76617 --- v2: Base on master, rather

Re: [Mesa-dev] RFC: ARB_sample_shading in gallium

2014-03-28 Thread Roland Scheidegger
Am 29.03.2014 00:57, schrieb Ilia Mirkin: On Fri, Mar 28, 2014 at 7:43 PM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 23:57, schrieb Ilia Mirkin: On Fri, Mar 28, 2014 at 6:41 PM, Roland Scheidegger srol...@vmware.com wrote: Am 28.03.2014 22:56, schrieb Ilia Mirkin: On Fri,

Re: [Mesa-dev] [PATCH] i965/vec4: Don't trim writemasks of texture instructions.

2014-03-28 Thread Kenneth Graunke
On 03/28/2014 04:58 PM, Matt Turner wrote: It was my understanding that the writemask works in SIMD4x2 mode for texturing instructions and doesn't require a message header. Some bit of this logic must be wrong, so disable it until it's understood. Bugzilla:

[Mesa-dev] [PATCH] mesa: fix texstore for MESA_FORMAT_R8G8B8A8_SRGB

2014-03-28 Thread Chris Forbes
The case for this was in the wrong function, and this format's store func was not set in the table at all. Signed-off-by: Chris Forbes chr...@ijw.co.nz --- src/mesa/main/texstore.c | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/texstore.c