Re: [Mesa-dev] [PATCH 01/29] mesa: Add an implementation of a master convert function.

2014-11-21 Thread Iago Toral
On Thu, 2014-11-20 at 11:10 -0800, Jason Ekstrand wrote: > > > On Thu, Nov 20, 2014 at 1:48 AM, Iago Toral wrote: > On Wed, 2014-11-19 at 11:28 -0800, Jason Ekstrand wrote: > > By and large, this looks good to me. Most of my comments > are cosmetic > > or suggest

Re: [Mesa-dev] [PATCH 01/29] mesa: Add an implementation of a master convert function.

2014-11-21 Thread Michel Dänzer
On 21.11.2014 17:07, Iago Toral wrote: On Thu, 2014-11-20 at 11:10 -0800, Jason Ekstrand wrote: On Thu, Nov 20, 2014 at 1:48 AM, Iago Toral wrote: Just out of curiosity: is there any gain in avoiding the GL types in the conversion code? As I said in my reply to Jose

Re: [Mesa-dev] [PATCH 01/29] mesa: Add an implementation of a master convert function.

2014-11-21 Thread Iago Toral
On Fri, 2014-11-21 at 17:40 +0900, Michel Dänzer wrote: > On 21.11.2014 17:07, Iago Toral wrote: > > On Thu, 2014-11-20 at 11:10 -0800, Jason Ekstrand wrote: > >> On Thu, Nov 20, 2014 at 1:48 AM, Iago Toral wrote: > >> Just out of curiosity: is there any gain in avoiding the GL > >>

[Mesa-dev] [PATCH] i965: Make Gen4-5 push constants call _mesa_load_state_parameters too.

2014-11-21 Thread Kenneth Graunke
In commit 5e37a2a4a8a, I made the pull constant code stop calling _mesa_load_state_parameters() when there were no pull parameters. This worked fine on Gen6+ because the push constant code also called it if there were any push constants. However, the Gen4-5 push constant code wasn't doing this.

Re: [Mesa-dev] [PATCH V2] mesa: Permanently enable features supported by target CPU at compile time.

2014-11-21 Thread Siavash Eliasi
On 11/10/2014 04:28 AM, Emil Velikov wrote: I'm not sure did you just said that you've checked it, or that's what it ought to do ? There is a reason why I'm so picky - this bizarre (as one might call it) setup is just the tip of the iceberg when it comes to people building mesa themselves. Wou

Re: [Mesa-dev] Require micro-benchmarks for performance optimization oriented patches

2014-11-21 Thread Timothy Arceri
On Thu, 2014-11-20 at 18:46 +0200, Eero Tamminen wrote: > Hi, > > > Honestly, I think I'm okay with our usual metrics like: > > - Increased FPS in a game or benchmark > > - Reduced number of instructions or memory accesses in > a shader program > > - Reduced memory consumption > > - Sign

[Mesa-dev] [Bug 82585] geometry shader with optional out variable segfaults

2014-11-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=82585 Kenneth Graunke changed: What|Removed |Added Component|Mesa core |glsl-compiler Assignee|mesa-

[Mesa-dev] [Bug 82585] geometry shader with optional out variable segfaults

2014-11-21 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=82585 --- Comment #8 from Kenneth Graunke --- This is a separate shader objects bug, and is probably related to 79783. If you modify the demo application to not use SSO, it works fine. -- You are receiving this mail because: You are the assignee for

Re: [Mesa-dev] [PATCH 03/29] mesa: Do not assert on integer<->non-integer direct pack/unpack fast paths

2014-11-21 Thread Iago Toral
On Thu, 2014-11-20 at 21:35 -0800, Jason Ekstrand wrote: > > > On Thu, Nov 20, 2014 at 9:33 PM, Jason Ekstrand > wrote: > > > On Thu, Nov 20, 2014 at 12:29 AM, Iago Toral > wrote: > It is explained here: > https://bugs.freedeskto

Re: [Mesa-dev] [PATCH 00/20] Auto-generate pack/unpack functions

