Re: [Mesa-dev] [PATCH 0/7] Miscellaneous extension related cleanups

2011-09-09 Thread Marek Olšák
For the 1-6 patches: Reviewed-by: Marek Olšák On Sat, Sep 10, 2011 at 12:39 AM, Ian Romanick wrote: > The previous patch series cleaned up the way DRI drivers enable > extensions.  This series implements a couple more clean ups and > refactors that were enabled by the first series. > >

Re: [Mesa-dev] [PATCH 1/3] i965/fs: Implement texelFetch() on Ironlake and Sandybridge.

2011-09-09 Thread Kenneth Graunke
On 09/09/2011 10:04 AM, Eric Anholt wrote: > On Thu, 8 Sep 2011 15:49:21 -0700, Kenneth Graunke > wrote: >> @@ -861,7 +862,14 @@ fs_visitor::emit_texture_gen5(ir_texture *ir, fs_reg >> dst, fs_reg coordinate, >>inst = emit(FS_OPCODE_TXS, dst); >>break; >> case ir_txf: >> -

Re: [Mesa-dev] [PATCH 3/3] i965/fs: Implement texelFetch() on Gen4.

2011-09-09 Thread Kenneth Graunke
On 09/09/2011 10:07 AM, Eric Anholt wrote: > On Thu, 8 Sep 2011 15:49:23 -0700, Kenneth Graunke > wrote: >> + /* Initialize the rest of u/v/r with 0.0, for safety */ >> + for (int i = ir->coordinate->type->vector_elements; i < 3; i++) { >> + emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mr

Re: [Mesa-dev] [PATCH 01/10] i965/vs: Add support for simple algebraic optimizations.

2011-09-09 Thread Eric Anholt
On Fri, 09 Sep 2011 15:21:14 -0700, Kenneth Graunke wrote: > On 09/08/2011 11:32 PM, Eric Anholt wrote: > > + * Does algebraic optimizations (0 * a = 0, 1 * a = a, a + 0 = a). > > I was going to ask "what about commutativity?"...after all, 0 * a but a > + 0 seems kind of arbitrary...but then I i

Re: [Mesa-dev] [PATCH 0/7] Miscellaneous extension related cleanups

2011-09-09 Thread Eric Anholt
On Fri, 9 Sep 2011 15:39:14 -0700, "Ian Romanick" wrote: > The previous patch series cleaned up the way DRI drivers enable > extensions. This series implements a couple more clean ups and > refactors that were enabled by the first series. 1-6 are: Reviewed-by: Eric Anholt I don't understand

[Mesa-dev] [PATCH] draw/llvm: combine draw_llvm_generate() and draw_llvm_generate_elts()

2011-09-09 Thread Brian Paul
From: Brian Paul These two functions were nearly the same with lots of duplicated code. Now pass in a boolean 'elts' flag and use a few conditionals to implement the linear vs. indexed cases. --- src/gallium/auxiliary/draw/draw_llvm.c | 370 +--- 1 files changed, 97

Re: [Mesa-dev] [PATCH 0/7] Miscellaneous extension related cleanups

2011-09-09 Thread Roland Scheidegger
Am 10.09.2011 00:39, schrieb Ian Romanick: > The previous patch series cleaned up the way DRI drivers enable > extensions. This series implements a couple more clean ups and > refactors that were enabled by the first series. For 1-6 of the series: Reviewed-by: Roland Scheidegger One less useles

Re: [Mesa-dev] [PATCH 2/3] i965/fs: Implement texelFetch() on Ivybridge.

2011-09-09 Thread Ian Romanick
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 09/08/2011 03:49 PM, Kenneth Graunke wrote: > Signed-off-by: Kenneth Graunke --- > src/mesa/drivers/dri/i965/brw_fs_visitor.cpp | 23 > --- 1 files changed, 20 insertions(+), 3 > deletions(-) > > diff --git a/src/mesa/drivers

[Mesa-dev] [PATCH 7/7] glapi: Don't emit remap data for individual extensions

2011-09-09 Thread Ian Romanick
From: Ian Romanick All of the extensions actually supported by Mesa have been remapped by remap.c for a long time. Emitting all of these data structures is just clutter. Drivers that need additional functions remapped, should add 'offset="assign"' to the function definition in the .xml file. T

[Mesa-dev] [PATCH 6/7] mesa: Delete stale comment about MESAX extensions

2011-09-09 Thread Ian Romanick
From: Ian Romanick --- src/mesa/main/extensions.c |2 -- 1 files changed, 0 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index f6eb7ec..7599ea9 100644 --- a/src/mesa/main/extensions.c +++ b/src/mesa/main/extensions.c @@ -72,8 +72,6 @@ st

[Mesa-dev] [PATCH 5/7] mesa: Replace _mesa_rgba_logicop_enabled(ctx) with ctx->Color.ColorLogicOpEnabled

2011-09-09 Thread Ian Romanick
From: Ian Romanick Since GL_EXT_blend_logic_op is removed, _mesa_rgba_logicop_enabled(ctx) just returns ctx->Color.ColorLogicOpEnabled. That seems kind of silly. --- src/mesa/drivers/dri/i915/i830_state.c |2 +- src/mesa/drivers/dri/i915/i915_state.c |2 +- src/mesa/drivers/dr

[Mesa-dev] [PATCH 3/7] mesa: Remove support for GL_EXT_blend_logic_op

2011-09-09 Thread Ian Romanick
From: Ian Romanick Support is removed for four reasons: 1. The implementation was broken with respect to separate blend equations. The GL_EXT_blend_equation_separate spec says: "If EXT_blend_logic_op and EXT_blend_equation_separate are both supported, the logic op blend equation should

[Mesa-dev] [PATCH 4/7] mesa: Use ColorLogicOpEnabled instead of _LogicOpEnabled

2011-09-09 Thread Ian Romanick
From: Ian Romanick Since GL_EXT_blend_logic_op is removed, _LogicOpEnabled and ColorLogicOpEnabled always have the same value. --- src/mesa/drivers/dri/i965/brw_cc.c |2 +- src/mesa/drivers/dri/i965/brw_wm_surface_state.c |2 +- src/mesa/drivers/dri/i965/gen6_cc.c

[Mesa-dev] [PATCH 2/7] st/mesa: Remove support for GL_EXT_blend_logic_op

2011-09-09 Thread Ian Romanick
From: Ian Romanick It was broken, and it isn't really useful anyway. Cc: Brian Paul Cc: Roland Scheidegger Cc: Marek Olšák --- src/mesa/state_tracker/st_atom_blend.c | 10 +- src/mesa/state_tracker/st_extensions.c |1 - 2 files changed, 1 insertions(+), 10 deletions(-) diff --

[Mesa-dev] [PATCH 1/7] mesa: Remove unused _mesa_enable_imaging_extensions function

2011-09-09 Thread Ian Romanick
From: Ian Romanick The last user of this function was driInitExtensions, and that function was removed in a previous commit. --- src/mesa/main/extensions.c | 14 -- src/mesa/main/extensions.h |5 - 2 files changed, 0 insertions(+), 19 deletions(-) diff --git a/src/mesa/mai

[Mesa-dev] [PATCH 0/7] Miscellaneous extension related cleanups

2011-09-09 Thread Ian Romanick
The previous patch series cleaned up the way DRI drivers enable extensions. This series implements a couple more clean ups and refactors that were enabled by the first series. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedes

Re: [Mesa-dev] [PATCH 02/10] i965/vs: Remove dead fields of src_reg.

2011-09-09 Thread Kenneth Graunke
On 09/08/2011 11:32 PM, Eric Anholt wrote: > These were copy and pasted from the FS, and are never used. > --- > src/mesa/drivers/dri/i965/brw_vec4.h |2 -- > 1 files changed, 0 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_vec4.h > b/src/mesa/drivers/dri/i965/

Re: [Mesa-dev] [PATCH 01/10] i965/vs: Add support for simple algebraic optimizations.

2011-09-09 Thread Kenneth Graunke
On 09/08/2011 11:32 PM, Eric Anholt wrote: > + * Does algebraic optimizations (0 * a = 0, 1 * a = a, a + 0 = a). I was going to ask "what about commutativity?"...after all, 0 * a but a + 0 seems kind of arbitrary...but then I implemented it and tried it on shader-db: Total instructions: 39967 ->

Re: [Mesa-dev] Mesa (master): dri: Remove all extension enabling utility functions

2011-09-09 Thread Brian Paul
On 09/09/2011 03:05 PM, Ian Romanick wrote: Module: Mesa Branch: master Commit: 5a175127f38aa02d2b8169b1b6d08a2d4be3d36f URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=5a175127f38aa02d2b8169b1b6d08a2d4be3d36f Author: Ian Romanick Date: Mon Aug 22 16:00:03 2011 -0700 dri: Remove all

Re: [Mesa-dev] [PATCH 01/10] i965/vs: Add support for simple algebraic optimizations.

2011-09-09 Thread Kenneth Graunke
On 09/08/2011 11:32 PM, Eric Anholt wrote: > We generate silly code for array access, and it's easier to generally > support the cleanup than to specifically avoid the bad code in each > place we might generate it. > > Removes 4.6% of instructions from 41.6% of shaders in shader-db, > particularly

[Mesa-dev] Fixup: Use C++ style constant member functions for is_one and is_zero.

2011-09-09 Thread Kenneth Graunke
static bool src_reg_is_zero(src_reg *reg) is very C. A first improvement would be: static bool src_reg_is_zero(const src_reg ®) as this (1) still avoids copying the struct in, (2) actually guarantees the register won't be modified, and (3) doesn't require you to explicitly use the & operator to g

Re: [Mesa-dev] [RFC] [PATCH 2/2] i965: setup the edge flag enable bit in VE on SNB+

2011-09-09 Thread Eric Anholt
On Fri, 9 Sep 2011 13:21:57 +0800, Yuanhan Liu wrote: > On Thu, Sep 08, 2011 at 09:25:30PM -0700, Kenneth Graunke wrote: > > On 09/08/2011 06:59 PM, Yuanhan Liu wrote: > > > On Thu, Sep 08, 2011 at 08:39:46AM -0700, Eric Anholt wrote: > > >> On Thu, 8 Sep 2011 11:00:52 +0800, Yuanhan Liu > > >>

Re: [Mesa-dev] [PATCH 3/3] i965/fs: Implement texelFetch() on Gen4.

2011-09-09 Thread Eric Anholt
On Thu, 8 Sep 2011 15:49:23 -0700, Kenneth Graunke wrote: > + /* Initialize the rest of u/v/r with 0.0, for safety */ > + for (int i = ir->coordinate->type->vector_elements; i < 3; i++) { > + emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + mlen + i * 2), > fs_reg(0.0f)); > + } >

