[Mesa-dev] [Bug 47742] [softpipe] piglit fbo-generatemipmap-array regression

2012-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=47742 Vinson Lee changed: What|Removed |Added CC||bri...@vmware.com --- Comment #1 from Vinso

[Mesa-dev] [Bug 47742] New: [softpipe] piglit fbo-generatemipmap-array regression

2012-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=47742 Bug #: 47742 Summary: [softpipe] piglit fbo-generatemipmap-array regression Classification: Unclassified Product: Mesa Version: git Platform: x86-64 (AMD64) OS/Version: Linux (All

[Mesa-dev] [PATCH 15/15] gallium/gbm: Switch to the winsys loader.

2012-03-22 Thread Francisco Jerez
--- configure.ac |1 + src/gallium/state_trackers/gbm/gbm_drm.c |5 +- .../state_trackers/gbm/gbm_gallium_drmint.h|3 + src/gallium/targets/gbm/Makefile | 168 ++--- src/gallium/targets/gbm/gbm.c

[Mesa-dev] [PATCH 14/15] gallium/tests/trivial: Switch to the winsys loader.

2012-03-22 Thread Francisco Jerez
It simplifies things slightly, and besides, it makes possible to execute the trivial tests on a hardware device instead of being limited to software rendering. --- configure.ac | 11 +++ src/gallium/tests/trivial/Makefile | 24 ++-- src/gal

[Mesa-dev] [PATCH 13/15] gallium: Add "pipe-loader" target.

2012-03-22 Thread Francisco Jerez
This target generates pipe driver modules intended to be consumed by the winsys loader. Most of it was taken from the "gbm" target -- the duplicated code will be replaced with references to this target in a future commit. --- src/gallium/targets/pipe-loader/Makefile | 165 +

[Mesa-dev] [PATCH 12/15] gallium: Add winsys loader for device enumeration and driver multiplexing.

