Re: [Mesa-dev] [PATCH v2 1/6] i965/fs: add a helper function to create double immediates

2016-07-11 Thread Samuel Iglesias Gonsálvez
On 11/07/16 14:54, Kenneth Graunke wrote: > On Monday, July 11, 2016 1:37:46 PM PDT Samuel Iglesias Gonsálvez wrote: >> From: Iago Toral Quiroga >> >> Gen7 hardware does not support double immediates so these need >> to be moved in 32-bit chunks to a regular vgrf instead.

Re: [Mesa-dev] mesa from git fails to compile

2016-07-11 Thread Pali Rohár
On Monday 11 July 2016 10:11:30 Emil Velikov wrote: > Sounds similar (the same?) as > https://bugs.freedesktop.org/show_bug.cgi?id=89347. Output error looks lo be same. > Which version of mako do you have, can you give things a try with > 0.8.0 or later ? If you mean mako python module, then I

Re: [Mesa-dev] [PATCH RFC 1/1] r600, compute: Use vtx #3 for kernel arguments

2016-07-11 Thread Tom Stellard
On Sun, Jun 26, 2016 at 08:40:55PM -0400, Jan Vesely wrote: > Both explicit and implicit. > Using vtx 0 (as existing llvm code implies) does not work for dynamic offsets. > > Signed-off-by: Jan Vesely I have no idea why vtx#3 works when vtx#0, maybe add a comment

Re: [Mesa-dev] [PATCH 24/24] RFC nir/algebraic: Optimize open-coded nir_binop_bfm

2016-07-11 Thread Matt Turner
On Wed, Jun 29, 2016 at 2:04 PM, Ian Romanick wrote: > From: Ian Romanick > > BFM is (((1u << a) - 1) << b). Recognize a couple patterns that look > like this, and replace them with BFM. > > NOTE: Using lower_bitfield_insert is definitely not the

Re: [Mesa-dev] [PATCH v2 16/24] i965: Use LZD to implement nir_op_ifind_msb on Gen < 7

2016-07-11 Thread Matt Turner
On Thu, Jul 7, 2016 at 10:16 AM, Ian Romanick wrote: > From: Ian Romanick > > v2: Retype LZD source as UD to avoid potential problems with 0x8000. > Suggested by Matt. Also update comment about problem values with > LZD(abs(x)). Suggested by

Re: [Mesa-dev] [PATCH shader-db 2/3] Remove split-to-files.py

2016-07-11 Thread Nicolai Hähnle
Would you mind updating the README as well? With that, patches 2 & 3 are Reviewed-by: Nicolai Hähnle Patch 1 is Acked-by: Nicolai Hähnle On 11.07.2016 20:10, Marek Olšák wrote: From: Marek Olšák Use

Re: [Mesa-dev] [PATCH] nvc0: use a define for the driver constant buffer size

2016-07-11 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin On Mon, Jul 11, 2016 at 4:25 PM, Samuel Pitoiset wrote: > This might avoid mistakes if the size is bumped in the future. > > Signed-off-by: Samuel Pitoiset > --- >

[Mesa-dev] [PATCH] nvc0: use a define for the driver constant buffer size

2016-07-11 Thread Samuel Pitoiset
This might avoid mistakes if the size is bumped in the future. Signed-off-by: Samuel Pitoiset --- src/gallium/drivers/nouveau/nvc0/nvc0_compute.c| 8 src/gallium/drivers/nouveau/nvc0/nvc0_context.h| 4 ++--

Re: [Mesa-dev] [PATCH] nvc0: fix the driver cb size when draw parameters are used

2016-07-11 Thread Ilia Mirkin
Reviewed-by: Ilia Mirkin A follow-up patch to replace all those 2048's with some #define would be great :) On Mon, Jul 11, 2016 at 3:26 PM, Samuel Pitoiset wrote: > The size of the driver constant buffer for each stage should be 2048 > and not