2014-11-21 Thread Samuel Iglesias Gonsálvez
On Wed, 2014-11-19 at 17:09 +0900, Michel Dänzer wrote: > On 18.11.2014 17:43, Iago Toral Quiroga wrote: > > > > For software drivers we worked with a trimmed set of piglit tests (related > > to > > format conversion), ~5700 tests selected with the following filter: > > > > -t format -t color -t t

Re: [Mesa-dev] [PATCH] i965: Make Gen4-5 push constants call _mesa_load_state_parameters too.

2014-11-21 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] i965/fs: Remove try_replace_with_sel().

2014-11-21 Thread Matt Turner
On Tue, Nov 11, 2014 at 9:41 AM, Matt Turner wrote: > The rest of our backend optimizations have replaced the need for this > since it was written. > > instructions in affected programs: 30626 -> 30564 (-0.20%) > > Hurts a small number of CSGO shaders by one instruction, but helps even > more.

[Mesa-dev] [PATCH 1/3] glapi: Remove dead extension_helper.py.

2014-11-21 Thread Matt Turner
Dead since commit 3d16088f. --- src/mapi/glapi/gen/Makefile.am | 2 - src/mapi/glapi/gen/extension_helper.py | 324 - 2 files changed, 326 deletions(-) delete mode 100644 src/mapi/glapi/gen/extension_helper.py diff --git a/src/mapi/glapi/gen/Makefile.am

[Mesa-dev] [PATCH 3/3] glapi: Remove dead mesadef.py.

2014-11-21 Thread Matt Turner
Dead since commit 4e120c97, in which apiparser (which mesadef.py imports) was removed. --- src/mapi/glapi/gen/Makefile.am | 1 - src/mapi/glapi/gen/mesadef.py | 215 - 2 files changed, 216 deletions(-) delete mode 100644 src/mapi/glapi/gen/mesadef.py di

[Mesa-dev] [PATCH 2/3] glapi: Remove dead gl_offsets.py.

2014-11-21 Thread Matt Turner
Dead since commit 07b85457. --- src/mapi/glapi/gen/gl_offsets.py | 120 --- 1 file changed, 120 deletions(-) delete mode 100644 src/mapi/glapi/gen/gl_offsets.py diff --git a/src/mapi/glapi/gen/gl_offsets.py b/src/mapi/glapi/gen/gl_offsets.py deleted file mode

Re: [Mesa-dev] [PATCH 1/3] glapi: Remove dead extension_helper.py.

2014-11-21 Thread Ilia Mirkin
On Fri, Nov 21, 2014 at 1:35 PM, Matt Turner wrote: > Dead since commit 3d16088f. > --- > src/mapi/glapi/gen/Makefile.am | 2 - > src/mapi/glapi/gen/extension_helper.py | 324 > - > 2 files changed, 326 deletions(-) > delete mode 100644 src/mapi/glapi/g

Re: [Mesa-dev] [PATCH 3/3] glapi: Remove dead mesadef.py.

2014-11-21 Thread Ilia Mirkin
What about src/mesa/drivers/windows/gdi/mesa.def -- it claims to be generated by mesadef.py. I have no idea what it is, but it should either also be deleted, or the mesadef.py script kept around. On Fri, Nov 21, 2014 at 1:35 PM, Matt Turner wrote: > Dead since commit 4e120c97, in which apiparser

Re: [Mesa-dev] [PATCH 1/3] glapi: Remove dead extension_helper.py.

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 10:40 AM, Ilia Mirkin wrote: > On Fri, Nov 21, 2014 at 1:35 PM, Matt Turner wrote: >> Dead since commit 3d16088f. >> --- >> src/mapi/glapi/gen/Makefile.am | 2 - >> src/mapi/glapi/gen/extension_helper.py | 324 >> - >> 2 files ch

