[Mesa-dev] [PATCH] gallium/u_blitter: Remove the overlapped blit assert from util_blitter_blit_generic().

2012-12-13 Thread Henri Verbeet
This is used by st_BlitFramebuffer() / r600_blit(), and ARB_fbo allows overlapped blits, even though the result is undefined. No piglit regressions on r600g / CYPRESS. --- src/gallium/auxiliary/util/u_blitter.c | 28 1 files changed, 0 insertions(+), 28 deletions(-)

[Mesa-dev] [PATCH 8/8] egl/wayland: Remove kooky flush code

2012-12-13 Thread Kristian Høgsberg
We used to have to jump through hoops to call glFlush at swap buffer time, but the flush extension made that unnecessary a long time ago. --- src/egl/drivers/dri2/platform_wayland.c |6 -- 1 file changed, 6 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drive

[Mesa-dev] [PATCH 7/8] egl/wayland: Implement EGL_EXT_buffer_age

2012-12-13 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/platform_wayland.c | 21 + 1 file changed, 21 insertions(+) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index 3c6bdd9..6f8f3b0 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/driv

[Mesa-dev] [PATCH 6/8] egl/wayland: Pull color buffers from dri2_surf->color_buffers pool

2012-12-13 Thread Kristian Høgsberg
We used to keep the color buffers in the dri_buffers array and swap __DRI_BUFFER_BACK_LEFT and __DRI_BUFFER_FRONT_LEFT around there and swap third_buffer in in case we needed to triple buffer. That gets a little fidgety with all the swaps, so lets use the color_buffers pool like the gbm platform d

[Mesa-dev] [PATCH 5/8] egl/wayland: Remove confusing comment about front buffer rendering

2012-12-13 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/platform_wayland.c | 12 1 file changed, 12 deletions(-) diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c index ba54286..260a80d 100644 --- a/src/egl/drivers/dri2/platform_wayland.c +++ b/src/egl/drivers/dri2/p

[Mesa-dev] [PATCH 4/8] egl_dri2: Remove unused struct dri2_egl_buffer from header file

2012-12-13 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/egl_dri2.h |5 - 1 file changed, 5 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index fa2a9f3..eb8c06e 100644 --- a/src/egl/drivers/dri2/egl_dri2.h +++ b/src/egl/drivers/dri2/egl_dri2.h @@ -205,11 +205,6 @@ struct dri

[Mesa-dev] [PATCH 3/8] egl/gbm: Implement EGL_EXT_buffer_age

2012-12-13 Thread Kristian Høgsberg
--- src/egl/drivers/dri2/egl_dri2.h |1 + src/egl/drivers/dri2/platform_drm.c | 23 +++ 2 files changed, 24 insertions(+) diff --git a/src/egl/drivers/dri2/egl_dri2.h b/src/egl/drivers/dri2/egl_dri2.h index be359d3..fa2a9f3 100644 --- a/src/egl/drivers/dri2/egl_dri2.

[Mesa-dev] [PATCH 2/8] egl: Add extension infrastructure for EGL_EXT_buffer_age

2012-12-13 Thread Kristian Høgsberg
--- src/egl/main/eglapi.h |6 ++ src/egl/main/egldisplay.h |1 + src/egl/main/eglmisc.c|1 + src/egl/main/eglsurface.c |8 4 files changed, 16 insertions(+) diff --git a/src/egl/main/eglapi.h b/src/egl/main/eglapi.h index ec3ad7e..85b8f1a 100644 --- a/src/egl/

[Mesa-dev] [PATCH 1/8] egl: Update to revision 19987 of eglext.h

2012-12-13 Thread Kristian Høgsberg
This pulls in EGL_EXT_buffer_age. --- include/EGL/eglext.h | 72 ++ 1 file changed, 67 insertions(+), 5 deletions(-) diff --git a/include/EGL/eglext.h b/include/EGL/eglext.h index a5c9009..b2b5a80 100644 --- a/include/EGL/eglext.h +++ b/include/EG

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

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

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

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

[Mesa-dev] r600g: hyperz support

2012-12-13 Thread j . glisse
Ok so this time it should be it. Following patch seems to behave properly. I am still in process of checking again that they don't regress anything, i should be done monday or tuesday. If there is no objection by them i will commit them. Note that you need kernel patch for those and that by defaul

Re: [Mesa-dev] [PATCH v2 10/12] gallium: Disable varying packing on hardware with <=8 texture indirections.

2012-12-13 Thread Marek Olšák
For the patches 9 and 10: Reviewed-by: Marek Olšák Marek On Thu, Dec 13, 2012 at 10:58 PM, Paul Berry wrote: > In practice this will disable varying packing on R300, R400, i915g, > and nv30. > > Marek Olšák > --- > src/mesa/state_tracker/st_extensions.c | 14 ++ > 1 file changed,