[Mesa-dev] [PATCH] nvc0: fix the driver cb size when draw parameters are used

2016-07-11 Thread Samuel Pitoiset
The size of the driver constant buffer for each stage should be 2048 and not 512 because it has been increased recently for buffers/images. While we are at it, do the same change for indirect draws. This fixes all ARB_shader_draw_parameters tests on GM107. Signed-off-by: Samuel Pitoiset

Re: [Mesa-dev] [PATCH v2 3/6] i965/fs/gen7: split instructions that run into exec masking bugs

2016-07-11 Thread Francisco Jerez
Francisco Jerez writes: > Samuel Iglesias Gonsálvez writes: > >> From: Iago Toral Quiroga >> >> In fp64 we can produce code like this: >> >> mov(16) vgrf2<2>:UD, vgrf3<2>:UD >> >> That our simd lowering pass would typically split

Re: [Mesa-dev] [PATCH v2 6/6] i965/fs: do d2x lowering before simd splitting

2016-07-11 Thread Francisco Jerez
Samuel Iglesias Gonsálvez writes: > So that we can have gen7 split large writes produced by this lowering pass. > > Signed-off-by: Samuel Iglesias Gonsálvez Reviewed-by: Francisco Jerez > --- >

Re: [Mesa-dev] [PATCH v2 3/6] i965/fs/gen7: split instructions that run into exec masking bugs

2016-07-11 Thread Francisco Jerez
Samuel Iglesias Gonsálvez writes: > From: Iago Toral Quiroga > > In fp64 we can produce code like this: > > mov(16) vgrf2<2>:UD, vgrf3<2>:UD > > That our simd lowering pass would typically split in instructions with a > width of 8, writing to two

Re: [Mesa-dev] [PATCH 1/7] glsl: Separate overlapping sentinel nodes in exec_list.

2016-07-11 Thread Matt Turner
On Fri, Jul 8, 2016 at 3:18 PM, Matt Turner wrote: > I do appreciate the cleverness, but unfortunately it prevents a lot more > cleverness in the form of additional compiler optimizations brought on > by -fstrict-aliasing. > > No difference in OglBatch7 (n=20). > >

Re: [Mesa-dev] [PATCH shader-db 1/3] Remove duplicated shaders across apps

2016-07-11 Thread Kenneth Graunke
On Monday, July 11, 2016 8:10:44 PM PDT Marek Olšák wrote: > From: Marek Olšák > > $ fdupes -rdN . > >[+] ./yofrankie/129.shader_test >[-] ./yofrankie/126.shader_test > >[+] ./yofrankie/123.shader_test >[-] ./yofrankie/132.shader_test > >[+]

[Mesa-dev] [PATCH shader-db 1/3] Remove duplicated shaders across apps

2016-07-11 Thread Marek Olšák
From: Marek Olšák $ fdupes -rdN . [+] ./yofrankie/129.shader_test [-] ./yofrankie/126.shader_test [+] ./yofrankie/123.shader_test [-] ./yofrankie/132.shader_test [+] ./humus-volumetricfogging2/9.shader_test [-] ./humus-celshading/9.shader_test [+]

[Mesa-dev] [PATCH shader-db 3/3] si-report.py: don't crash if there are no shaders found

2016-07-11 Thread Marek Olšák
From: Marek Olšák --- si-report.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/si-report.py b/si-report.py index c7fe1b5..69af89e 100755 --- a/si-report.py +++ b/si-report.py @@ -366,6 +366,9 @@ def compare_results(before_all_results, after_all_results):

[Mesa-dev] [PATCH shader-db 2/3] Remove split-to-files.py

2016-07-11 Thread Marek Olšák
From: Marek Olšák Use MESA_SHADER_CAPTURE_PATH instead. --- split-to-files.py | 138 -- 1 file changed, 138 deletions(-) delete mode 100755 split-to-files.py diff --git a/split-to-files.py b/split-to-files.py deleted