2012-03-22 Thread Francisco Jerez
The goal is to have a uniform interface to create winsys and pipe_screen instances for any driver, exposing the device enumeration capabilities that might be supported by the operating system (for now there's a "drm" back-end using udev and a "sw" back-end that always returns the same built-in devi

[Mesa-dev] [PATCH 11/15] winsys/sw/xlib: Convert to automake.

2012-03-22 Thread Francisco Jerez
--- configure.ac |1 + src/gallium/winsys/sw/xlib/Makefile| 17 - src/gallium/winsys/sw/xlib/Makefile.am | 24 3 files changed, 25 insertions(+), 17 deletions(-) delete mode 100644 src/gallium/winsys/sw/xlib/Makefile

[Mesa-dev] [PATCH 10/15] winsys/sw/null: Convert to automake.

2012-03-22 Thread Francisco Jerez
--- configure.ac |1 + src/gallium/winsys/sw/null/Makefile| 16 src/gallium/winsys/sw/null/Makefile.am | 23 +++ 3 files changed, 24 insertions(+), 16 deletions(-) delete mode 100644 src/gallium/winsys/sw/null/Makefile cr

[Mesa-dev] [PATCH 09/15] configure.ac: Don't sort GALLIUM_WINSYS_DIRS

2012-03-22 Thread Francisco Jerez
From: Tom Stellard This allows targets to order winsys directories, so dependencies are built in the correct order. --- configure.ac |1 - 1 file changed, 1 deletion(-) diff --git a/configure.ac b/configure.ac index ac7d49f..fe5e198 100644 --- a/configure.ac +++ b/configure.ac @@ -2009,7 +2

[Mesa-dev] [PATCH 08/15] gallium/tgsi/text: Replace open-coded integer parsing with parse_int().

2012-03-22 Thread Francisco Jerez
--- src/gallium/auxiliary/tgsi/tgsi_text.c | 20 +++- 1 file changed, 3 insertions(+), 17 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c index a63e8d7..3fd764f 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_text.c +++ b/s

[Mesa-dev] [PATCH 07/15] gallium/tgsi/text: Parse immediates of non-float data types.

2012-03-22 Thread Francisco Jerez
--- src/gallium/auxiliary/tgsi/tgsi_text.c | 66 +++- 1 file changed, 48 insertions(+), 18 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_text.c b/src/gallium/auxiliary/tgsi/tgsi_text.c index 51943ed..a63e8d7 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_t

[Mesa-dev] [PATCH 06/15] gallium/tgsi: Fix tgsi_build_full_immediate() for non-float data types.

2012-03-22 Thread Francisco Jerez
--- src/gallium/auxiliary/tgsi/tgsi_build.c | 30 -- 1 file changed, 8 insertions(+), 22 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.c b/src/gallium/auxiliary/tgsi/tgsi_build.c index a607f9f..841618a 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_b

[Mesa-dev] [PATCH 05/15] gallium/tgsi: Add new 'has_label' opcode info flag, and fix tgsi_text.c to use it.

2012-03-22 Thread Francisco Jerez
The 'is_branch' TGSI opcode info flag was being interpreted incorrectly by tgsi_text.c as if it implied that the opcode requires a label token -- that's not the case on e.g. IF, BGNLOOP or ENDLOOP. Add a new opcode info field that marks an opcode as requiring a TGSI label token, and replace the in

[Mesa-dev] [PATCH 04/15] st/mesa: Use local temporary registers.

2012-03-22 Thread Francisco Jerez
Local makes more sense in most places because non-inline function calls are unimplemented anyway. --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_gl

[Mesa-dev] [PATCH 03/15] gallium/tgsi/ureg: Support local temporary emission.

2012-03-22 Thread Francisco Jerez
--- src/gallium/auxiliary/tgsi/tgsi_ureg.c | 54 src/gallium/auxiliary/tgsi/tgsi_ureg.h |3 ++ 2 files changed, 51 insertions(+), 6 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c index 082fec3..6e01

[Mesa-dev] [PATCH 02/15] gallium/tgsi/ureg: Lift the restriction on releasing temporaries over UREG_MAX_TEMP.

2012-03-22 Thread Francisco Jerez
--- src/gallium/auxiliary/tgsi/tgsi_ureg.c | 43 1 file changed, 16 insertions(+), 27 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_ureg.c b/src/gallium/auxiliary/tgsi/tgsi_ureg.c index 75be6cf..082fec3 100644 --- a/src/gallium/auxiliary/tgsi/tgsi_u

[Mesa-dev] [PATCH 01/15] gallium/util: Define util_strchrnul.

2012-03-22 Thread Francisco Jerez
--- src/gallium/auxiliary/util/u_string.h | 24 ++-- 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/gallium/auxiliary/util/u_string.h b/src/gallium/auxiliary/util/u_string.h index cc7992d..ed15981 100644 --- a/src/gallium/auxiliary/util/u_string.h +++ b/s

[Mesa-dev] [PATCH 00/15] gallium: Misc. changes from gallium-compute.

2012-03-22 Thread Francisco Jerez
Most of these changes affect various parts of the gallium auxiliary libraries and they aren't directly related to compute by themselves, but they turned out to be useful for the OpenCL state tracker in one way or another. Patch 12 implements the winsys/loader abstraction that will be used by the C

[Mesa-dev] [PATCH 11/11] gallium/compute: Drop TGSI dependency.

2012-03-22 Thread Francisco Jerez
This is mainly to accomodate AMD's LLVM compiler back-end by letting it bypass the TGSI representation. Other drivers will keep using the common TGSI instruction set for compute shaders. --- src/gallium/docs/source/screen.rst |5 + src/gallium/include/pipe/p_defines.h |1 + src/gall

[Mesa-dev] [PATCH 10/11] gallium/tgsi: Introduce the "LOCAL" register declaration modifier.

2012-03-22 Thread Francisco Jerez
This change will be useful to implement function parameter passing on top of TGSI. As we don't have a proper stack, a register-based calling convention will be used instead, which isn't necessarily a bad thing given that GPUs often have plenty of registers to spare. Using the same register space

[Mesa-dev] [PATCH 09/11] gallium/tgsi: Add support for atomic opcodes.

2012-03-22 Thread Francisco Jerez
--- src/gallium/auxiliary/tgsi/tgsi_info.c | 13 ++- src/gallium/docs/source/tgsi.rst | 164 src/gallium/include/pipe/p_shader_tokens.h | 13 ++- 3 files changed, 188 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.c

[Mesa-dev] [PATCH 08/11] gallium/tgsi: Add support for barriers.

2012-03-22 Thread Francisco Jerez
--- src/gallium/auxiliary/tgsi/tgsi_info.c |4 +++ src/gallium/docs/source/tgsi.rst | 49 src/gallium/include/pipe/p_shader_tokens.h |7 +++- 3 files changed, 59 insertions(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_info.c

[Mesa-dev] [PATCH 07/11] gallium/tgsi: Define system values used to query the compute grid parameters.

2012-03-22 Thread Francisco Jerez
--- src/gallium/auxiliary/tgsi/tgsi_strings.c |6 +- src/gallium/include/pipe/p_shader_tokens.h |6 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_strings.c b/src/gallium/auxiliary/tgsi/tgsi_strings.c index 9e9c0dc..cad46e8 1006

[Mesa-dev] [PATCH 06/11] gallium/tgsi: Add resource write-back support.

2012-03-22 Thread Francisco Jerez
Define a new STORE opcode with a role dual to the LOAD opcode, and add flags to specify that a resource, sampler view, or shader resource binding point is intended for writing. --- src/gallium/auxiliary/tgsi/tgsi_build.c|4 +++ src/gallium/auxiliary/tgsi/tgsi_dump.c |2 ++ src/gall

[Mesa-dev] [PATCH 05/11] gallium/tgsi: Add support for raw resources.

2012-03-22 Thread Francisco Jerez
Normal resource access (e.g. the LOAD TGSI opcode) is supposed to perform a series of conversions to turn the texture data as it's found in memory into the data format that was specified in the resource declaration. In compute programs it's often the case that we only want to access the raw bits a

[Mesa-dev] [PATCH 04/11] gallium/tgsi: Define the TGSI_BUFFER texture target.

2012-03-22 Thread Francisco Jerez
This texture type was already referred to by the documentation but it was never defined. Define it as 0 to match the pipe_texture_target enumeration values. --- src/gallium/auxiliary/tgsi/tgsi_build.c|4 ++-- src/gallium/auxiliary/tgsi/tgsi_strings.c |2 +- src/galliu

[Mesa-dev] [PATCH 03/11] gallium/tgsi: Introduce the compute processor.

2012-03-22 Thread Francisco Jerez
--- src/gallium/auxiliary/tgsi/tgsi_scan.c |3 ++- src/gallium/auxiliary/tgsi/tgsi_strings.c |5 +++-- src/gallium/auxiliary/tgsi/tgsi_strings.h |2 +- src/gallium/auxiliary/tgsi/tgsi_text.c |2 ++ src/gallium/include/pipe/p_shader_tokens.h |1 + 5 files changed, 9 in

[Mesa-dev] [PATCH 02/11] gallium/tgsi: Move interpolation info from tgsi_declaration to a separate token.

2012-03-22 Thread Francisco Jerez
Move Interpolate, Centroid and CylindricalWrap from tgsi_declaration to a separate token -- they only make sense for FS inputs and we need room for other flags in the top-level declaration token. --- src/gallium/auxiliary/draw/draw_pipe_aaline.c |3 +- src/gallium/auxiliary/draw/draw_pipe

[Mesa-dev] [PATCH 01/11] gallium: Basic compute interface.

2012-03-22 Thread Francisco Jerez
Define an interface that exposes the minimal functionality required to implement some of the popular compute APIs. This commit adds entry points to set the grid layout and other state required to keep track of the usual address spaces employed in compute APIs, to bind a compute program, and execut

[Mesa-dev] [RFC][PATCH 00/11] gallium: Basic compute infrastructure.

2012-03-22 Thread Francisco Jerez
This patch series is part of the ongoing work to put together a compute stack on top of Gallium3D. What we have been doing until now to that end could be divided in 6 building blocks: 1/ Gallium API and TGSI changes (this patch series). 2/ Other fixes and additions to the gallium helper libraries

[Mesa-dev] [Bug 47607] [advocacy] Make Anomaly Warzone Earth work with Mesa

2012-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=47607 --- Comment #2 from Sven Arvidsson 2012-03-22 12:39:40 PDT --- (In reply to comment #1) > You can also work around this by setting the force_glsl_extensions_warn > driconf > option. (Either run "force_glsl_extensions_warn=true ./AnomalyWarzoneE

Re: [Mesa-dev] [PATCH] Add support for GL_EXT_unpack_subimage on GLES2

2012-03-22 Thread Neil Roberts
On Thu, 22 Mar 2012 10:56:09 -0700, Ian Romanick wrote: > I'm not a fan of the wrappers generated from APIspec.xml. It allowed > quick implementation of the extra enum rejection required by ES, but > it's a real hassle. I don't track the Mesa development that much but I'm not sure what you're

Re: [Mesa-dev] [PATCH] Add support for GL_EXT_unpack_subimage on GLES2

2012-03-22 Thread Ian Romanick
On 03/21/2012 11:08 AM, Neil Roberts wrote: This extension just permits GL_UNPACK_ROW_LENGTH, GL_UNPACK_SKIP_ROWS and GL_UNPACK_SKIP_PIXELS to be passed to glPixelStore on GLES2 so it is trivial to implement. I'm not a fan of the wrappers generated from APIspec.xml. It allowed quick implement

Re: [Mesa-dev] [PATCH 1/2] glsl: propagate MaxUnrollIterations to the optimizer's loop unroller

2012-03-22 Thread Ian Romanick
On 03/20/2012 04:44 PM, Brian Paul wrote: Instead of the hard-coded value of 32. Note that MaxUnrollIterations defaults to 32 so there's no net change. But the gallium state tracker can override this. --- src/glsl/linker.cpp |4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff

Re: [Mesa-dev] [PATCH 2/2] st/mesa: set MaxUnrollIterations = 64

2012-03-22 Thread Ian Romanick
On 03/21/2012 09:03 AM, Jose Fonseca wrote: - Original Message - On 03/21/2012 05:42 AM, Jose Fonseca wrote: The increase sounds good to me. But 64 seems small. SM3 allows loops up to 255 iterations, and Microsoft HLSL compiler will unroll loops that big. I'm happy to raise the lim

Re: [Mesa-dev] [PATCH 2/2] st/mesa: set MaxUnrollIterations = 64

2012-03-22 Thread Ian Romanick
On 03/21/2012 06:36 AM, Brian Paul wrote: On 03/21/2012 05:42 AM, Jose Fonseca wrote: The increase sounds good to me. But 64 seems small. SM3 allows loops up to 255 iterations, and Microsoft HLSL compiler will unroll loops that big. I'm happy to raise the limit higher. If there's no objection

[Mesa-dev] [Bug 47310] docs/bugs.html triggers quirks mode

2012-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=47310 Brian Paul changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

Re: [Mesa-dev] [PATCH] Add support for GL_EXT_unpack_subimage on GLES2

2012-03-22 Thread Kristian Høgsberg
On Wed, Mar 21, 2012 at 2:08 PM, Neil Roberts wrote: > This extension just permits GL_UNPACK_ROW_LENGTH, GL_UNPACK_SKIP_ROWS > and GL_UNPACK_SKIP_PIXELS to be passed to glPixelStore on GLES2 so it > is trivial to implement. Looks good, this should make GLES2 a lot more useful. Reviewed-by: Krist

Re: [Mesa-dev] [PATCH] drisw: fix image stride calculation for 16-bit.

2012-03-22 Thread Brian Paul
On 03/22/2012 05:56 AM, Dave Airlie wrote: If you ran g-s in 16-bpp we'd do a bunch of memory corruption. now it just misrenders for some other reasons. applies to stable. Signed-off-by: Dave Airlie --- src/gallium/state_trackers/dri/sw/drisw.c |3 ++- 1 file changed, 2 insertions(+), 1

[Mesa-dev] [PATCH] drisw: fix image stride calculation for 16-bit.

2012-03-22 Thread Dave Airlie
If you ran g-s in 16-bpp we'd do a bunch of memory corruption. now it just misrenders for some other reasons. applies to stable. Signed-off-by: Dave Airlie --- src/gallium/state_trackers/dri/sw/drisw.c |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/gallium/state_t

[Mesa-dev] [Bug 47649] fatal error: shared-glapi/glapi_mapi_tmp.h: No such file or directory

2012-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=47649 Fabio Pedretti changed: What|Removed |Added CC||k...@bitplanet.net -- Configure bugmai