[Mesa-dev] [Bug 90797] [SKL bisected] Mesa change cause performance case manhattan fail.

2015-06-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90797 --- Comment #2 from Tapani Pälli --- Created attachment 116229 --> https://bugs.freedesktop.org/attachment.cgi?id=116229&action=edit patch to fix the issue this fixes the issue, will have to test with different override combinations -- You a

Re: [Mesa-dev] [PATCH resend 7/7] i965: Disable HW-binding tables on batch finish for Broadwell

2015-06-01 Thread Kenneth Graunke
On Monday, June 01, 2015 03:14:30 PM Abdiel Janulgue wrote: > This is needed since kernel doesn't support RS context save and > restore on BDW yet. So manually disable hw-generated binding tables > when done using it in the batch. Otherwise the GPU would no longer > accept software binding tables s

Re: [Mesa-dev] [PATCH resend 2/7] i965: Pass resource streamer enable flags on batchbuffer start

2015-06-01 Thread Kenneth Graunke
On Monday, June 01, 2015 03:14:25 PM Abdiel Janulgue wrote: > This is passed on the kernel to enable the resource streamer enable bit > on MI_BATCHBUFFER_START > > Signed-off-by: Abdiel Janulgue > --- > src/mesa/drivers/dri/i965/brw_context.h | 1 + > src/mesa/drivers/dri/i965/intel_batchb

Re: [Mesa-dev] [PATCH resend 4/7] i965: Implement interface to edit binding table entries

2015-06-01 Thread Kenneth Graunke
On Monday, June 01, 2015 03:14:27 PM Abdiel Janulgue wrote: > Unlike normal software binding tables where the driver has to manually > generate and fill a binding table array which are then uploaded to the > hardware, the resource streamer instead presents the driver with an option > to fill out sl

Re: [Mesa-dev] [PATCH resend 1/7] i965: Define HW-binding table and resource streamer control opcodes

2015-06-01 Thread Kenneth Graunke
On Monday, June 01, 2015 03:14:24 PM Abdiel Janulgue wrote: > v2: Simplify HW binding table bit definitions and magic constants (Topi) > v3: Add Broadwell support. > > Cc: kristian.h.kristen...@intel.com > Cc: topi.pohjolai...@intel.com > Cc: kenn...@whitecape.org > Reviewed-by: Topi Pohjolainen

Re: [Mesa-dev] enable pbuffer for drm platform

2015-06-01 Thread Liu, Ying2
Emil, Thank you so much for your reply. I will rebase my patch to mesa master branch and rerun the tests. I will then send you the test result. Thanks Ying -Original Message- From: Emil Velikov [mailto:emil.l.veli...@gmail.com] Sent: Saturday, May 30, 2015 4:57 AM To: Liu, Ying2 Cc:

Re: [Mesa-dev] [PATCH] glsl: use a subroutine->int conversion unop

2015-06-01 Thread Kenneth Graunke
On Tuesday, June 02, 2015 10:16:11 AM Dave Airlie wrote: > From: Dave Airlie > > This is what it looks like, seems to work fine. > > Signed-off-by: Dave Airlie > --- > src/glsl/ir.cpp| 4 +++- > src/glsl/ir.h | 1 + > src/glsl/ir_build

Re: [Mesa-dev] enable pbuffer for drm platform