Re: [Mesa-dev] [PATCH] glsl_to_tgsi: don't use the negate modifier in integer ops after bitcast

2016-07-11 Thread Ilia Mirkin
On Mon, Jul 11, 2016 at 2:01 PM, Marek Olšák wrote: > On Mon, Jul 11, 2016 at 7:55 PM, Ilia Mirkin wrote: >> On Mon, Jul 11, 2016 at 1:48 PM, Marek Olšák wrote: >>> On Mon, Jul 11, 2016 at 7:31 PM, Ilia Mirkin

Re: [Mesa-dev] [PATCH 2/2] anv/dump: Fix post-blit memory barrier

2016-07-11 Thread Jason Ekstrand
On Thu, Jul 7, 2016 at 8:12 PM, Jason Ekstrand wrote: > Drp... > > Reviewed-by: Jason Ekstrand > I added my R-B to your two and pushed the lot of them. Thanks for the fixups! > On Jul 7, 2016 4:06 PM, "Chad Versace" wrote:

Re: [Mesa-dev] [PATCH] glsl_to_tgsi: don't use the negate modifier in integer ops after bitcast

2016-07-11 Thread Marek Olšák
On Mon, Jul 11, 2016 at 7:55 PM, Ilia Mirkin wrote: > On Mon, Jul 11, 2016 at 1:48 PM, Marek Olšák wrote: >> On Mon, Jul 11, 2016 at 7:31 PM, Ilia Mirkin wrote: >>> On Mon, Jul 11, 2016 at 1:28 PM, Marek Olšák

Re: [Mesa-dev] [PATCH] glsl_to_tgsi: don't use the negate modifier in integer ops after bitcast

2016-07-11 Thread Ilia Mirkin
On Mon, Jul 11, 2016 at 1:48 PM, Marek Olšák wrote: > On Mon, Jul 11, 2016 at 7:31 PM, Ilia Mirkin wrote: >> On Mon, Jul 11, 2016 at 1:28 PM, Marek Olšák wrote: >>> From: Marek Olšák >>> >>> This bug is uncovered by

[Mesa-dev] [PATCH] mapi: Massage code to allow clang to compile.

2016-07-11 Thread Matt Turner
According to https://llvm.org/bugs/show_bug.cgi?id=19778#c3 this code was violating the spec, resulting in it failing to compile. Cc: mesa-sta...@lists.freedesktop.org Co-authored-by: Tomasz Paweł Gajc Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=89599 --- I've tried

Re: [Mesa-dev] [PATCH] glsl_to_tgsi: don't use the negate modifier in integer ops after bitcast

2016-07-11 Thread Marek Olšák
On Mon, Jul 11, 2016 at 7:31 PM, Ilia Mirkin wrote: > On Mon, Jul 11, 2016 at 1:28 PM, Marek Olšák wrote: >> From: Marek Olšák >> >> This bug is uncovered by glsl/lower_if_to_cond_assign. >> I don't know if it can be reproduced in any

Re: [Mesa-dev] [Mesa-stable] [PATCH v2] mesa: etc2 online compression is unsupported, don't attempt it

2016-07-11 Thread Anuj Phogat
On Fri, Jul 8, 2016 at 5:29 PM, Ilia Mirkin wrote: > Signed-off-by: Ilia Mirkin > Cc: "11.2 12.0" > --- > > v1 -> v2: also include a mesa_is_etc2_format function which takes a GLenum. > > src/mesa/main/glformats.c |

Re: [Mesa-dev] [PATCH] glsl_to_tgsi: don't use the negate modifier in integer ops after bitcast

2016-07-11 Thread Ilia Mirkin
On Mon, Jul 11, 2016 at 1:28 PM, Marek Olšák wrote: > From: Marek Olšák > > This bug is uncovered by glsl/lower_if_to_cond_assign. > I don't know if it can be reproduced in any other way. > > Cc: > --- >

[Mesa-dev] [PATCH] glsl_to_tgsi: don't use the negate modifier in integer ops after bitcast

