[Mesa-dev] [PATCH 1/2] i965: Expose brw_set_sampler_message for use outside brw_eu_emit.c.

2012-01-26 Thread Kenneth Graunke
brw_SAMPLE is full of complex workarounds for original Broadwater hardware, and I'd rather avoid all that for my next Ivybridge patch. Signed-off-by: Kenneth Graunke kenn...@whitecape.org --- src/mesa/drivers/dri/i965/brw_eu.h | 11 +++ src/mesa/drivers/dri/i965/brw_eu_emit.c |

[Mesa-dev] [PATCH 2/2] i965/vs: Use the sampler for VS pull constant loading on Ivybridge.

2012-01-26 Thread Kenneth Graunke
Substantially increases performance in GLBenchmark PRO: - 320x240 = 3.28x - 1920x1080 = 1.47x - 2560x1440 = 1.27x The LD message ignores the sampler unit index and SAMPLER_STATE pointer, instead relying on hard-wired default state. Thus, there's no need to worry about running out of sampler

Re: [Mesa-dev] [PATCH 0/6] Draw-optz changes

2012-01-26 Thread Stéphane Marchesin
On Wed, Jan 25, 2012 at 09:40, Jose Fonseca jfons...@vmware.com wrote: Thanks Stephane.  Much better. I still think the flush flags semantics are quite confusing, but the problem comes from way before this change. Take e.g. the chunk: +      /* don't prepare if we only are flushing the

Re: [Mesa-dev] Mesa (master): automake: src/egl/wayland

2012-01-26 Thread Benjamin Franzke
Sorry, guys. The wayland macros is missing, but i'm not sure how to properly solve this. We could use m4_ifdef to include it only when wayland is actually available, but that will require that the packager has it available when creating the tarballs. Attaching a patch for that, have you got

Re: [Mesa-dev] Mesa (master): automake: src/egl/wayland

2012-01-26 Thread Jose Fonseca
Thanks. Your patch lets me build successfully. I can't install wayland development packages on ubuntu 11.10 due to package conflicts, so there's no alternative for me here. I'm not sure about the tarball case. Perhaps you could disable/fail tarball creation when these macros are missing. But

Re: [Mesa-dev] [PATCH 4/4] dri: Add a default drirc to be installed to provide application workarounds.

2012-01-26 Thread Marek Olšák
On Thu, Jan 26, 2012 at 2:24 AM, Eric Anholt e...@anholt.net wrote: On Wed, 25 Jan 2012 23:56:27 +0100, Marek Olšák mar...@gmail.com wrote: Hi Eric, I don't like this, because I don't have drirc in my system. Obviously Canonical decided not to include it and that also means some of my users

[Mesa-dev] [Bug 45263] New: git mesa configure error

2012-01-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45263 Bug #: 45263 Summary: git mesa configure error Classification: Unclassified Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All) Status: NEW

[Mesa-dev] [Bug 45263] git mesa configure error

2012-01-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45263 José Fonseca jfons...@vmware.com changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] Mesa (master): draw: Only run prepare when state, prim and opt changes

2012-01-26 Thread Jose Fonseca
Stephane, This commit caused a segmentation fault on glean texSwizzle test + llvmpipe: $ gdb --args glean --run results --overwrite --quick --tests texSwizzle (gdb) r Starting program: glean --run results --overwrite --quick --tests texSwizzle [Thread debugging using libthread_db enabled]

Re: [Mesa-dev] [PATCH 1/3] mesa: Fix handling of glCopyBufferSubData() for src == dst.

2012-01-26 Thread Brian Paul
On Wed, Jan 25, 2012 at 8:51 PM, Eric Anholt e...@anholt.net wrote: Fixes piglit ARB_copy_buffer-overlap, which previously assertion failed. ---  src/mesa/main/bufferobj.c |   25 +++--  1 files changed, 19 insertions(+), 6 deletions(-) diff --git

Re: [Mesa-dev] [PATCH 2/3] mesa: Fix the error for glCopyBufferSubData() with a buffer of 0.

2012-01-26 Thread Brian Paul
On Wed, Jan 25, 2012 at 8:51 PM, Eric Anholt e...@anholt.net wrote: The INVALID_ENUM here may have been trying to catch someone passing something bogus as the target rather than having a non-buffer bound. The extension spec and the GL 3.2 specs doesn't say anything specific for error results

Re: [Mesa-dev] [PATCH 1/2] st/mesa: use table-driven approach to exposing extensions for formats (v3)

2012-01-26 Thread Brian Paul
On Wed, Jan 25, 2012 at 8:22 AM, Marek Olšák mar...@gmail.com wrote: The check for ctx-API was unnecessary, because OES extensions are not exposed in desktop GL. Also require renderbuffer support for ARB_texture_rgb10_a2ui, as per the spec. Tested by comparing old and new glxinfo with

Re: [Mesa-dev] [PATCH] mesa: set clamp bit in glGetTexImage for GL_UNSIGNED_NORMALIZED

2012-01-26 Thread Brian Paul
On Tue, Jan 24, 2012 at 10:58 PM, Anuj Phogat anuj.pho...@gmail.com wrote: Color clamping should be enabled in glGetTexImage if texture dataType is GL_UNSIGNED_NORMALIZED and format is GL_LUMINANCE or GL_LUMINANCE_ALPHA Fixes 2 Intel oglconform test cases: pxconv-gettex and pxtrans-gettex

Re: [Mesa-dev] [PATCH 2/2] scons: don't add -Wmissing-field-initializers

2012-01-26 Thread Marek Olšák
On Wed, Jan 25, 2012 at 2:34 PM, Jose Fonseca jfons...@vmware.com wrote: - Original Message - The warning is absolutely useless. It doesn't actually say that there are uninitialized variables. It points out the fact that there are missing initializers and that variables are

Re: [Mesa-dev] Mesa (master): draw: Only run prepare when state, prim and opt changes

2012-01-26 Thread Stéphane Marchesin
Hmm, I'll take a look later today. Stéphane 2012/1/26 Jose Fonseca jfons...@vmware.com: Stephane, This commit caused a segmentation fault on glean texSwizzle test + llvmpipe: $ gdb --args glean --run results --overwrite --quick --tests texSwizzle (gdb) r Starting program: glean --run

[Mesa-dev] [Bug 45277] New: [bisected] Shading not working properly in Heroes of Newerth

2012-01-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=45277 Bug #: 45277 Summary: [bisected] Shading not working properly in Heroes of Newerth Classification: Unclassified Product: Mesa Version: git Platform: x86-64 (AMD64)

Re: [Mesa-dev] Should we fix Unigine apps?

2012-01-26 Thread Lauri Kasanen
Hi list Just reporting that Unigine folks have already fixed the issue(s): http://phoronix.com/forums/showthread.php?p=248294#post248294 - Lauri ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

Re: [Mesa-dev] [PATCH 2/2] i965/vs: Use the sampler for VS pull constant loading on Ivybridge.

2012-01-26 Thread Eric Anholt
On Thu, 26 Jan 2012 08:32:08 -0800, Kenneth Graunke kenn...@whitecape.org wrote: Substantially increases performance in GLBenchmark PRO: - 320x240 = 3.28x - 1920x1080 = 1.47x - 2560x1440 = 1.27x The LD message ignores the sampler unit index and SAMPLER_STATE pointer, instead relying on

Re: [Mesa-dev] Mesa (master): 60 new commits

2012-01-26 Thread Kenneth Graunke
On 01/26/2012 11:23 AM, Ian Romanick wrote: So far, I've only see cases that this series fixes. I have another patch on top of this (that I'll send out today) that fixes a couple more cases on i965. I'd like to nominate this entire series for inclusion in 8.0. If there are no objections, I can

Re: [Mesa-dev] [PATCH 2/2] gallium: add flag PIPE_TRANSFER_MAP_PERMANENTLY

2012-01-26 Thread Marek Olšák
On Tue, Jan 10, 2012 at 6:20 PM, Jose Fonseca jfons...@vmware.com wrote: - Original Message - On Tue, Jan 10, 2012 at 5:15 PM, Jose Fonseca jfons...@vmware.com wrote: - Original Message - The flag is optional, it doesn't have to implemented by everybody. If we do the

[Mesa-dev] [PATCH] swrast: Fix fixed-function fragment processing

2012-01-26 Thread Chad Versace
On i965, _mesa_ir_link_shader is never called. As a consequence, the current fragment program (ctx-FragmentProgram-_Current) exists but does not differ from the fixed function fragment program (ctx-FragmentProgram-_TexEnvProgram). This confuses swrast. To fix the confusion, this patch replaces

Re: [Mesa-dev] Mesa (master): 60 new commits

2012-01-26 Thread Eric Anholt
On Thu, 26 Jan 2012 11:23:24 -0800, Ian Romanick i...@freedesktop.org wrote: So far, I've only see cases that this series fixes. I have another patch on top of this (that I'll send out today) that fixes a couple more cases on i965. I'd like to nominate this entire series for inclusion in

Re: [Mesa-dev] Mesa (master): 60 new commits

2012-01-26 Thread Brian Paul
On Thu, Jan 26, 2012 at 2:23 PM, Ian Romanick i...@freedesktop.org wrote: So far, I've only see cases that this series fixes.  I have another patch on top of this (that I'll send out today) that fixes a couple more cases on i965.  I'd like to nominate this entire series for inclusion in 8.0.  

Re: [Mesa-dev] [PATCH] mesa: set clamp bit in glGetTexImage for GL_UNSIGNED_NORMALIZED

2012-01-26 Thread Ian Romanick
On 01/26/2012 06:40 AM, Brian Paul wrote: On Tue, Jan 24, 2012 at 10:58 PM, Anuj Phogatanuj.pho...@gmail.com wrote: Color clamping should be enabled in glGetTexImage if texture dataType is GL_UNSIGNED_NORMALIZED and format is GL_LUMINANCE or GL_LUMINANCE_ALPHA Fixes 2 Intel oglconform test

Re: [Mesa-dev] Mesa (master): 60 new commits

2012-01-26 Thread Ian Romanick
On 01/26/2012 01:53 PM, Brian Paul wrote: On Thu, Jan 26, 2012 at 2:23 PM, Ian Romanicki...@freedesktop.org wrote: So far, I've only see cases that this series fixes. I have another patch on top of this (that I'll send out today) that fixes a couple more cases on i965. I'd like to nominate

Re: [Mesa-dev] [PATCH 1/3] mesa: Fix handling of glCopyBufferSubData() for src == dst.

2012-01-26 Thread Ian Romanick
On 01/25/2012 05:51 PM, Eric Anholt wrote: Fixes piglit ARB_copy_buffer-overlap, which previously assertion failed. Reviewed-by: Ian Romanick ian.d.roman...@intel.com One other orthogonal question below... --- src/mesa/main/bufferobj.c | 25 +++-- 1 files changed,

Re: [Mesa-dev] [PATCH 2/3] mesa: Fix the error for glCopyBufferSubData() with a buffer of 0.

2012-01-26 Thread Ian Romanick
On 01/25/2012 05:51 PM, Eric Anholt wrote: The INVALID_ENUM here may have been trying to catch someone passing something bogus as the target rather than having a non-buffer bound. The extension spec and the GL 3.2 specs doesn't say anything specific for error results for either bad target enums

Re: [Mesa-dev] [PATCH] mesa: set clamp bit in glGetTexImage for GL_UNSIGNED_NORMALIZED

2012-01-26 Thread Brian Paul
On Thu, Jan 26, 2012 at 4:55 PM, Ian Romanick i...@freedesktop.org wrote: On 01/26/2012 06:40 AM, Brian Paul wrote: On Tue, Jan 24, 2012 at 10:58 PM, Anuj Phogatanuj.pho...@gmail.com  wrote: Color clamping should be enabled in glGetTexImage if texture dataType is GL_UNSIGNED_NORMALIZED and

Re: [Mesa-dev] [PATCH 4/4] dri: Add a default drirc to be installed to provide application workarounds.

2012-01-26 Thread Ian Romanick
On 01/25/2012 02:56 PM, Marek Olšák wrote: Hi Eric, I don't like this, because I don't have drirc in my system. Obviously In addition to what Eric and Ken said, each user can have their own ~/.drirc or can set the options via environment variables. force_glsl_extensions_warn=true

Re: [Mesa-dev] [PATCH 2/4] mesa: Add a flag for forcing all GLSL extensions to warn.

2012-01-26 Thread Ian Romanick
On 01/25/2012 02:29 PM, Eric Anholt wrote: --- src/glsl/glsl_parser_extras.cpp |3 +++ src/mesa/main/mtypes.h |6 ++ 2 files changed, 9 insertions(+), 0 deletions(-) diff --git a/src/glsl/glsl_parser_extras.cpp b/src/glsl/glsl_parser_extras.cpp index 0b53232..7f8d47c

Re: [Mesa-dev] [PATCH] mesa: set clamp bit in glGetTexImage for GL_UNSIGNED_NORMALIZED

2012-01-26 Thread Anuj Phogat
On Thu, Jan 26, 2012 at 2:56 PM, Brian Paul brian.e.p...@gmail.com wrote: On Thu, Jan 26, 2012 at 4:55 PM, Ian Romanick i...@freedesktop.org wrote: On 01/26/2012 06:40 AM, Brian Paul wrote: On Tue, Jan 24, 2012 at 10:58 PM, Anuj Phogatanuj.pho...@gmail.com wrote: Color clamping

Re: [Mesa-dev] [PATCH 4/4] dri: Add a default drirc to be installed to provide application workarounds.

2012-01-26 Thread Marek Olšák
On Fri, Jan 27, 2012 at 12:26 AM, Ian Romanick i...@freedesktop.org wrote: On 01/25/2012 02:56 PM, Marek Olšák wrote: Hi Eric, I don't like this, because I don't have drirc in my system. Obviously In addition to what Eric and Ken said, each user can have their own ~/.drirc or can set the

[Mesa-dev] [Bug 44928] i965 build error on recent git

2012-01-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44928 Eric Anholt e...@anholt.net changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [PATCH] mesa: fix maximum supported texture size returned by glGetIntegrv

2012-01-26 Thread Anuj Phogat
As per OpenGL 3.0 specification section 3.9, page 187 in pdf the maximum allowable width, height, or depth of a texel array must be at least 2^(k−lod) + 2*bt for image arrays of level-of-detail (lod) 0 through k, where k is the log base 2 of MAX_3D_TEXTURE_SIZE, and bt is the maximum border width

[Mesa-dev] [Bug 38970] [bisected]piglit glx/glx-pixmap-multi failed

2012-01-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=38970 --- Comment #16 from Ian Romanick i...@freedesktop.org 2012-01-26 17:22:05 PST --- The test fails because the second glXCreateGLXPixmap or glXCreatePixmap tries to add the same drawable ID to priv-drawHash. The call fails because the key

Re: [Mesa-dev] [PATCH] swrast: Fix fixed-function fragment processing

2012-01-26 Thread Eric Anholt
On Thu, 26 Jan 2012 12:46:03 -0800, Chad Versace chad.vers...@linux.intel.com wrote: On i965, _mesa_ir_link_shader is never called. As a consequence, the current fragment program (ctx-FragmentProgram-_Current) exists but does not differ from the fixed function fragment program

[Mesa-dev] [PATCH] intel: Don't try intel_miptree_map_blit if a region is already mapped

2012-01-26 Thread Ian Romanick
From: Ian Romanick ian.d.roman...@intel.com Eventually this path leads to _intel_batchbuffer_flush. The first thing there is an assertion that nothing is mapped. Fixes the afore mentioned assertion failure in piglit's fbo-mipmap-copypix, and is related to bug #43328. NOTE: This is a candidate

[Mesa-dev] [Bug 44039] Mesa 7.12-devel implementation error: unexpected format 0x822e in _mesa_choose_tex_format()

2012-01-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44039 Ian Romanick i...@freedesktop.org changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH] intel: Don't try intel_miptree_map_blit if a region is already mapped

2012-01-26 Thread Chad Versace
On 01/26/2012 06:29 PM, Ian Romanick wrote: From: Ian Romanick ian.d.roman...@intel.com Eventually this path leads to _intel_batchbuffer_flush. The first thing there is an assertion that nothing is mapped. Fixes the afore mentioned assertion failure in piglit's fbo-mipmap-copypix, and is

[Mesa-dev] [PATCH 05/14] mesa: rewrite, simplify some of the logic in _mesa_format_matches_format_and_type()

2012-01-26 Thread Brian Paul
In preparation for adding GL_PACK/UNPACK_SWAP_BYTES support. --- src/mesa/main/formats.c | 37 - 1 files changed, 28 insertions(+), 9 deletions(-) diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index d11b167..834d4c8 100644 ---

[Mesa-dev] [PATCH 06/14] mesa: added swapBytes parameter to _mesa_format_matches_format_and_type()

2012-01-26 Thread Brian Paul
Not actually used yet though. --- src/mesa/main/formats.c | 10 ++ src/mesa/main/formats.h |3 ++- src/mesa/main/readpix.c |3 ++- src/mesa/swrast/s_drawpix.c |3 ++- 4 files changed, 12 insertions(+), 7 deletions(-) diff --git a/src/mesa/main/formats.c

[Mesa-dev] [PATCH 07/14] mesa: use swapBytes parameter in _mesa_format_matches_format_and_type()

2012-01-26 Thread Brian Paul
This will let us use memcpy in more situations. We can also remove the checks for byte spapping that happen before the calls to _mesa_format_matches_format_and_type(). --- src/mesa/main/formats.c | 131 +-- 1 files changed, 93 insertions(+), 38

[Mesa-dev] [PATCH 08/14] mesa: implement more cases in _mesa_format_matches_format_and_type()

2012-01-26 Thread Brian Paul
--- src/mesa/main/formats.c | 24 ++-- 1 files changed, 22 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/formats.c b/src/mesa/main/formats.c index a52b38b..cecb70c 100644 --- a/src/mesa/main/formats.c +++ b/src/mesa/main/formats.c @@ -2733,7 +2733,7 @@

[Mesa-dev] [PATCH 09/14] mesa: use _mesa_format_matches_format_and_type() in texstore code

2012-01-26 Thread Brian Paul
This simplifies the code quite a bit, consolidates some cases and possibly catches more cases for the memcpy path. More such changes will follow. Do just a few at a time to help bisect any possible regressions. --- src/mesa/main/texstore.c | 48 +++-- 1

[Mesa-dev] [PATCH 10/14] mesa: more use of _mesa_format_matches_format_and_type() in texstore code

2012-01-26 Thread Brian Paul
For rgb565, argb, rgb888, argb functions. --- src/mesa/main/texstore.c | 26 -- 1 files changed, 8 insertions(+), 18 deletions(-) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index a3f311a..ef8d097 100644 --- a/src/mesa/main/texstore.c +++

[Mesa-dev] [PATCH 11/14] mesa: more use of _mesa_format_matches_format_and_type() in texstore code

2012-01-26 Thread Brian Paul
For rgba5551, argb1555, argb2101010 formats. --- src/mesa/main/texstore.c | 20 +++- 1 files changed, 7 insertions(+), 13 deletions(-) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index ef8d097..3bfea8c 100644 --- a/src/mesa/main/texstore.c +++

[Mesa-dev] [PATCH 12/14] mesa: more use of _mesa_format_matches_format_and_type() in texstore code

2012-01-26 Thread Brian Paul
For rgb332, signed rgba, signed rgba888_rev functions. --- src/mesa/main/texstore.c | 23 --- 1 files changed, 4 insertions(+), 19 deletions(-) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 3bfea8c..9a12cc1 100644 --- a/src/mesa/main/texstore.c

[Mesa-dev] [PATCH 13/14] mesa: more use of _mesa_format_matches_format_and_type() in texstore code

2012-01-26 Thread Brian Paul
For rgb9_e5, r11_g11_b10f, argb2101010_uint functions. --- src/mesa/main/texstore.c | 19 +++ 1 files changed, 7 insertions(+), 12 deletions(-) diff --git a/src/mesa/main/texstore.c b/src/mesa/main/texstore.c index 9a12cc1..55156e7 100644 --- a/src/mesa/main/texstore.c +++

[Mesa-dev] [PATCH 14/14] mesa: remove byteswap check in fast_read_rgba_pixels_memcpy()

2012-01-26 Thread Brian Paul
It's handled by _mesa_format_matches_format_and_type() now. --- src/mesa/main/readpix.c |5 - 1 files changed, 0 insertions(+), 5 deletions(-) diff --git a/src/mesa/main/readpix.c b/src/mesa/main/readpix.c index 71de0b3..908a55e 100644 --- a/src/mesa/main/readpix.c +++

Re: [Mesa-dev] Mesa (master): draw: Only run prepare when state, prim and opt changes

2012-01-26 Thread Stéphane Marchesin
I just took a look at it in gdb. Basically the jit_func pointer is corrupted by the free_gallivm_state function (in lp_bld_init.c). There is a comment to that effect already. It seems like the bug was always there but hidden because we regenerated state more than we had to. I'll keep digging...

Re: [Mesa-dev] Mesa (master): draw: Only run prepare when state, prim and opt changes

2012-01-26 Thread Stéphane Marchesin
So actually it's a case of a use-after free. The variant is freed with draw_llvm_destroy_variant and then reused through llvm_pipeline_generic after free_gallium_state (and llvm) reused the memory for something else. What prevents a variant bound to an fpme from being freed by the garbage

Re: [Mesa-dev] Mesa (master): draw: Only run prepare when state, prim and opt changes

2012-01-26 Thread Stéphane Marchesin
Ok so I'm thinking of adding a refcount to the variant to know if they are bound, and not garbage collect them in that case. Let me know what you think. Stéphane 2012/1/26 Stéphane Marchesin stephane.marche...@gmail.com: So actually it's a case of a use-after free. The variant is freed with

[Mesa-dev] [PATCH] automake: src/mesa/drivers/osmesa

2012-01-26 Thread Matt Turner
--- Please give this a try. OSMesa is broken with shared-glapi. I'll fix that (it'll be much easier) when I automake glapi. configs/autoconf.in |2 - configure.ac | 10 +++- src/mesa/Makefile| 17 +--

[Mesa-dev] [Bug 44618] Cross-compilation broken by glsl builtin_compiler

2012-01-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44618 Matt Turner matts...@gmail.com changed: What|Removed |Added CC||matts...@gmail.com ---

[Mesa-dev] [Bug 44618] Cross-compilation broken by glsl builtin_compiler

2012-01-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=44618 --- Comment #9 from Thierry Reding thierry.red...@avionic-design.de 2012-01-26 23:32:19 PST --- (In reply to comment #8) I think I can partially fix this with automake. Automake doesn't have a concept for host vs target $(CC)s, so you can't