Re: [Mesa-dev] [PATCH 3/3] glapi: Remove dead mesadef.py.

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 10:42 AM, Ilia Mirkin wrote: > What about src/mesa/drivers/windows/gdi/mesa.def -- it claims to be > generated by mesadef.py. I have no idea what it is, but it should > either also be deleted, or the mesadef.py script kept around. Good point. Maybe Brian knows (Cc'd).

[Mesa-dev] [PATCH] glsl: Remove unused ast copy constructors.

2014-11-21 Thread Matt Turner
These were added in commits a760c738 and 43757135 to be used in implementing C-style aggregate initializers (commit 1b0d6aef). Paul rewrote that code in commit 0da1a2cc to use GLSL types, rather than AST types, leaving these copy constructors unused. Tested by making them private and providing no

[Mesa-dev] [PATCH 1/2] i965: Extract depctrl hazards

2014-11-21 Thread Ben Widawsky
Move this to a separate function so that we can begin to add other little caveats without making too big a mess. NOTE: There is some desire to improve this function eventually, but we need to fix a bug first. Signed-off-by: Ben Widawsky --- src/mesa/drivers/dri/i965/brw_vec4.cpp | 42 ++

[Mesa-dev] [PATCH 2/2] i965/gen8: Handle the MUL dest hazard exception

2014-11-21 Thread Ben Widawsky
Fix one of the few cases where we can't reliable touch the destination hazard bits. I am explicitly doing this patch individually so it is easy to backport. I was tempted to do this patch before the previous patch which reorganized the code, but I believe even doing that first, this is still easy t

Re: [Mesa-dev] [PATCH 2/2] i965/gen8: Handle the MUL dest hazard exception

2014-11-21 Thread Ben Widawsky
On Fri, Nov 21, 2014 at 10:50:31AM -0800, Ben Widawsky wrote: > Fix one of the few cases where we can't reliable touch the destination hazard > bits. I am explicitly doing this patch individually so it is easy to > backport. I > was tempted to do this patch before the previous patch which reorgani

Re: [Mesa-dev] [PATCH] glsl: Remove unused ast copy constructors.

2014-11-21 Thread Ilia Mirkin
On Fri, Nov 21, 2014 at 1:47 PM, Matt Turner wrote: > These were added in commits a760c738 and 43757135 to be used in > implementing C-style aggregate initializers (commit 1b0d6aef). Paul > rewrote that code in commit 0da1a2cc to use GLSL types, rather than > AST types, leaving these copy construc

Re: [Mesa-dev] [PATCH 02/29] mesa: Set normalized=true for float array formats.

2014-11-21 Thread Jason Ekstrand
On Thu, Nov 20, 2014 at 11:33 PM, Iago Toral wrote: > On Thu, 2014-11-20 at 10:40 -0800, Jason Ekstrand wrote: > > > > > > On Wed, Nov 19, 2014 at 11:24 PM, Iago Toral > > wrote: > > Hi Jason, > > > > we discussed this some weeks ago actually, the detailed > > explanation

Re: [Mesa-dev] [PATCH] glsl: Remove unused ast copy constructors.

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 10:52 AM, Ilia Mirkin wrote: > On Fri, Nov 21, 2014 at 1:47 PM, Matt Turner wrote: >> These were added in commits a760c738 and 43757135 to be used in >> implementing C-style aggregate initializers (commit 1b0d6aef). Paul >> rewrote that code in commit 0da1a2cc to use GLSL

Re: [Mesa-dev] [PATCH] glsl: Remove unused ast copy constructors.

2014-11-21 Thread Ilia Mirkin
On Fri, Nov 21, 2014 at 1:56 PM, Matt Turner wrote: > On Fri, Nov 21, 2014 at 10:52 AM, Ilia Mirkin wrote: >> On Fri, Nov 21, 2014 at 1:47 PM, Matt Turner wrote: >>> These were added in commits a760c738 and 43757135 to be used in >>> implementing C-style aggregate initializers (commit 1b0d6aef).

Re: [Mesa-dev] [PATCH 1/2] i965: Extract depctrl hazards

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 10:50 AM, Ben Widawsky wrote: > Move this to a separate function so that we can begin to add other little > caveats without making too big a mess. > > NOTE: There is some desire to improve this function eventually, but we need to > fix a bug first. > > Signed-off-by: Ben Wi

Re: [Mesa-dev] [PATCH 2/2] i965/gen8: Handle the MUL dest hazard exception

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 10:50 AM, Ben Widawsky wrote: > Fix one of the few cases where we can't reliable touch the destination hazard > bits. I am explicitly doing this patch individually so it is easy to > backport. I > was tempted to do this patch before the previous patch which reorganized the

Re: [Mesa-dev] [PATCH 1/2] i965: Extract depctrl hazards

2014-11-21 Thread Ben Widawsky
On Fri, Nov 21, 2014 at 11:04:18AM -0800, Matt Turner wrote: > On Fri, Nov 21, 2014 at 10:50 AM, Ben Widawsky > wrote: > > Move this to a separate function so that we can begin to add other little > > caveats without making too big a mess. > > > > NOTE: There is some desire to improve this functio

Re: [Mesa-dev] [PATCH 2/2] i965/gen8: Handle the MUL dest hazard exception

2014-11-21 Thread Ben Widawsky
On Fri, Nov 21, 2014 at 11:09:44AM -0800, Matt Turner wrote: > On Fri, Nov 21, 2014 at 10:50 AM, Ben Widawsky > wrote: > > Fix one of the few cases where we can't reliable touch the destination > > hazard > > bits. I am explicitly doing this patch individually so it is easy to > > backport. I >

Re: [Mesa-dev] [PATCH 1/2] i965: Extract depctrl hazards

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 11:18 AM, Ben Widawsky wrote: > On Fri, Nov 21, 2014 at 11:04:18AM -0800, Matt Turner wrote: >> On Fri, Nov 21, 2014 at 10:50 AM, Ben Widawsky >> wrote: >> > +*/ + return !(inst->mlen || inst->predicate || inst->is_math()); >> >> The return value is a ! expression, a

Re: [Mesa-dev] [PATCH 3/3] glapi: Remove dead mesadef.py.

2014-11-21 Thread Jose Fonseca
On 21/11/14 18:46, Matt Turner wrote: On Fri, Nov 21, 2014 at 10:42 AM, Ilia Mirkin wrote: What about src/mesa/drivers/windows/gdi/mesa.def -- it claims to be generated by mesadef.py. I have no idea what it is, but it should either also be deleted, or the mesadef.py script kept around. Good p

Re: [Mesa-dev] [PATCH] i965: Make Gen4-5 push constants call _mesa_load_state_parameters too.

2014-11-21 Thread Mark Janes
In my tests, this fixes piglit on gen4/5. -Mark Kenneth Graunke writes: > In commit 5e37a2a4a8a, I made the pull constant code stop calling > _mesa_load_state_parameters() when there were no pull parameters. > > This worked fine on Gen6+ because the push constant code also called > it if there

[Mesa-dev] [PATCH 1/2] i965: Assert that math instructions don't have conditional mod.

2014-11-21 Thread Matt Turner
--- Strangely, the suggested implementations of double-precision sqrt/rcp in the BSpec show using a math instruction with an "eo" conditional modifier. I have no idea what that could possibly mean, or how it could work since conditional mod shares the same four bits with math SFID. src/mesa/drive

[Mesa-dev] [PATCH 2/2] i965: Don't overwrite the math SFID with conditional mod.

2014-11-21 Thread Matt Turner
Ben was asking about the undocumented restriction that the math instruction cannot use the dependency control hints. I went to reconfirm and disabled the is_math() check in opt_set_dependency_control() and saw that the disassembled math instructions with dependency hints had a bogus SFID. We were m

[Mesa-dev] [PATCH] i965/fs: Clarify and optimize register coalescing interference check.

2014-11-21 Thread Matt Turner
With bblock_t::end_ip, we can skip entire blocks rather than checking every instruction in them. Also by making the loops nested (explicitly, it already was a nested loop), the continue seen at the end of the first hunk (when viewed with git show -w) will do what the programmer expects. No functio

[Mesa-dev] [PATCH 5/5] i965/gen8: Don't allocate hiz miptree structure

2014-11-21 Thread Jordan Justen
We now skip allocating a hiz miptree for gen8. Instead, we calculate the required hiz buffer parameters and allocate a bo directly. v2: * Update hz_height calculation as suggested by Topi v3: * Bail if we failed to create the bo (Ben) Signed-off-by: Jordan Justen Reviewed-by: Topi Pohjolainen

[Mesa-dev] [PATCH 1/5] i965/hiz: Start to separate miptree out from hiz buffers

2014-11-21 Thread Jordan Justen
Today we allocate a miptree's for the hiz buffer. We needed this in the past because we would point the hardware at offsets of the hiz buffer. Since the hiz format is not documented, this is not a good idea. Since moving to support layered rendering on Gen7+, we no longer point at an offset into t

[Mesa-dev] [PATCH 4/5] i965/gen7: Don't allocate hiz miptree structure

2014-11-21 Thread Jordan Justen
We now skip allocating a hiz miptree for gen7. Instead, we calculate the required hiz buffer parameters and allocate a bo directly. v2: * Update hz_height calculation as suggested by Topi v3: * Bail if we failed to create the bo (Ben) Signed-off-by: Jordan Justen Reviewed-by: Topi Pohjolainen

[Mesa-dev] [PATCH 3/5] i965/gen8: Don't rely directly on the hiz miptree structure

2014-11-21 Thread Jordan Justen
We are still allocating a miptree for hiz, but we only use fields from intel_miptree_aux_buffer. This will allow us to switch over to not allocating a miptree. Signed-off-by: Jordan Justen Reviewed-by: Topi Pohjolainen Reviewed-by: Kenneth Graunke Reviewed-by: Ben Widawsky --- src/mesa/driver

[Mesa-dev] [PATCH 2/5] i965/gen7: Don't rely directly on the hiz miptree structure

2014-11-21 Thread Jordan Justen
We are still allocating a miptree for hiz, but we only use fields from intel_miptree_aux_buffer. This will allow us to switch over to not allocating a miptree. Signed-off-by: Jordan Justen Reviewed-by: Topi Pohjolainen Reviewed-by: Kenneth Graunke Reviewed-by: Ben Widawsky --- src/mesa/driver

[Mesa-dev] [PATCH] util: Implement assume() for clang.

2014-11-21 Thread Matt Turner
--- src/util/macros.h | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/src/util/macros.h b/src/util/macros.h index da5daff..b67596d 100644 --- a/src/util/macros.h +++ b/src/util/macros.h @@ -29,6 +29,10 @@ # define ARRAY_SIZE(x) (sizeof(x) / sizeof(*(x))) #endif

[Mesa-dev] [PATCH] util: Prefer atomic intrinsics to inline assembly.

2014-11-21 Thread Matt Turner
Cuts a little more than 1k of .text size from i915g. This was previously done in commit 5f66b340 and subsequently reverted in commit 3661f757 after bug 30514 was filed. I believe the cause of bug 30514 wasn't anything related to cross compiling, but rather that the toolchain used defaulted to -mar

[Mesa-dev] [PATCH] glsl: Fix tautological comparison.

2014-11-21 Thread Matt Turner
Caught by clang. warning: comparison of constant -1 with expression of type 'ir_texture_opcode' is always false [-Wtautological-constant-out-of-range-compare] if (op == -1) ~~ ^ ~~ --- src/glsl/ir_reader.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) di