2016-07-11 Thread Marek Olšák
From: Marek Olšák This bug is uncovered by glsl/lower_if_to_cond_assign. I don't know if it can be reproduced in any other way. Cc: --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 12 +++- 1 file changed, 7 insertions(+), 5

Re: [Mesa-dev] [PATCH 10/14] isl: Add support for HiZ surfaces

2016-07-11 Thread Pohjolainen, Topi
On Sat, Jul 09, 2016 at 12:17:28PM -0700, Jason Ekstrand wrote: > --- > src/intel/isl/isl.c | 11 +++ > src/intel/isl/isl.h | 17 + > src/intel/isl/isl_format_layout.csv | 1 + > src/intel/isl/isl_gen6.c| 8 >

Re: [Mesa-dev] [PATCH 07/14] isl: Use bpb in a few places where it's more natural than bs

2016-07-11 Thread Jason Ekstrand
On Mon, Jul 11, 2016 at 8:37 AM, Pohjolainen, Topi < topi.pohjolai...@intel.com> wrote: > On Sat, Jul 09, 2016 at 12:17:24PM -0700, Jason Ekstrand wrote: > > --- > > src/intel/isl/isl.c | 2 +- > > src/intel/isl/isl_gen6.c | 2 +- > >

Re: [Mesa-dev] [PATCH 09/14] isl: Kill off isl_format_layout::bs

2016-07-11 Thread Pohjolainen, Topi
On Sat, Jul 09, 2016 at 12:17:27PM -0700, Jason Ekstrand wrote: > --- > src/intel/isl/gen_format_layout.py | 1 - > src/intel/isl/isl.c| 11 ++- > src/intel/isl/isl.h| 5 ++--- > src/intel/isl/isl_gen9.c | 14 +++--- >

Re: [Mesa-dev] [PATCH 07/14] isl: Use bpb in a few places where it's more natural than bs

2016-07-11 Thread Pohjolainen, Topi
On Sat, Jul 09, 2016 at 12:17:24PM -0700, Jason Ekstrand wrote: > --- > src/intel/isl/isl.c | 2 +- > src/intel/isl/isl_gen6.c | 2 +- > src/intel/isl/isl_gen7.c | 2 +- > src/intel/isl/isl_storage_image.c

Re: [Mesa-dev] [PATCH 04/14] isl: Rework the way we define tile sizes.

2016-07-11 Thread Pohjolainen, Topi
On Sat, Jul 09, 2016 at 12:17:21PM -0700, Jason Ekstrand wrote: > This is based on a very long set of discussions between Chad and myself > about how we should properly represent HiZ and CCS buffers. The end result > of that discussion was that a tiling actually has two different sizes, a >

Re: [Mesa-dev] [PATCH 03/14] isl: Rework the way we handle surface padding

2016-07-11 Thread Jason Ekstrand
On Mon, Jul 11, 2016 at 8:04 AM, Pohjolainen, Topi < topi.pohjolai...@intel.com> wrote: > On Sat, Jul 09, 2016 at 12:17:20PM -0700, Jason Ekstrand wrote: > > --- > > src/intel/isl/isl.c | 52 > +--- > > 1 file changed, 25 insertions(+), 27

Re: [Mesa-dev] [PATCH 03/14] isl: Rework the way we handle surface padding

2016-07-11 Thread Pohjolainen, Topi
On Sat, Jul 09, 2016 at 12:17:20PM -0700, Jason Ekstrand wrote: > --- > src/intel/isl/isl.c | 52 +--- > 1 file changed, 25 insertions(+), 27 deletions(-) > > diff --git a/src/intel/isl/isl.c b/src/intel/isl/isl.c > index decba3d..6f57ac2 100644 >

Re: [Mesa-dev] Current status of the i965 dri3 bug #71759?