Re: [Mesa-dev] [PATCH 1/3] i965/fs: Implement texelFetch() on Ironlake and Sandybridge.

2011-09-09 Thread Eric Anholt
On Thu, 8 Sep 2011 15:49:21 -0700, Kenneth Graunke wrote: > @@ -861,7 +862,14 @@ fs_visitor::emit_texture_gen5(ir_texture *ir, fs_reg > dst, fs_reg coordinate, >inst = emit(FS_OPCODE_TXS, dst); >break; > case ir_txf: > - assert(!"GLSL 1.30 features unsupported"); > +

Re: [Mesa-dev] [PATCH 09/10] i965: When only BFC is written, use BFC as the color.

2011-09-09 Thread Paul Berry
On 8 September 2011 23:32, Eric Anholt wrote: > Fixes piglit vertex-program-two-side back. > --- > src/mesa/drivers/dri/i965/gen6_sf_state.c |9 + > 1 files changed, 9 insertions(+), 0 deletions(-) > > diff --git a/src/mesa/drivers/dri/i965/gen6_sf_state.c > b/src/mesa/drivers/dri/i9

Re: [Mesa-dev] [PATCH 08/10] i965: Respect the VERTEX_PROGRAM_TWO_SIDE flag for shaders.

2011-09-09 Thread Paul Berry
On 8 September 2011 23:32, Eric Anholt wrote: > Fixes piglit: > vertex-program-two-side > vertex-program-two-side primary > vertex-program-two-side secondary > --- > src/mesa/drivers/dri/i965/brw_vs_constval.c |6 +++--- > src/mesa/drivers/dri/i965/gen6_sf_state.c |5 +++-- > src/mesa/

Re: [Mesa-dev] [PATCH 1/3] mesa: Add support for Begin/EndConditionalRender in display lists.

2011-09-09 Thread Brian Paul
On 09/09/2011 12:07 AM, Eric Anholt wrote: Fixes piglit nv_conditional_render-dlist. --- src/mesa/main/dlist.c | 45 + 1 files changed, 45 insertions(+), 0 deletions(-) For the series: Reviewed-by: Brian Paul

Re: [Mesa-dev] [PATCH 06/13] glsl_to_tgsi: fix shadow2DArray comparison

2011-09-09 Thread Marek Olšák
v2: adjust the assertion, add a comment --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 9394bea..4a5f6a2 100644 ---

Re: [Mesa-dev] [PATCH 05/13] ir_to_mesa: fix shadow2DArray comparison

2011-09-09 Thread Marek Olšák
The depth should be in W. v2: adjust the assertion, add a comment --- src/mesa/program/ir_to_mesa.cpp | 17 ++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 9813c4a..69a84de 100644 --- a/src

[Mesa-dev] [Bug 40633] [wayland-drm] struct wl_visual has been dropped

2011-09-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40633 Benjamin Franzke changed: What|Removed |Added Status|NEW |RESOLVED Resolution|

[Mesa-dev] [PATCH 3/3] st/dri/sw: Implement texture_from_pixmap

2011-09-09 Thread Benjamin Franzke
This is a cleanup of commit 02f1b50987c0d24da3dcc36dbb44821c20d0660c. Update tex buffer using a dri_drawable hook from implemented in sw/drisw.c. This saves us the duplication of dri_drawable.c. CC: Stuart Abercrombie CC: Stéphane Marchesin --- .../state_trackers/dri/common/dri_drawable.c

[Mesa-dev] [PATCH 2/3] Revert "Duplicate state_tracker/dri/sw/dri_drawable.c"

2011-09-09 Thread Benjamin Franzke
This reverts commit 569bde1fa7d03fb7688d0d391b32e61e857ad44e. CC: Stuart Abercrombie CC: Stéphane Marchesin --- src/gallium/state_trackers/dri/sw/dri_drawable.c | 270 +- 1 files changed, 1 insertions(+), 269 deletions(-) mode change 100644 => 12 src/gallium/state_trac

[Mesa-dev] [PATCH 1/3] Revert "state_trackers/dri/sw: Implement texture_from_pixmap."

2011-09-09 Thread Benjamin Franzke
This reverts commit 02f1b50987c0d24da3dcc36dbb44821c20d0660c. CC: Stuart Abercrombie CC: Stéphane Marchesin --- src/gallium/state_trackers/dri/sw/dri_drawable.c | 50 +++--- 1 files changed, 7 insertions(+), 43 deletions(-) diff --git a/src/gallium/state_trackers/dri/sw/dri_d

[Mesa-dev] [Bug 40729] d3d1x build error: any interface changes lately?

2011-09-09 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=40729 Chia-I Wu changed: What|Removed |Added Status|NEW |RESOLVED Resolution|