[Mesa-dev] [PATCH v2 12/12] glsl/linker: Pack between varyings.

2012-12-13 Thread Paul Berry
This patch implements varying packing between varyings. Previously, each varying occupied components 0 through N-1 of its assigned varying slot, so there was no way to pack two varyings into the same slot. For example, if the varyings were a float, a vec2, a vec3, and another vec2, they would be

[Mesa-dev] [PATCH v2 10/12] gallium: Disable varying packing on hardware with <=8 texture indirections.

2012-12-13 Thread Paul Berry
In practice this will disable varying packing on R300, R400, i915g, and nv30. Marek Olšák --- src/mesa/state_tracker/st_extensions.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/src/mesa/state_tracker/st_extensions.c b/src/mesa/state_tracker/st_extensions.c index 726d868.

[Mesa-dev] [PATCH v2 11/12] glsl/linker: Pack within compound varyings.

2012-12-13 Thread Paul Berry
This patch implements varying packing within varyings that are composed of multiple vectors of size less than 4 (e.g. arrays of vec2's, or matrices with height less than 4). Previously, such varyings used up a full 4-wide varying slot for each constituent vector, meaning that some of the component

[Mesa-dev] [PATCH v2 09/12] mesa: Add an option so driver can opt out of varying packing.

2012-12-13 Thread Paul Berry
On hardware that supports a limited number of texture indirections, varying packing will comsume an extra texture indirection, since ALU operations are needed in the fragment shader to unpack the varyings before any texturing can be done. This patch introduces a new driver option, ctx->Const.Disab

[Mesa-dev] [PATCH v2 08/12] glsl: Add a lowering pass for packing varyings.

2012-12-13 Thread Paul Berry
This lowering pass generates GLSL code that manually packs varyings into vec4 slots, for the benefit of back-ends that don't support packed varyings natively. No functional change--the lowering pass is not yet used. Reviewed-by: Eric Anholt v2: Don't use ir_hierarchical_visitor--just loop over

[Mesa-dev] [PATCH v2 07/12] glsl/linker: Sort varyings by packing class, then vector size.

2012-12-13 Thread Paul Berry
This patch paves the way for varying packing by adding a sorting step before varying assignment, which sorts the varyings into an order that increases the likelihood of being able to find an efficient packing. First, varyings are sorted into "packing classes" by considering attributes that can't b

[Mesa-dev] [PATCH v2 06/12] glsl/linker: Subdivide the first phase of varying assignment.

2012-12-13 Thread Paul Berry
This patch further subdivides the loop that assigns varying locations into two phases: one phase to match up the varyings between shader stages, and one phase to assign them varying locations. In between the two phases the matched varyings are stored in a new data structure called varying_matches.

[Mesa-dev] [PATCH v2 05/12] glsl/linker: Defer recording transform feedback locations.

2012-12-13 Thread Paul Berry
This patch subdivides the loop that assigns varying locations into two phases: one phase to match up varyings between shader stages (and assign them varying locations), and a second phase to record the varying assignments for use by transform feedback. This paves the way for varying packing, which

[Mesa-dev] [PATCH v2 04/12] glsl: Create a field to store fractional varying locations.

2012-12-13 Thread Paul Berry
Currently, the location of each varying is recorded in ir_variable as a multiple of the size of a vec4. In order to pack varyings, we need to be able to record, e.g. that a vec2 is stored in the second half of a varying slot rather than the first half. This patch introduces a field ir_variable::l

[Mesa-dev] [PATCH v2 03/12] glsl/linker: Make separate ir_variable field to mean "unmatched".

2012-12-13 Thread Paul Berry
Previously, the linker used a value of -1 in ir_variable::location to denote a generic input or output of the shader that had not yet been matched up to a variable in another pipeline stage. This patch introduces a new ir_variable field, is_unmatched_generic_inout, for that purpose. In future pat

[Mesa-dev] [PATCH v2 02/12] glsl/linker: Always invalidate shader ins/outs, even in corner cases.

2012-12-13 Thread Paul Berry
Previously, link_invalidate_variable_locations() was only called during assign_attribute_or_color_locations() and assign_varying_locations(). This meant that in the corner case when there was only a vertex shader, and varyings were being captured by transform feedback, link_invalidate_variable_loc

[Mesa-dev] [PATCH v2 01/12] glsl/lower_clip_distance: Update symbol table.

2012-12-13 Thread Paul Berry
This patch modifies the clip distance lowering pass so that the new symbol it generates (glClipDistanceMESA) is added to the shader's symbol table. This will allow a later patch to modify the linker so that it finds transform feedback varyings using the symbol table rather than having to iterate t

[Mesa-dev] [PATCH v2 00/12] glsl: Implement varying packing.

2012-12-13 Thread Paul Berry
This is v2 of my patch series to implement varying packing. v1 was already reviewed by Eric Anholt, so at this point I'm primarily looking for confirmation that the changes look good. Other than the changes that Eric recommended, what's new in this version is: - I've added a constant ctx->Const.

Re: [Mesa-dev] [PATCH 00/10] glsl: Implement varying packing.

2012-12-13 Thread Paul Berry
On 13 December 2012 03:44, Ian Romanick wrote: > Patches 1 through 4 are > > Reviewed-by: Ian Romanick > > I'll try to make it through the rest tomorrow. I have skimmed them, and > it looks mostly okay. I thing a good follow-up patch will be to pull a > bunch of the new stuff out to a new file

Re: [Mesa-dev] [PATCH] build: Fix AX_PROG_{CC, CXX}_FOR_BUILD macros

2012-12-13 Thread Thierry Reding
On Thu, Dec 13, 2012 at 10:56:01AM -0800, Matt Turner wrote: > On Wed, Nov 21, 2012 at 2:34 AM, Thierry Reding > wrote: > > On Tue, Nov 20, 2012 at 08:29:04PM +0100, Thierry Reding wrote: > >> On Tue, Nov 20, 2012 at 11:07:03AM -0800, Matt Turner wrote: > >> > On Tue, Nov 20, 2012 at 7:50 AM, Thie

Re: [Mesa-dev] [PATCH v2 6/13] mesa: Allow glGet* queries on ARB_transform_feedback2 data in ES 3

2012-12-13 Thread Ian Romanick
These look great to me. The whole series is Reviewed-by: Ian Romanick On 12/13/2012 10:47 AM, Matt Turner wrote: Fixes the transform_feedback2_init_defaults test from es3conform. The ES 3 spec lists these as TRANSFORM_FEEDBACK_PAUSED and TRANSFORM_FEEDBACK_ACTIVE. --- src/mesa/main/get.c

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

2012-12-13 Thread Vincent Lejeune
--- src/gallium/drivers/r600/eg_asm.c| 2 ++ src/gallium/drivers/r600/r600_asm.c | 2 ++ src/gallium/drivers/r600/r600_llvm.c | 21 + src/gallium/drivers/r600/r600_shader.c | 3 ++- src/gallium/drivers/radeon/radeon_llvm.h | 1 + 5 files changed, 28 inser

Re: [Mesa-dev] [PATCH 4/6] AMDGPU: New control flow for SI v2

2012-12-13 Thread Tom Stellard
On Thu, Dec 13, 2012 at 09:10:20PM +0100, Michel Dänzer wrote: > On Die, 2012-12-11 at 18:43 +0100, Christian König wrote: > > This patch replaces the control flow handling with a new > > pass which structurize the graph before transforming it to > > machine instruction. This has a couple of diffe

Re: [Mesa-dev] [PATCH 4/6] AMDGPU: New control flow for SI v2

2012-12-13 Thread Michel Dänzer
On Die, 2012-12-11 at 18:43 +0100, Christian König wrote: > This patch replaces the control flow handling with a new > pass which structurize the graph before transforming it to > machine instruction. This has a couple of different advantages > and currently fixes 20 piglit tests without a single

Re: [Mesa-dev] [PATCH] android: build fix for libmesa_glsl_utils

2012-12-13 Thread Negreanu, Adrian M
On Thu, Dec 13, 2012 at 10:56 AM, Tapani Pälli wrote: > hash_table.c compilation requires ralloc.h include path > > Signed-off-by: Tapani Pälli > works for me > --- > src/mesa/Android.libmesa_glsl_utils.mk | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/mesa/Android.libmesa_

Re: [Mesa-dev] [PATCH] build: Fix AX_PROG_{CC, CXX}_FOR_BUILD macros

2012-12-13 Thread Matt Turner
On Wed, Nov 21, 2012 at 2:34 AM, Thierry Reding wrote: > On Tue, Nov 20, 2012 at 08:29:04PM +0100, Thierry Reding wrote: >> On Tue, Nov 20, 2012 at 11:07:03AM -0800, Matt Turner wrote: >> > On Tue, Nov 20, 2012 at 7:50 AM, Thierry Reding >> > wrote: >> > > Override the cross_compiling and ac_tool

[Mesa-dev] [PATCH v2 12/13] mesa: Support querying GL_MAX_ELEMENT_INDEX in ES 3

2012-12-13 Thread Matt Turner
The ES 3 spec says that the minumum allowable value is 2^24-1, but the GL 4.3 and ARB_ES3_compatibility specs require 2^32-1, so return 2^32-1. Fixes es3conform's element_index_uint_constants test. --- src/mesa/main/context.c |3 +++ src/mesa/main/get.c |6 ++ sr

[Mesa-dev] [PATCH v2 11/13] mesa: De-duplicate ES2 queries

2012-12-13 Thread Matt Turner
>From GL/GLES/GL_CORE and GLES2 -> GL/GL_CORE/GLES2. Yes, we really were exposing ES2_compatibility queries on ES 1. --- src/mesa/main/get.c |6 +- src/mesa/main/get_hash_params.py | 16 ++-- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/src/m

[Mesa-dev] [PATCH v2 6/13] mesa: Allow glGet* queries on ARB_transform_feedback2 data in ES 3

2012-12-13 Thread Matt Turner
Fixes the transform_feedback2_init_defaults test from es3conform. The ES 3 spec lists these as TRANSFORM_FEEDBACK_PAUSED and TRANSFORM_FEEDBACK_ACTIVE. --- src/mesa/main/get.c |7 ++- src/mesa/main/get_hash_params.py | 10 +- 2 files changed, 11 insertions(+), 6 del

Re: [Mesa-dev] Mesa (gles3): mesa/uniform_query: Don' t write to *params if there is an error

2012-12-13 Thread Matt Turner
On Thu, Dec 13, 2012 at 3:11 AM, Ian Romanick wrote: > On 12/08/2012 11:25 AM, Matt Turner wrote: >> >> Module: Mesa >> Branch: gles3 >> Commit: d7063e8ee25963d08de2cd4d4ba61260c8eca9ca >> URL: >> http://cgit.freedesktop.org/mesa/mesa/commit/?id=d7063e8ee25963d08de2cd4d4ba61260c8eca9ca >> >> Autho

Re: [Mesa-dev] [PATCH] draw/llvmpipe: fix transform feedback position + enable other extensions

2012-12-13 Thread Roland Scheidegger
Am 13.12.2012 11:26, schrieb Dave Airlie: > From: Dave Airlie > > This builds on the previous draw/softpipe patch. > > So llvmpipe does streamout calls after clip/viewport stages, > but we have the pre-clip position stored for later use, so > when we are doing transform feedback, and its the pos

Re: [Mesa-dev] [PATCH 00/10] glsl: Implement varying packing.

2012-12-13 Thread Ian Romanick
Patches 1 through 4 are Reviewed-by: Ian Romanick I'll try to make it through the rest tomorrow. I have skimmed them, and it looks mostly okay. I thing a good follow-up patch will be to pull a bunch of the new stuff out to a new file link_varyings.cpp or something. linker.cpp is getting a

Re: [Mesa-dev] Mesa (gles3): mesa/uniform_query: Don' t write to *params if there is an error

2012-12-13 Thread Ian Romanick
On 12/08/2012 11:25 AM, Matt Turner wrote: Module: Mesa Branch: gles3 Commit: d7063e8ee25963d08de2cd4d4ba61260c8eca9ca URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=d7063e8ee25963d08de2cd4d4ba61260c8eca9ca Author: Matt Turner Date: Fri Dec 7 16:32:30 2012 -0800 mesa/uniform_quer

Re: [Mesa-dev] Mesa (gles3): mesa: print unsigned values with %u

2012-12-13 Thread Ian Romanick
On 12/08/2012 11:25 AM, Matt Turner wrote: Module: Mesa Branch: gles3 Commit: 6b8a9c43bb87f214782c280fa96847992032891b URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=6b8a9c43bb87f214782c280fa96847992032891b Author: Matt Turner Date: Fri Dec 7 14:26:04 2012 -0800 mesa: print unsig

[Mesa-dev] [PATCH] draw/llvmpipe: fix transform feedback position + enable other extensions

2012-12-13 Thread Dave Airlie
From: Dave Airlie This builds on the previous draw/softpipe patch. So llvmpipe does streamout calls after clip/viewport stages, but we have the pre-clip position stored for later use, so when we are doing transform feedback, and its the position vertex grab the vertex from the stored pre clip po

[Mesa-dev] [PATCH] android: build fix for libmesa_glsl_utils

2012-12-13 Thread Tapani Pälli
hash_table.c compilation requires ralloc.h include path Signed-off-by: Tapani Pälli --- src/mesa/Android.libmesa_glsl_utils.mk | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/Android.libmesa_glsl_utils.mk b/src/mesa/Android.libmesa_glsl_utils.mk index 9beeda5..9c5f349 100644 --