2016-07-11 Thread Martin Peres
On 11/07/16 17:40, i...@iirolaiho.net wrote: Hi, I am asking about freedesktop bug #71759. The bug has been open since 2013, but the problems are beginning to surface now: on Fedora+[RPMFusion|UnitedRPMs], it breaks h.264 playback on Totem with default settings (1). Fabrice Bellet has done

[Mesa-dev] Current status of the i965 dri3 bug #71759?

2016-07-11 Thread iiro
Hi, I am asking about freedesktop bug #71759. The bug has been open since 2013, but the problems are beginning to surface now: on Fedora+[RPMFusion|UnitedRPMs], it breaks h.264 playback on Totem with default settings (1). Fabrice Bellet has done some debugging on the problem and even

Re: [Mesa-dev] [PATCH] i915: fix implicit truncation from 'int' to bitfield

2016-07-11 Thread Matt Turner
On Mon, Jul 11, 2016 at 6:31 AM, Francesco Ansanelli wrote: > --- > src/gallium/drivers/i915/i915_context.c |6 +++--- > src/gallium/drivers/i915/i915_flush.c |6 +++--- Please prefix patches to this directory "i915g: " > 2 files changed, 6 insertions(+), 6

[Mesa-dev] [PATCH] i915: fix implicit truncation from 'int' to bitfield

2016-07-11 Thread Francesco Ansanelli
--- src/gallium/drivers/i915/i915_context.c |6 +++--- src/gallium/drivers/i915/i915_flush.c |6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/gallium/drivers/i915/i915_context.c b/src/gallium/drivers/i915/i915_context.c index 82798bb..d7cdfd9 100644 ---

Re: [Mesa-dev] [PATCH] i965: fix ignored qualifiers warning

2016-07-11 Thread Kenneth Graunke
On Saturday, July 9, 2016 10:16:29 AM PDT Francesco Ansanelli wrote: > --- > src/mesa/drivers/dri/i965/gen6_queryobj.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/gen6_queryobj.c > b/src/mesa/drivers/dri/i965/gen6_queryobj.c > index

Re: [Mesa-dev] [PATCH v2 1/6] i965/fs: add a helper function to create double immediates

2016-07-11 Thread Kenneth Graunke
On Monday, July 11, 2016 1:37:46 PM PDT Samuel Iglesias Gonsálvez wrote: > From: Iago Toral Quiroga > > Gen7 hardware does not support double immediates so these need > to be moved in 32-bit chunks to a regular vgrf instead. Instead > of doing this every time we need to create

Re: [Mesa-dev] [PATCH 2/6] i965/fs: use the new helper function to create double immediates

2016-07-11 Thread Kenneth Graunke
On Monday, July 11, 2016 1:19:34 PM PDT Samuel Iglesias Gonsálvez wrote: > > On 06/07/16 22:32, Kenneth Graunke wrote: > > On Wednesday, July 6, 2016 12:09:58 PM PDT Samuel Iglesias Gonsálvez wrote: > >> From: Iago Toral Quiroga > >> > >> --- > >>

Re: [Mesa-dev] [PATCH 1/4] vl/compositor: move weave shader out from rgb weaving

2016-07-11 Thread Christian König
Am 06.07.2016 um 20:03 schrieb Leo Liu: We'll use weave shader in the later patch. Signed-off-by: Leo Liu I think I would prefer having a separate component for format conversion of video buffers instead of pushing that into the compositor as well. We could still share the

Re: [Mesa-dev] [PATCH] i965: fix ignored qualifiers warning

2016-07-11 Thread Eric Engestrom
On Sat, Jul 09, 2016 at 10:16:29AM +0200, Francesco Ansanelli wrote: > --- > src/mesa/drivers/dri/i965/gen6_queryobj.c |2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/drivers/dri/i965/gen6_queryobj.c > b/src/mesa/drivers/dri/i965/gen6_queryobj.c > index

[Mesa-dev] [PATCH v2 3/6] i965/fs/gen7: split instructions that run into exec masking bugs