[Mesa-dev] [PATCH] glsl: Silence clang warning about class vs no class.

2014-11-21 Thread Matt Turner
note: hidden overloaded virtual function 'ir_hierarchical_visitor::visit_enter' declared here: type mismatch at 1st parameter ('class ir_loop *' vs 'ir_dereference_variable *') virtual ir_visitor_status visit_enter(class ir_loop *); I don't see much value in this warning, but it spi

[Mesa-dev] [PATCH] i965/gen6/gs: Don't declare a src_reg with struct.

2014-11-21 Thread Matt Turner
--- src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp b/src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp index d16cc6e..564b4cb 100644 --- a/src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp +++

[Mesa-dev] [PATCH] i965/disasm: Fix all32h/any32h predicate disassembly.

2014-11-21 Thread Matt Turner
--- src/mesa/drivers/dri/i965/brw_disasm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c b/src/mesa/drivers/dri/i965/brw_disasm.c index b211a0f..e235fd4 100644 --- a/src/mesa/drivers/dri/i965/brw_disasm.c +++ b/src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH] util: Prefer atomic intrinsics to inline assembly.

2014-11-21 Thread Ilia Mirkin
On Fri, Nov 21, 2014 at 6:18 PM, Matt Turner wrote: > Cuts a little more than 1k of .text size from i915g. > > This was previously done in commit 5f66b340 and subsequently reverted in > commit 3661f757 after bug 30514 was filed. I believe the cause of bug > 30514 wasn't anything related to cross c