2015-06-01 Thread Liu, Ying2
Matt, Thank you so much for reviewing my patch. This is my first time sending out patch to mesa community. Your comments are very helpful. I am in a training right now. I will update my patch according to the comments after that. Thanks Ying -Original Message- From: Matt Turner [mailt

Re: [Mesa-dev] [PATCH 2/2] prog_to_nir: Remove OPCODE_MOV special case.

2015-06-01 Thread Eric Anholt
Kenneth Graunke writes: > On Monday, June 01, 2015 01:03:10 PM Matt Turner wrote: >> OPCODE_MOV is in the op_trans[] array. >> --- >> src/mesa/program/prog_to_nir.c | 2 +- >> 1 file changed, 1 insertion(+), 1 deletion(-) >> >> diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog

Re: [Mesa-dev] [PATCH 1/2] prog_to_nir: Remove from op_trans[] opcodes handled in the switch.

2015-06-01 Thread Kenneth Graunke
On Monday, June 01, 2015 01:03:09 PM Matt Turner wrote: > --- > I'm not missing something, am I? > > src/mesa/program/prog_to_nir.c | 14 +++--- > 1 file changed, 7 insertions(+), 7 deletions(-) Nope, I think this was copy and pasted. IIRC these do scalar operations and splat results, u

Re: [Mesa-dev] [PATCH 2/2] prog_to_nir: Remove OPCODE_MOV special case.

2015-06-01 Thread Kenneth Graunke
On Monday, June 01, 2015 01:03:10 PM Matt Turner wrote: > OPCODE_MOV is in the op_trans[] array. > --- > src/mesa/program/prog_to_nir.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c > index 5e104e7..d6f165e

[Mesa-dev] [PATCH] glsl: use a subroutine->int conversion unop

2015-06-01 Thread Dave Airlie
From: Dave Airlie This is what it looks like, seems to work fine. Signed-off-by: Dave Airlie --- src/glsl/ir.cpp| 4 +++- src/glsl/ir.h | 1 + src/glsl/ir_builder.cpp| 6 ++ src/glsl/ir_builder.h

Re: [Mesa-dev] ARB_shader_subroutine

2015-06-01 Thread Dave Airlie
>> >> I've merged a bunch of Chris's parser changes into mine, >> mainly because the parser needs a bunch of changes to handle >> the fact that .name() no longer parses the same, and after >> reading the GLSL spec and glslang, and failing every other >> way I tried, I produced what looks to be the

[Mesa-dev] [Bug 89018] Civilization: Beyond Earth terrain section not rendered

2015-06-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=89018 --- Comment #17 from Sami Liedes --- I noticed that the game works perfectly for me on Intel HD Graphics 5500 on a Debian unstable with mesa from Debian unstable (though I think Xorg from experimental). Loading the same game on Radeon on a differ

Re: [Mesa-dev] [RFC v2 15/15] swrast: add a new macro, FETCH_COMPRESSED

2015-06-01 Thread Anuj Phogat
On Mon, Jun 1, 2015 at 10:13 AM, Nanley Chery wrote: > From: Nanley Chery > > This patch creates a new macro, FETCH_COMPRESSED - similar in nature > to the other FETCH_* macros. This reduces repetition in the code that > deals with compressed textures. > > Signed-off-by: Nanley Chery > --- > sr

[Mesa-dev] [PATCH 1/2] prog_to_nir: Remove from op_trans[] opcodes handled in the switch.

2015-06-01 Thread Matt Turner
--- I'm not missing something, am I? src/mesa/program/prog_to_nir.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c index 5ca81e5..5e104e7 100644 --- a/src/mesa/program/prog_to_nir.c +++ b/src/mesa/

[Mesa-dev] [PATCH 2/2] prog_to_nir: Remove OPCODE_MOV special case.

2015-06-01 Thread Matt Turner
OPCODE_MOV is in the op_trans[] array. --- src/mesa/program/prog_to_nir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/program/prog_to_nir.c b/src/mesa/program/prog_to_nir.c index 5e104e7..d6f165e 100644 --- a/src/mesa/program/prog_to_nir.c +++ b/src/mesa/program/pr

Re: [Mesa-dev] [PATCH] mesa: fix GLES1 version initialization for gallium

2015-06-01 Thread Matt Turner
On Mon, Jun 1, 2015 at 12:44 PM, Marek Olšák wrote: > From: Marek Olšák > > eglCreateContext was failing. > > Broken by 03fd6704db9f1d0f203bf8da18bd587c7e35ce60 > --- > src/mesa/main/version.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/mesa/main/version.c b/src/

[Mesa-dev] [PATCH] mesa: fix GLES1 version initialization for gallium

2015-06-01 Thread Marek Olšák
From: Marek Olšák eglCreateContext was failing. Broken by 03fd6704db9f1d0f203bf8da18bd587c7e35ce60 --- src/mesa/main/version.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/main/version.c b/src/mesa/main/version.c index 409e5ae..572f2da 100644 --- a/src/mesa/main/

Re: [Mesa-dev] [PATCH 1/6] i965: Consolidate certain miptree params to flags

2015-06-01 Thread Matt Turner
On Fri, May 29, 2015 at 12:33 PM, Chad Versace wrote: > On Fri 29 May 2015, Matt Turner wrote: >> On Thu, May 28, 2015 at 10:21 AM, Ben Widawsky >> > @@ -286,7 +284,7 @@ intel_miptree_create_layout(struct brw_context *brw, >> > mt->logical_height0 = height0; >> > mt->logical_depth0 = depth

Re: [Mesa-dev] [RFC v2 12/15] i965: correct VALIGN for 2d textures on Skylake

2015-06-01 Thread Neil Roberts
Looks good to me. Reviewed-by: Neil Roberts - Neil Anuj Phogat writes: > Adding Neil to Cc who committed 4ab8d59. > > Reviewed-by: Anuj Phogat ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/me

Re: [Mesa-dev] [PATCH V2 02/22] i965: Choose tiling in brw_miptree_layout() function

2015-06-01 Thread Anuj Phogat
On Fri, Apr 24, 2015 at 10:54 AM, Anuj Phogat wrote: > On Thu, Apr 23, 2015 at 4:38 PM, Pohjolainen, Topi > wrote: >> On Fri, Apr 17, 2015 at 04:51:23PM -0700, Anuj Phogat wrote: >>> This refactoring is required by later patches in this series. >>> >>> Signed-off-by: Anuj Phogat >>> --- >>> src

Re: [Mesa-dev] [PATCH 5/6] egl/dri2: silence uninitialized variable warnings

2015-06-01 Thread Matt Turner
On Mon, Jun 1, 2015 at 6:20 AM, Brian Paul wrote: > And update assertions to be more informative. > --- > src/egl/drivers/dri2/egl_dri2.c | 6 -- > 1 file changed, 4 insertions(+), 2 deletions(-) > > diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c > index fe5cbc

Re: [Mesa-dev] [RFC v2 12/15] i965: correct VALIGN for 2d textures on Skylake

2015-06-01 Thread Anuj Phogat
On Mon, Jun 1, 2015 at 10:13 AM, Nanley Chery wrote: > From: Nanley Chery > > In agreement with commit 4ab8d59a23, vertical alignment values are equal to > four times the block height on Gen9+. > > Signed-off-by: Nanley Chery > --- > src/mesa/drivers/dri/i965/brw_tex_layout.c | 7 +-- > 1 f

Re: [Mesa-dev] [RFC v2 13/15] mesa/macros: add power-of-two assertions for ALIGN and ROUND_DOWN_TO

2015-06-01 Thread Brian Paul
On 06/01/2015 11:46 AM, Brian Paul wrote: On 06/01/2015 11:13 AM, Nanley Chery wrote: From: Nanley Chery ALIGN and ROUND_DOWN_TO both require that the alignment value passed into the macro be a power of two in the comments. Using software assertions verifies this to be the case. Signed-off-by

Re: [Mesa-dev] [RFC v2 13/15] mesa/macros: add power-of-two assertions for ALIGN and ROUND_DOWN_TO

2015-06-01 Thread Brian Paul
On 06/01/2015 11:13 AM, Nanley Chery wrote: From: Nanley Chery ALIGN and ROUND_DOWN_TO both require that the alignment value passed into the macro be a power of two in the comments. Using software assertions verifies this to be the case. Signed-off-by: Nanley Chery --- src/mesa/main/macros.

[Mesa-dev] [RFC v2 07/15] mesa/teximage: return the base internal format of the ASTC formats

2015-06-01 Thread Nanley Chery
From: Nanley Chery This is necesary to initialize the gl_texture_image struct. From the KHR_texture_compression_astc_ldr spec: "Added to Section 3.8.6, Compressed Texture Images Add the tokens specified above to Table 3.16, Compressed Internal Formats. In all cases, the base internal fo

[Mesa-dev] [RFC v2 14/15] i965: refactor miptree alignment calculation code

2015-06-01 Thread Nanley Chery
From: Nanley Chery - Remove redundant checks and comments by grouping our calculations for align_w and align_h wherever possible. - Don't pass more parameters than necessary. - Minor code simplifications. Signed-off-by: Nanley Chery --- src/mesa/drivers/dri/i965/brw_tex_layout.c | 181 ++

[Mesa-dev] [RFC v2 15/15] swrast: add a new macro, FETCH_COMPRESSED

2015-06-01 Thread Nanley Chery
From: Nanley Chery This patch creates a new macro, FETCH_COMPRESSED - similar in nature to the other FETCH_* macros. This reduces repetition in the code that deals with compressed textures. Signed-off-by: Nanley Chery --- src/mesa/swrast/s_texfetch.c | 239 -

[Mesa-dev] [RFC v2 00/15] Add support for 2D ASTC

2015-06-01 Thread Nanley Chery
From: Nanley Chery In this revision, comments have been taken into account and most rendering issues have been fixed. Unfortunately, when rendering the reference sRGB textures, the HW-loaded compressed versions are still rendered darker than the pre-decoded SW ones. The Piglit tests for this exte

[Mesa-dev] [RFC v2 13/15] mesa/macros: add power-of-two assertions for ALIGN and ROUND_DOWN_TO

2015-06-01 Thread Nanley Chery
From: Nanley Chery ALIGN and ROUND_DOWN_TO both require that the alignment value passed into the macro be a power of two in the comments. Using software assertions verifies this to be the case. Signed-off-by: Nanley Chery --- src/mesa/main/macros.h | 10 -- 1 file changed, 8 insertions

[Mesa-dev] [RFC v2 09/15] i965/surface_formats: add support for 2D ASTC surface formats

2015-06-01 Thread Nanley Chery
From: Nanley Chery Intel surface formats default to LDR unless there is hardware support for HDR and the texture is able to be processed in HDR mode. v2: remove extra newlines. Signed-off-by: Nanley Chery --- src/mesa/drivers/dri/i965/brw_defines.h | 34 + src/mesa/drivers

[Mesa-dev] [RFC v2 10/15] i965: enable ASTC support for Skylake

2015-06-01 Thread Nanley Chery
From: Nanley Chery v2: remove OES ASTC extension reference. Signed-off-by: Nanley Chery --- src/mesa/drivers/dri/i965/intel_extensions.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index 1

[Mesa-dev] [RFC v2 11/15] i965: change the meaning of cpp for compressed textures

2015-06-01 Thread Nanley Chery
From: Nanley Chery An ASTC block takes up 16 bytes for all block width and height configurations. This size is not integrally divisible by all ASTC block widths. Therefore cpp is changed to mean bytes per block if the texture is compressed. Along with changing the cpp definition, the units for m

[Mesa-dev] [RFC v2 12/15] i965: correct VALIGN for 2d textures on Skylake

2015-06-01 Thread Nanley Chery
From: Nanley Chery In agreement with commit 4ab8d59a23, vertical alignment values are equal to four times the block height on Gen9+. Signed-off-by: Nanley Chery --- src/mesa/drivers/dri/i965/brw_tex_layout.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/mesa/dr

[Mesa-dev] [RFC v2 01/15] mesa/formats: define the 2D ASTC formats

2015-06-01 Thread Nanley Chery
From: Nanley Chery Includes definition of the formats, updates to functions likely to be used, as well as changes necessary for compilation. Signed-off-by: Nanley Chery --- src/mesa/main/format_info.py | 3 + src/mesa/main/formats.c | 130 +++ src

[Mesa-dev] [RFC v2 08/15] mesa/formats: store whether or not a format is sRGB in gl_format_info

2015-06-01 Thread Nanley Chery
From: Nanley Chery v2: remove extra newline. Signed-off-by: Nanley Chery --- src/mesa/main/format_info.py | 2 ++ src/mesa/main/formats.c | 28 2 files changed, 6 insertions(+), 24 deletions(-) diff --git a/src/mesa/main/format_info.py b/src/mesa/main/format

[Mesa-dev] [RFC v2 06/15] mesa/texcompress: enable translation between MESA and GL ASTC formats

2015-06-01 Thread Nanley Chery
From: Nanley Chery Signed-off-by: Nanley Chery --- src/mesa/main/texcompress.c | 114 1 file changed, 114 insertions(+) diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c index 1654fc6..203a065 100644 --- a/src/mesa/main/texcompr

[Mesa-dev] [RFC v2 02/15] glapi: add support for KHR_texture_compression_astc_ldr

2015-06-01 Thread Nanley Chery
From: Nanley Chery v2: correct the spelling of the sRGB variants. remove spaces around "=" when setting the enum value. Signed-off-by: Nanley Chery --- .../glapi/gen/KHR_texture_compression_astc.xml | 40 ++ src/mapi/glapi/gen/Makefile.am | 1 +

[Mesa-dev] [RFC v2 04/15] mesa: add ASTC extensions to the extensions table

2015-06-01 Thread Nanley Chery
From: Nanley Chery v2: alphabetize the extensions. remove OES ASTC extension. Signed-off-by: Nanley Chery --- src/mesa/main/extensions.c | 2 ++ src/mesa/main/mtypes.h | 2 ++ 2 files changed, 4 insertions(+) diff --git a/src/mesa/main/extensions.c b/src/mesa/main/extensions.c index c

[Mesa-dev] [RFC v2 03/15] mesa: disable online compression for ASTC formats

2015-06-01 Thread Nanley Chery
From: Nanley Chery Signed-off-by: Nanley Chery --- src/mesa/main/texcompress.c | 22 ++ src/mesa/main/teximage.c| 28 2 files changed, 50 insertions(+) diff --git a/src/mesa/main/texcompress.c b/src/mesa/main/texcompress.c index 0fd1a36..165

[Mesa-dev] [RFC v2 05/15] mesa/glformats: recognize ASTC formats as compressed

2015-06-01 Thread Nanley Chery
From: Nanley Chery Signed-off-by: Nanley Chery --- src/mesa/main/glformats.c | 29 + 1 file changed, 29 insertions(+) diff --git a/src/mesa/main/glformats.c b/src/mesa/main/glformats.c index 6a77c91..10e2a87 100644 --- a/src/mesa/main/glformats.c +++ b/src/mesa/main

Re: [Mesa-dev] [PATCH 3/5] nir: constify instruction comparison functions

2015-06-01 Thread Jason Ekstrand
On Jun 1, 2015 8:41 AM, "Pohjolainen, Topi" wrote: > > On Mon, Jun 01, 2015 at 06:50:24AM -0700, Jason Ekstrand wrote: > >On Jun 1, 2015 3:20 AM, "Pohjolainen, Topi" < topi.pohjolai...@intel.com> > >wrote: > >> > >> On Fri, May 22, 2015 at 02:24:50PM -0400, Connor Abbott wrote: > >

Re: [Mesa-dev] [PATCH 3/5] nir: constify instruction comparison functions

2015-06-01 Thread Pohjolainen, Topi
On Mon, Jun 01, 2015 at 06:50:24AM -0700, Jason Ekstrand wrote: >On Jun 1, 2015 3:20 AM, "Pohjolainen, Topi" >wrote: >> >> On Fri, May 22, 2015 at 02:24:50PM -0400, Connor Abbott wrote: >> > Signed-off-by: Connor Abbott >> > --- >> > src/glsl/nir/nir.h |

[Mesa-dev] XDC2015: Call for papers

2015-06-01 Thread Tom Stellard
Hello, I have the pleasure to announce that the X.org Developer Conference 2015 will be held in Toronto, Canada from September 16 to September 18. The venue is located at Seneca College's campus at York University. The official page for the event is http://www.x.org/wiki/Events/XDC2015 while the

Re: [Mesa-dev] [PATCH 1/2] i965: Don't use a temporary when generating an indirect sample

2015-06-01 Thread Neil Roberts
Many thanks for all the reviews and testing. I've pushed the two patches. The remaining sampler_array_indexing tests that fail on SKL (the gs ones) are because of a separate problem described in this patch: http://patchwork.freedesktop.org/patch/50676/ I'm not really sure whether that's the clea

Re: [Mesa-dev] [PATCH 3/5] nir: constify instruction comparison functions

2015-06-01 Thread Jason Ekstrand
On Jun 1, 2015 3:20 AM, "Pohjolainen, Topi" wrote: > > On Fri, May 22, 2015 at 02:24:50PM -0400, Connor Abbott wrote: > > Signed-off-by: Connor Abbott > > --- > > src/glsl/nir/nir.h | 4 ++-- > > src/glsl/nir/nir_instr_compare.c | 8 > > 2 files changed, 6 insertions(+), 6

Re: [Mesa-dev] [PATCH 02/19] glapi: Add ARB_shader_subroutine functions and enums

2015-06-01 Thread Tapani
You did not do changes I suggested but it looks to me that the comments are still valid. (http://lists.freedesktop.org/archives/mesa-dev/2015-April/082523.html) In a nutshell, parameters that get written to should have qualifier "output=true". It could be that it is not strictly required, howev

Re: [Mesa-dev] [PATCH 1/6] draw: silence unused var warnings for non-debug build

2015-06-01 Thread Jose Fonseca
On 01/06/15 14:20, Brian Paul wrote: --- src/gallium/auxiliary/draw/draw_llvm.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index b9e55af..885c27c 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c ++

[Mesa-dev] [PATCH 2/6] st/mesa: silence unused var warnings for non-debug build

2015-06-01 Thread Brian Paul
--- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_to_tgsi.cpp index 719d081..db190c9 100644 --- a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp +++ b/src/mesa/state_tracker/st

[Mesa-dev] [PATCH 6/6] gallium/util: silence silence unused var warnings for non-debug build

2015-06-01 Thread Brian Paul
--- src/gallium/auxiliary/util/u_format_etc.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/util/u_format_etc.c b/src/gallium/auxiliary/util/u_format_etc.c index f909b16..63e03ff 100644 --- a/src/gallium/auxiliary/util/u_format_etc.c +++ b/src/gallium

[Mesa-dev] [PATCH 3/6] pipebuffer: silence unused var warnings for non-debug build

2015-06-01 Thread Brian Paul
--- src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c b/src/gallium/auxiliary/pipebuffer/pb_buffer_fenced.c index 3bd9cd7..fc81e11 100644 --- a/src/gallium/auxiliary/pipebuffer/pb_buffer_fenc

[Mesa-dev] [PATCH 1/6] draw: silence unused var warnings for non-debug build

2015-06-01 Thread Brian Paul
--- src/gallium/auxiliary/draw/draw_llvm.c | 4 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/draw/draw_llvm.c b/src/gallium/auxiliary/draw/draw_llvm.c index b9e55af..885c27c 100644 --- a/src/gallium/auxiliary/draw/draw_llvm.c +++ b/src/gallium/auxiliary/draw/draw_llvm.

[Mesa-dev] [PATCH 4/6] gallivm: silence unused var warnings for non-debug build

2015-06-01 Thread Brian Paul
--- src/gallium/auxiliary/gallivm/lp_bld_format_aos.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c b/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c index 3c25c32..efe7170 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_format_aos.c +++

[Mesa-dev] [PATCH 5/6] egl/dri2: silence uninitialized variable warnings

2015-06-01 Thread Brian Paul
And update assertions to be more informative. --- src/egl/drivers/dri2/egl_dri2.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index fe5cbc8..8b915ef 100644 --- a/src/egl/drivers/dri2/egl_dri2.c +++ b/sr

[Mesa-dev] [PATCH resend 5/7] i965: Upload binding tables in hw-generated binding table format.

2015-06-01 Thread Abdiel Janulgue
When hardware-generated binding tables are enabled, use the hw-generated binding table format when uploading binding table state. Normally, the CS will will just consume the binding table pointer commands as pipelined state. When the RS is enabled however, the RS flushes whatever edited surface st

[Mesa-dev] [PATCH resend 1/7] i965: Define HW-binding table and resource streamer control opcodes

2015-06-01 Thread Abdiel Janulgue
v2: Simplify HW binding table bit definitions and magic constants (Topi) v3: Add Broadwell support. Cc: kristian.h.kristen...@intel.com Cc: topi.pohjolai...@intel.com Cc: kenn...@whitecape.org Reviewed-by: Topi Pohjolainen Signed-off-by: Abdiel Janulgue --- src/mesa/drivers/dri/i965/brw_defines

[Mesa-dev] [PATCH resend 2/7] i965: Pass resource streamer enable flags on batchbuffer start

2015-06-01 Thread Abdiel Janulgue
This is passed on the kernel to enable the resource streamer enable bit on MI_BATCHBUFFER_START Signed-off-by: Abdiel Janulgue --- src/mesa/drivers/dri/i965/brw_context.h | 1 + src/mesa/drivers/dri/i965/intel_batchbuffer.c | 8 +++- 2 files changed, 8 insertions(+), 1 deletion(-) dif

[Mesa-dev] [PATCH resend 6/7] i965: Disable resource streamer in BLORP

2015-06-01 Thread Abdiel Janulgue
Switch off hardware-generated binding tables and gather push constants in the blorp. Blorp requires only a minimal set of simple constants. There is no need for the extra complexity to program a gather table entry into the pipeline. Signed-off-by: Abdiel Janulgue --- src/mesa/drivers/dri/i965/ge

[Mesa-dev] [PATCH resend 3/7] i965: Enable hardware-generated binding tables on render path.

2015-06-01 Thread Abdiel Janulgue
This patch implements the binding table enable command which is also used to allocate a binding table pool where where hardware-generated binding table entries are flushed into. Each binding table offset in the binding table pool is unique per each shader stage that are enabled within a batch. Als

[Mesa-dev] [PATCH resend 4/7] i965: Implement interface to edit binding table entries

2015-06-01 Thread Abdiel Janulgue
Unlike normal software binding tables where the driver has to manually generate and fill a binding table array which are then uploaded to the hardware, the resource streamer instead presents the driver with an option to fill out slots for individual binding table indices. The hardware accumulates t

[Mesa-dev] [PATCH resend 7/7] i965: Disable HW-binding tables on batch finish for Broadwell

2015-06-01 Thread Abdiel Janulgue
This is needed since kernel doesn't support RS context save and restore on BDW yet. So manually disable hw-generated binding tables when done using it in the batch. Otherwise the GPU would no longer accept software binding tables submitted by other clients including but not limited to the Xorg driv

Re: [Mesa-dev] [PATCH 4/5] nir: add a helper for finding duplicate instructions

2015-06-01 Thread Pohjolainen, Topi
On Fri, May 22, 2015 at 02:24:51PM -0400, Connor Abbott wrote: > This can be used for both CSE and value numbering. > > Signed-off-by: Connor Abbott > --- > src/glsl/Makefile.sources | 2 + > src/glsl/nir/nir_instr_hash.c | 255 > ++ > src/glsl/nir/

Re: [Mesa-dev] [PATCH 3/5] nir: constify instruction comparison functions

2015-06-01 Thread Pohjolainen, Topi
On Fri, May 22, 2015 at 02:24:50PM -0400, Connor Abbott wrote: > Signed-off-by: Connor Abbott > --- > src/glsl/nir/nir.h | 4 ++-- > src/glsl/nir/nir_instr_compare.c | 8 > 2 files changed, 6 insertions(+), 6 deletions(-) > > diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/

[Mesa-dev] [PATCH] i965: Replace illegal compacted NOP with valid compact instruction

2015-06-01 Thread Zhenyu Wang
NOP actually has no compact version, but we use it for instruction alignment for compact kernel. Although it seems working on HW, it is illegal and might not be valid for any future one. This trys to get a temporary compact instruction with no effect for alignment to replace compacted NOP. G45 spe

Re: [Mesa-dev] [PATCH 2/5] nir: constify nir_ssa_alu_instr_src_components()

2015-06-01 Thread Pohjolainen, Topi
On Fri, May 22, 2015 at 02:24:49PM -0400, Connor Abbott wrote: > Signed-off-by: Connor Abbott Reviewed-by: Topi Pohjolainen > --- > src/glsl/nir/nir.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h > index f04195f..e3b7b17 1006

Re: [Mesa-dev] Ideas on loop unrolling, loop examples, and my GSoC-blog

2015-06-01 Thread Eero Tamminen
Hi, On 05/29/2015 07:04 PM, Connor Abbott wrote: On Fri, May 29, 2015 at 6:23 AM, Eero Tamminen wrote: On 05/28/2015 10:19 PM, Thomas Helland wrote: One more thing; Is there a limit where the loop body gets so large that we want to decide that "gah, this sucks, no point in unrolling this"? I

[Mesa-dev] [Bug 90797] [SKL bisected] Mesa change cause performance case manhattan fail.

2015-06-01 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90797 Eero Tamminen changed: What|Removed |Added CC||eero.t.tammi...@intel.com,

Re: [Mesa-dev] [PATCH 19/19] st/mesa: enable shader subroutine

2015-06-01 Thread Marek Olšák
In that case, it should use the ARB_gpu_shader5 enable bit. Marek On Mon, Jun 1, 2015 at 5:41 AM, Kenneth Graunke wrote: > On Monday, June 01, 2015 11:35:03 AM Dave Airlie wrote: >> From: Dave Airlie >> >> I'm not sure if we shouldn't enable this everywhere >> and rip out the API checks, >> >>

Re: [Mesa-dev] [PATCH 19/19] st/mesa: enable shader subroutine

2015-06-01 Thread Steven Newbury
On Sun, 2015-05-31 at 20:41 -0700, Kenneth Graunke wrote: > On Monday, June 01, 2015 11:35:03 AM Dave Airlie wrote: > > From: Dave Airlie > > > > I'm not sure if we shouldn't enable this everywhere > > and rip out the API checks, > > > > discuss, > > > > Signed-off-by: Dave Airlie > > --- > >