2016-07-11 Thread Samuel Iglesias Gonsálvez
From: Iago Toral Quiroga In fp64 we can produce code like this: mov(16) vgrf2<2>:UD, vgrf3<2>:UD That our simd lowering pass would typically split in instructions with a width of 8, writing to two consecutive registers each. Unfortunately, gen7 hardware has a bug affecting

[Mesa-dev] [PATCH v2 6/6] i965/fs: do d2x lowering before simd splitting

2016-07-11 Thread Samuel Iglesias Gonsálvez
So that we can have gen7 split large writes produced by this lowering pass. Signed-off-by: Samuel Iglesias Gonsálvez --- src/mesa/drivers/dri/i965/brw_fs.cpp | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp

[Mesa-dev] [PATCH v2 5/6] i965/fs: do pack lowering before simd splitting

2016-07-11 Thread Samuel Iglesias Gonsálvez
From: Iago Toral Quiroga So that we can have gen7 split large writes produced by the pack lowering. Reviewed-by: Francisco Jerez --- src/mesa/drivers/dri/i965/brw_fs.cpp | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git

[Mesa-dev] [PATCH v2 4/6] i965/fs: do not require force_writemask_all with exec_size 4

2016-07-11 Thread Samuel Iglesias Gonsálvez
So far we only used instructions with this size in situations where we did not operate per-channel and we wanted to ignore the execution mask, but gen7 fp64 will need to emit code with a width of 4 that needs normal execution masking. v2: - Modify the assert instead of deleting it (Curro)

[Mesa-dev] [PATCH v2 2/6] i965/fs: use the new helper function to create double immediates

2016-07-11 Thread Samuel Iglesias Gonsálvez
From: Iago Toral Quiroga Reviewed-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_nir.cpp

[Mesa-dev] [PATCH v2 0/6] i965/fs: fix Haswell support for doubles

2016-07-11 Thread Samuel Iglesias Gonsálvez
Hello, This is the second version of this patch series [0]. The use of DIM instruction on HSW to setup an 64-bit immediate reg (suggested by Kenneth here [1]) will be sent in a separate patch series. Thanks, Sam [0] https://lists.freedesktop.org/archives/mesa-dev/2016-July/122416.html [1]

[Mesa-dev] [PATCH v2 1/6] i965/fs: add a helper function to create double immediates

2016-07-11 Thread Samuel Iglesias Gonsálvez
From: Iago Toral Quiroga Gen7 hardware does not support double immediates so these need to be moved in 32-bit chunks to a regular vgrf instead. Instead of doing this every time we need to create a DF immediate, create a helper function that does the right thing depending on

Re: [Mesa-dev] [PATCH 2/6] i965/fs: use the new helper function to create double immediates

2016-07-11 Thread Samuel Iglesias Gonsálvez
On 06/07/16 22:32, Kenneth Graunke wrote: > On Wednesday, July 6, 2016 12:09:58 PM PDT Samuel Iglesias Gonsálvez wrote: >> From: Iago Toral Quiroga >> >> --- >> src/mesa/drivers/dri/i965/brw_fs_nir.cpp | 6 +++--- >> 1 file changed, 3 insertions(+), 3 deletions(-) >> >> diff

[Mesa-dev] [Bug 96853] gl_PrimitiveID is zero when rendering points of size > 1

2016-07-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=96853 --- Comment #5 from denis.fisse...@tu-dortmund.de --- (In reply to Roland Scheidegger from comment #3) > In theory if there already is a user-provided gs (which doesn't output > points) then the emulation code doesn't really apply. But I don't

Re: [Mesa-dev] mesa from git fails to compile

2016-07-11 Thread Emil Velikov
On 10 July 2016 at 22:11, Pali Rohár wrote: > Hello, compiling mesa from git is failing on this error: > > Making all in isl > make[5]: Entering directory `/«PKGBUILDDIR»/build/dri/src/intel/isl' > python2.7 ../../../../../src/intel/isl/gen_format_layout.py \ >