Re: [Mesa-dev] [PATCH] glsl: Silence clang warning about class vs no class.

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 3:19 PM, Matt Turner wrote: > note: hidden overloaded virtual function > 'ir_hierarchical_visitor::visit_enter' > declared here: type mismatch at 1st parameter > ('class ir_loop *' vs 'ir_dereference_variable *') >virtual ir_visitor_status visit_enter(class

Re: [Mesa-dev] [PATCH] util: Prefer atomic intrinsics to inline assembly.

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 3:18 PM, Matt Turner wrote: > Cuts a little more than 1k of .text size from i915g. > > This was previously done in commit 5f66b340 and subsequently reverted in > commit 3661f757 after bug 30514 was filed. I believe the cause of bug > 30514 wasn't anything related to cross c

Re: [Mesa-dev] [PATCH] i965/disasm: Fix all32h/any32h predicate disassembly.

2014-11-21 Thread Chris Forbes
Reviewed-by: Chris Forbes On Sat, Nov 22, 2014 at 12:19 PM, Matt Turner wrote: > --- > src/mesa/drivers/dri/i965/brw_disasm.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/brw_disasm.c > b/src/mesa/drivers/dri/i965/brw_disasm.c > index b211a

Re: [Mesa-dev] [PATCH] util: Implement assume() for clang.

2014-11-21 Thread Jordan Justen
On 2014-11-21 15:17:00, Matt Turner wrote: > --- > src/util/macros.h | 12 +++- > 1 file changed, 11 insertions(+), 1 deletion(-) > > diff --git a/src/util/macros.h b/src/util/macros.h > index da5daff..b67596d 100644 > --- a/src/util/macros.h > +++ b/src/util/macros.h > @@ -29,6 +29,10 @@

Re: [Mesa-dev] [PATCH] util: Implement assume() for clang.

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 3:47 PM, Jordan Justen wrote: > On 2014-11-21 15:17:00, Matt Turner wrote: >> --- >> src/util/macros.h | 12 +++- >> 1 file changed, 11 insertions(+), 1 deletion(-) >> >> diff --git a/src/util/macros.h b/src/util/macros.h >> index da5daff..b67596d 100644 >> --- a/s

Re: [Mesa-dev] [PATCH 5/5] i965/gen8: Don't allocate hiz miptree structure

2014-11-21 Thread Ben Widawsky
On Fri, Nov 21, 2014 at 03:09:03PM -0800, Jordan Justen wrote: > We now skip allocating a hiz miptree for gen8. Instead, we calculate > the required hiz buffer parameters and allocate a bo directly. > > v2: > * Update hz_height calculation as suggested by Topi > v3: > * Bail if we failed to crea

Re: [Mesa-dev] [PATCH] util: Implement assume() for clang.

2014-11-21 Thread Jordan Justen
On 2014-11-21 15:53:35, Matt Turner wrote: > On Fri, Nov 21, 2014 at 3:47 PM, Jordan Justen > wrote: > > On 2014-11-21 15:17:00, Matt Turner wrote: > >> --- > >> src/util/macros.h | 12 +++- > >> 1 file changed, 11 insertions(+), 1 deletion(-) > >> > >> diff --git a/src/util/macros.h b/sr

Re: [Mesa-dev] [PATCH] util: Implement assume() for clang.

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 4:23 PM, Jordan Justen wrote: > So ... assert(expr) instead? Yes. :( ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/3] nine: Don't use the otherwise-dead SFL opcode in an unreachable path.

2014-11-21 Thread David Heidelberg
Reviewed-by: David Heidelberg for the series. David ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 5/5] i965/gen8: Don't allocate hiz miptree structure

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 3:09 PM, Jordan Justen wrote: > We now skip allocating a hiz miptree for gen8. Instead, we calculate > the required hiz buffer parameters and allocate a bo directly. > > v2: > * Update hz_height calculation as suggested by Topi > v3: > * Bail if we failed to create the bo

Re: [Mesa-dev] [PATCH] i965/gen6/gs: Don't declare a src_reg with struct.

2014-11-21 Thread Kenneth Graunke
On Friday, November 21, 2014 03:19:32 PM Matt Turner wrote: > --- > src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp > b/src/mesa/drivers/dri/i965/gen6_gs_visitor.cpp > index d16cc

Re: [Mesa-dev] [PATCH] glsl: Fix tautological comparison.

2014-11-21 Thread Kenneth Graunke
On Friday, November 21, 2014 03:19:12 PM Matt Turner wrote: > Caught by clang. > > warning: comparison of constant -1 with expression of type > 'ir_texture_opcode' is always false > [-Wtautological-constant-out-of-range-compare] > if (op == -1) > ~~ ^ ~~ > --- > sr

Re: [Mesa-dev] [PATCH 4/5] i965/gen7: Don't allocate hiz miptree structure

2014-11-21 Thread Ben Widawsky
On Fri, Nov 21, 2014 at 03:09:02PM -0800, Jordan Justen wrote: > We now skip allocating a hiz miptree for gen7. Instead, we calculate > the required hiz buffer parameters and allocate a bo directly. > > v2: > * Update hz_height calculation as suggested by Topi > v3: > * Bail if we failed to crea

Re: [Mesa-dev] [PATCH] radeonsi: use minnum and maxnum LLVM intrinsics for MIN and MAX opcodes

2014-11-21 Thread Michel Dänzer
On 21.11.2014 06:21, Marek Olšák wrote: From: Marek Olšák So far it has been compiled into pretty ugly code (8 instructions or so for either opcode). --- src/gallium/drivers/radeonsi/si_shader.c | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader

Re: [Mesa-dev] [PATCH 4/5] i965/gen7: Don't allocate hiz miptree structure

2014-11-21 Thread Matt Turner
On Fri, Nov 21, 2014 at 3:09 PM, Jordan Justen wrote: > We now skip allocating a hiz miptree for gen7. Instead, we calculate > the required hiz buffer parameters and allocate a bo directly. > > v2: > * Update hz_height calculation as suggested by Topi > v3: > * Bail if we failed to create the bo

[Mesa-dev] [PATCH 3/4] nine: handle D3DISSUE_END without previous D3DISSUE_BEGIN

2014-11-21 Thread David Heidelberg
From: John Ettedgui This patch fixes black screen with games based on the Unreal Engine 3. It was tested that it fixed the issue in Tera Online, Borderlands 2 and Homefront. Cc: "10.4" Reviewed-by: Axel Davy Reviewed-by: David Heidelberg Signed-off-by: John Ettedgui --- src/gallium/state_t

[Mesa-dev] [PATCH 2/4] nine: Add pool check to SetTexture (v2)

2014-11-21 Thread David Heidelberg
From: Axel Davy D3DPOOL_SCRATCH is disallowed according to spec. D3DPOOL_SYSTEMMEM should be allowed but we don't handle it right for now. v2: Fixes segfault in SetTexture when unsetting the texture Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_tracke

[Mesa-dev] [PATCH 4/4] nine: call DBG() at more external entry points

2014-11-21 Thread David Heidelberg
From: Stanislaw Halik Cc: "10.4" Reviewed-by: David Heidelberg Reviewed-by: Axel Davy Signed-off-by: Stanislaw Halik --- src/gallium/state_trackers/nine/basetexture9.c | 17 src/gallium/state_trackers/nine/cubetexture9.c | 17 src/gallium/state_trackers/nine/device9

[Mesa-dev] [PATCH 1/4] nine: propertly declare constants

2014-11-21 Thread David Heidelberg
From: Axel Davy Fixes "Error : CONST[20]: Undeclared source register" when running dx9_alpha_blending_material. Also artifacts on ilo. Cc: "10.4" Tested-by: David Heidelberg Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/nine_ff.c | 4 ++-- 1 file changed, 2 insertions(+), 2 de

Re: [Mesa-dev] [PATCH 4/4] nine: call DBG() at more external entry points

2014-11-21 Thread David Heidelberg
Sorry, for now please without this patch. This one needs " nine: Refactor Resource9 BaseTexture9 Surface9 and Texture9 initialization", which isn't part of batch. Thanks, David. On 11/22/2014 04:14 AM, David Heidelberg wrote: From: Stanislaw Halik Cc: "10.4" Reviewed-by: David Heidelberg

Re: [Mesa-dev] [PATCH 3/4] nine: handle D3DISSUE_END without previous D3DISSUE_BEGIN

2014-11-21 Thread Ilia Mirkin
On Fri, Nov 21, 2014 at 10:13 PM, David Heidelberg wrote: > From: John Ettedgui > > This patch fixes black screen with games based on the Unreal Engine 3. > It was tested that it fixed the issue in Tera Online, Borderlands 2 and > Homefront. What's the actual problem? If there's no begin, then

[Mesa-dev] Mesa 10.3.4

2014-11-21 Thread Emil Velikov
Mesa 10.3.4 has been released. Mesa 10.3.4 is a bug fix release fixing bugs since the 10.3.3 release, (see below for a list of changes). The tag in the git repository for Mesa 10.3.4 is 'mesa-10.3.4'. Mesa 10.3.4 is available for download at ftp://freedesktop.org/pub/mesa/10.3.4/ SHA-256 checksu

[Mesa-dev] Mesa 10.4.0 release candidate 2

2014-11-21 Thread Emil Velikov
Mesa 10.4.0 release candidate 2 is now available for testing. The current plan is to have an additional release candidate each Friday until the eventual 10.4.0 release on Friday, Dec 5th. The tag in the git repository for Mesa 10.4.0-rc2 is 'mesa-10.4.0-rc2'. Mesa 10.4.0 release candidate 2 is av

[Mesa-dev] [PATCH] nine: the .pc file should not follow mesa version

2014-11-21 Thread Emil Velikov
The version provided by it should be the same as the one provided/handled by the module. Add the missing tiny version. Cc: Signed-off-by: Emil Velikov --- configure.ac| 2 ++ src/gallium/targets/d3dadapter9/Makefile.am | 2 +- src/gallium/targets/d3dadapter9/d3d.

Re: [Mesa-dev] [PATCH 3/4] nine: handle D3DISSUE_END without previous D3DISSUE_BEGIN

2014-11-21 Thread Ilia Mirkin
On Sat, Nov 22, 2014 at 12:44 AM, John Ettedgui wrote: > On Fri Nov 21 2014 at 7:50:03 PM Ilia Mirkin wrote: >> >> What's the actual problem? > > If you mean in-game, a blocking black screen, the game wants to display > something but is unable to and keeps trying pretty much forever. I meant at

Re: [Mesa-dev] [PATCH 3/4] nine: handle D3DISSUE_END without previous D3DISSUE_BEGIN

2014-11-21 Thread Ilia Mirkin
On Sat, Nov 22, 2014 at 12:57 AM, Ilia Mirkin wrote: > On Sat, Nov 22, 2014 at 12:44 AM, John Ettedgui > wrote: >> On Fri Nov 21 2014 at 7:50:03 PM Ilia Mirkin wrote: >>> >>> What's the actual problem? >> >> If you mean in-game, a blocking black screen, the game wants to display >> something bu

Re: [Mesa-dev] [PATCH 3/4] nine: handle D3DISSUE_END without previous D3DISSUE_BEGIN

2014-11-21 Thread Ilia Mirkin
On Sat, Nov 22, 2014 at 1:28 AM, John Ettedgui wrote: > On Fri Nov 21 2014 at 10:14:19 PM Ilia Mirkin wrote: >> >> Oh, I think i see the problem. >> >> In GetData: >> >> user_assert(This->state != NINE_QUERY_STATE_RUNNING, >> D3DERR_INVALIDCALL); >> >> should be >> >> user_assert(This->stat

Re: [Mesa-dev] [PATCH 3/4] nine: handle D3DISSUE_END without previous D3DISSUE_BEGIN

2014-11-21 Thread Ilia Mirkin
On Sat, Nov 22, 2014 at 1:45 AM, John Ettedgui wrote: > On Fri Nov 21 2014 at 10:36:29 PM Ilia Mirkin wrote: >> >> Right, I figured as much. My point is that doing what I'm proposing >> there would allow such usage even though it is illegal based on the >> API description. >> > Alright. >> >> It