[Mesa-dev] [PATCH] nir/copy_propagate: do not copy-propagate MOV srcs with source modifiers

2015-11-11 Thread Iago Toral Quiroga
If a source operand in a MOV has source modifiers, then we cannot copy-propagate it from the parent instruction and remove the MOV. --- I noticed this while debugging some regressions introduced with the fp64 code. Basically, I had code similar to this: vec4 ssa1 = intrincisc1 (...) (...) vec2 ss

[Mesa-dev] Mesa 11.0.5

2015-11-11 Thread Emil Velikov
Mesa 11.0.5 is now available. With this release we have some driver patches for i965 and nouveau, a couple of llvm 3.7 related fixes and a some bugfixes in the VA state-tracker. Additionally we have a few new PCI ids for i965 and radeonsi. The list of exported OSMesa symbols under Windows has bee

[Mesa-dev] [PATCH][mesa-demos] configure.ac: fix AC_WITH(glut) so that --without-glut works

2015-11-11 Thread Ross Burton
Currently if --without-glut is used on a system that has the GLUT libraries installed, GLUT is used regardless. Change the logic so that GLUT is searched for if and only if GLUT is requested. Signed-off-by: Ross Burton --- configure.ac | 26 +++--- 1 file changed, 15 inserti

Re: [Mesa-dev] [PATCH 1/7] glsl: Add API to put default precision qualifiers in the symbol table

2015-11-11 Thread Samuel Iglesias Gonsálvez
Reviewed-by: Samuel Iglesias Gonsálvez On 05/11/15 12:33, Tapani Pälli wrote: > From: Iago Toral Quiroga > > These have scoping rules that match the ones defined for other things such > as variables, so we want them in the symbol table. > --- > src/glsl/glsl_symbol_table.cpp | 24 +

Re: [Mesa-dev] [PATCH 4/7] glsl: Move the definition of precision_qualifier_allowed

2015-11-11 Thread Samuel Iglesias Gonsálvez
You can either move the function or add the function forward declaration. In any case, Reviewed-by: Samuel Iglesias Gonsálvez Sam On 05/11/15 12:33, Tapani Pälli wrote: > From: Iago Toral Quiroga > > We will need this to build later patches > --- > src/glsl/ast_to_hir.cpp | 71 > ++

Re: [Mesa-dev] [PATCH 3/7] glsl: Add user-defined default precision qualifiers to the symbol table

2015-11-11 Thread Samuel Iglesias Gonsálvez
Reviewed-by: Samuel Iglesias Gonsálvez On 05/11/15 12:33, Tapani Pälli wrote: > From: Iago Toral Quiroga > > Notice that the spec requires that a default precision has been set for every > type used by a shader that can use a precision qualifier and does not have a > predefined precision, howev

Re: [Mesa-dev] [PATCH v5 5/7] glsl: Add precision information to ir_variable

2015-11-11 Thread Samuel Iglesias Gonsálvez
Reviewed-by: Samuel Iglesias Gonsálvez On 06/11/15 13:03, Tapani Pälli wrote: > From: Iago Toral Quiroga > > We will need this later on when we implement proper support for > precision qualifiers in the drivers and also to do link time checks for > uniforms as indicated by the spec. > > This p

[Mesa-dev] [PATCH] i965/fs/nir: fix the number of register written by FS_OPCODE_GET_BUFFER_SIZE

2015-11-11 Thread Samuel Iglesias Gonsálvez
FS_OPCODE_GET_BUFFER_SIZE is calculated with a resinfo's sampler message. This patch adjusts the number of registers written by the opcode following what the PRM spec says about the number of registers written by the SIMD8 and SIMD16's writeback messages for sampler messages. Signed-off-by: Samue

Re: [Mesa-dev] [PATCH] i965/fs/nir: fix the number of register written by FS_OPCODE_GET_BUFFER_SIZE

2015-11-11 Thread Lofstedt, Marta
Nice! This fixes 12 GLES 3.1 CTS tests. > -Original Message- > From: mesa-dev [mailto:mesa-dev-boun...@lists.freedesktop.org] On > Behalf Of Samuel Iglesias Gonsálvez > Sent: Wednesday, November 11, 2015 4:07 PM > To: mesa-dev@lists.freedesktop.org > Subject: [Mesa-dev] [PATCH] i965/fs/ni

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Emil Velikov
Hi Brian, On 10 November 2015 at 16:48, Brian Paul wrote: > On 11/09/2015 09:24 PM, Valera Rozuvan wrote: >> >> On Tue, Nov 10, 2015 at 4:13 AM, Brian Paul wrote: >>> >>> After running depmod, you probably need to update the initramfs with: >>> 'sudo update-initramfs -u' >>> >>> -Brian >> >> >>

Re: [Mesa-dev] [PATCH] texgetimage: consolidate 1D array handling code.

2015-11-11 Thread Brian Paul
Just two minor nits below. On 11/10/2015 07:34 PM, Dave Airlie wrote: From: Dave Airlie This should fix the getteximage-depth test that currently asserts. I was hitting problem with virgl as well in this area. This moves the 1D array handling code to a single place. Signed-off-by: Dave Air

Re: [Mesa-dev] [PATCH] nir/copy_propagate: do not copy-propagate MOV srcs with source modifiers

2015-11-11 Thread Jason Ekstrand
On Wed, Nov 11, 2015 at 12:20 AM, Iago Toral Quiroga wrote: > If a source operand in a MOV has source modifiers, then we cannot > copy-propagate it from the parent instruction and remove the MOV. > --- > > I noticed this while debugging some regressions introduced with the fp64 > code. Basically,

Re: [Mesa-dev] [PATCH] i965/fs/nir: fix the number of register written by FS_OPCODE_GET_BUFFER_SIZE

2015-11-11 Thread Jason Ekstrand
On Wed, Nov 11, 2015 at 7:07 AM, Samuel Iglesias Gonsálvez wrote: > FS_OPCODE_GET_BUFFER_SIZE is calculated with a resinfo's sampler message. > > This patch adjusts the number of registers written by the opcode > following what the PRM spec says about the number of registers written > by the SIMD8

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Brian Paul
On 11/11/2015 08:44 AM, Emil Velikov wrote: Hi Brian, On 10 November 2015 at 16:48, Brian Paul wrote: On 11/09/2015 09:24 PM, Valera Rozuvan wrote: On Tue, Nov 10, 2015 at 4:13 AM, Brian Paul wrote: After running depmod, you probably need to update the initramfs with: 'sudo update-initram

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Ilia Mirkin
On Wed, Nov 11, 2015 at 11:48 AM, Brian Paul wrote: >> I think there is a hunk missing about --enable-texture-float for >> ARB_texture_float (and ultimately GL 3.0). > > > N/A; that option defines the TEXTURE_FLOAT_ENABLED symbol which is only > tested in _mesa_enable_sw_extensions(). boolean uti

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Ilia Mirkin
On Wed, Nov 11, 2015 at 11:58 AM, Ilia Mirkin wrote: > On Wed, Nov 11, 2015 at 11:48 AM, Brian Paul wrote: >>> I think there is a hunk missing about --enable-texture-float for >>> ARB_texture_float (and ultimately GL 3.0). >> >> >> N/A; that option defines the TEXTURE_FLOAT_ENABLED symbol which i

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Brian Paul
On 11/11/2015 09:58 AM, Ilia Mirkin wrote: On Wed, Nov 11, 2015 at 11:48 AM, Brian Paul wrote: I think there is a hunk missing about --enable-texture-float for ARB_texture_float (and ultimately GL 3.0). N/A; that option defines the TEXTURE_FLOAT_ENABLED symbol which is only tested in _mesa_e

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Emil Velikov
On 11 November 2015 at 16:48, Brian Paul wrote: > On 11/11/2015 08:44 AM, Emil Velikov wrote: >> >> I have seen similar type of documents in the past, most of which going >> out of date very quickly due to distribution changes and/or others. >> Wondering how you'll feel about "check your distro a

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Brian Paul
On 11/09/2015 09:24 PM, Valera Rozuvan wrote: On Tue, Nov 10, 2015 at 4:13 AM, Brian Paul wrote: After running depmod, you probably need to update the initramfs with: 'sudo update-initramfs -u' -Brian Hi Brian. First of all, thank you for your reply. I have tried your suggestion on my worki

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Brian Paul
On 11/11/2015 10:44 AM, Emil Velikov wrote: On 11 November 2015 at 16:48, Brian Paul wrote: On 11/11/2015 08:44 AM, Emil Velikov wrote: I have seen similar type of documents in the past, most of which going out of date very quickly due to distribution changes and/or others. Wondering how yo

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Thomas Hellstrom
On 11/11/2015 07:07 PM, Brian Paul wrote: > On 11/11/2015 10:44 AM, Emil Velikov wrote: >> On 11 November 2015 at 16:48, Brian Paul wrote: >>> On 11/11/2015 08:44 AM, Emil Velikov wrote: >> I have seen similar type of documents in the past, most of which going out of date very quick

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Emil Velikov
On 11 November 2015 at 18:25, Thomas Hellstrom wrote: > On 11/11/2015 07:07 PM, Brian Paul wrote: >> On 11/11/2015 10:44 AM, Emil Velikov wrote: >>> On 11 November 2015 at 16:48, Brian Paul wrote: On 11/11/2015 08:44 AM, Emil Velikov wrote: >>> > > I have seen similar type of documen

[Mesa-dev] [Bug 92860] [radeonsi][bisected] st/mesa: implement ARB_copy_image - Corruption in ARK Survival Evolved

2015-11-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=92860 Ilia Mirkin changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Brian Paul
On 11/11/2015 11:38 AM, Emil Velikov wrote: On 11 November 2015 at 18:25, Thomas Hellstrom wrote: On 11/11/2015 07:07 PM, Brian Paul wrote: On 11/11/2015 10:44 AM, Emil Velikov wrote: On 11 November 2015 at 16:48, Brian Paul wrote: On 11/11/2015 08:44 AM, Emil Velikov wrote: I have seen

[Mesa-dev] [PATCH v2 2/3] i965: Add a SHADER_OPCODE_URB_READ_SIMD8_PER_SLOT opcode.

2015-11-11 Thread Kenneth Graunke
We need to use per-slot offsets when there's non-uniform indexing, as each SIMD channel could have a different index. We want to use them for any non-constant index (even if uniform), as it lives in the message header instead of the descriptor, allowing us to set offsets in GRFs rather than immedi

[Mesa-dev] [PATCH v2 1/3] i965: Introduce a MOV_INDIRECT opcode.

2015-11-11 Thread Kenneth Graunke
The geometry and tessellation control shader stages both read from multiple URB entries (one per vertex). The thread payload contains several URB handles which reference these separate memory segments. In GLSL, these inputs are represented as per-vertex arrays; the outermost array index selects w

[Mesa-dev] [PATCH v2 3/3] i965: Allow indirect GS input indexing in the scalar backend.

2015-11-11 Thread Kenneth Graunke
This allows arbitrary non-constant indices on GS input arrays, both for the vertex index, and any array offsets beyond that. All indirects are handled via the pull model. We could potentially handle indirect addressing of pushed data as well, but it would add additional code complexity, and we us

Re: [Mesa-dev] [PATCH 9/9] i965: Check accumulator restrictions.

2015-11-11 Thread Kenneth Graunke
On Monday, November 09, 2015 12:05:34 PM Matt Turner wrote: > On Tue, Nov 3, 2015 at 11:53 PM, Kenneth Graunke > wrote: > > On Wednesday, October 21, 2015 03:58:17 PM Matt Turner wrote: > >> --- > >> src/mesa/drivers/dri/i965/brw_eu_validate.c | 244 > >> > >> 1 fil

Re: [Mesa-dev] [RFC PATCH 00/40] Rework/consolidate the pipe-loader business

2015-11-11 Thread Rob Clark
On Mon, Nov 9, 2015 at 8:39 AM, Rob Clark wrote: > On Mon, Nov 9, 2015 at 8:30 AM, Emil Velikov wrote: >> On 30 October 2015 at 17:57, Emil Velikov wrote: >>> On 19 October 2015 at 18:41, Emil Velikov wrote: On 19 October 2015 at 17:07, Brian Paul wrote: >>> > > I'm not too famili

Re: [Mesa-dev] [PATCH 12/24] i965: Initialize registers' file to BAD_FILE.

2015-11-11 Thread Kenneth Graunke
On Monday, November 02, 2015 04:29:22 PM Matt Turner wrote: > The test (file == BAD_FILE) works on registers for which the constructor > has not run because BAD_FILE is zero. The next commit will move > BAD_FILE in the enum so that it's no longer zero. > --- > src/mesa/drivers/dri/i965/brw_fs_nir

Re: [Mesa-dev] [PATCH 15/24] i965/fs: Set stride = 1 for vector immediate types.

2015-11-11 Thread Kenneth Graunke
On Monday, November 02, 2015 04:29:25 PM Matt Turner wrote: > The generator asserts that this is true (and presumably it's useful in > some optimization passes?) and the VF fs_reg constructors did this (by > virtue of the fact that it doesn't override what init() does). > > In the next commit, cal

Re: [Mesa-dev] [PATCH 15/24] i965/fs: Set stride = 1 for vector immediate types.

2015-11-11 Thread Kenneth Graunke
On Monday, November 02, 2015 04:29:25 PM Matt Turner wrote: > The generator asserts that this is true (and presumably it's useful in > some optimization passes?) and the VF fs_reg constructors did this (by > virtue of the fact that it doesn't override what init() does). > > In the next commit, cal

Re: [Mesa-dev] [PATCH 12/24] i965: Initialize registers' file to BAD_FILE.

2015-11-11 Thread Matt Turner
On Wed, Nov 11, 2015 at 12:46 PM, Kenneth Graunke wrote: > On Monday, November 02, 2015 04:29:22 PM Matt Turner wrote: >> The test (file == BAD_FILE) works on registers for which the constructor >> has not run because BAD_FILE is zero. The next commit will move >> BAD_FILE in the enum so that it'

Re: [Mesa-dev] [PATCH 15/24] i965/fs: Set stride = 1 for vector immediate types.

2015-11-11 Thread Matt Turner
On Wed, Nov 11, 2015 at 1:02 PM, Kenneth Graunke wrote: > On Monday, November 02, 2015 04:29:25 PM Matt Turner wrote: >> The generator asserts that this is true (and presumably it's useful in >> some optimization passes?) and the VF fs_reg constructors did this (by >> virtue of the fact that it do

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Thomas Hellstrom
On 11/11/2015 08:51 PM, Brian Paul wrote: > On 11/11/2015 11:38 AM, Emil Velikov wrote: >> On 11 November 2015 at 18:25, Thomas Hellstrom >> wrote: >>> On 11/11/2015 07:07 PM, Brian Paul wrote: On 11/11/2015 10:44 AM, Emil Velikov wrote: > On 11 November 2015 at 16:48, Brian Paul wrote:

Re: [Mesa-dev] Can't get OpenGL 3.x inside VMware Workstation 12 (Ubuntu guest)

2015-11-11 Thread Emil Velikov
On 11 November 2015 at 19:51, Brian Paul wrote: > On 11/11/2015 11:38 AM, Emil Velikov wrote: >> >> On 11 November 2015 at 18:25, Thomas Hellstrom >> wrote: >>> >>> On 11/11/2015 07:07 PM, Brian Paul wrote: On 11/11/2015 10:44 AM, Emil Velikov wrote: > > On 11 November 2015 at 1

Re: [Mesa-dev] [PATCH] gallium/hud: document GALLIUM_HUD_PERIOD in envvars.html.

2015-11-11 Thread Jimmy Berry
Do I need to do something to else to get this committed? Not 100% on process. -- Jimmy On Wed, Nov 4, 2015 at 2:32 AM, Samuel Pitoiset wrote: > Reviewed-by: Samuel Pitoiset > > > > On 11/04/2015 06:24 AM, Jimmy Berry wrote: >> >> --- >> docs/envvars.html | 2 ++ >> 1 file changed, 2 inserti

Re: [Mesa-dev] [PATCH v4] gallium/hud: control visibility at startup and runtime.

2015-11-11 Thread Jimmy Berry
For documentation purposes, we discussed things in IRC and should be reflected in v6. -- Jimmy On Sat, Nov 7, 2015 at 10:49 PM, Ilia Mirkin wrote: > On Sat, Nov 7, 2015 at 11:42 PM, Jimmy Berry wrote: >> - env GALLIUM_HUD_VISIBLE: control default visibility >> - env GALLIUM_HUD_SIGNAL_TOGGLE:

[Mesa-dev] [PATCH 0/7] [v2] Gen9 MCS buffers

2015-11-11 Thread Ben Widawsky
These patches represent the remaining patches for enabling fast color clears on GEN9+. Mostly they address feedback from Chad. There is one spot where I am waiting for him to tell me what he wants for a comment [i965/meta/gen9: Individually fast clear color attachments]. Hopefully we can get that a

[Mesa-dev] [PATCH 3/7] [v2] i965/skl: skip fast clears for certain surface formats

2015-11-11 Thread Ben Widawsky
Some of the information originally in this commit message is now in the patch before this. SKL adds compressible render targets and as a result mutates some of the programming for fast clears and resolves. There is a new internal surface type called the CCS. The old AUX_MCS bit becomes AUX_CCS_D.

[Mesa-dev] [PATCH 5/7] Revert "i965/gen9: Disable MCS for 1x color surfaces"

2015-11-11 Thread Ben Widawsky
This reverts commit dcd59a9e322edeea74187bcad65a8e56c0bfaaa2. Reviewed-by: Neil Roberts --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 8 1 file changed, 8 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel_mipmap_tree.c inde

[Mesa-dev] [PATCH 2/7] i965: Add lossless compression to surface format table

2015-11-11 Thread Ben Widawsky
Background: Prior to Skylake and since Ivybridge Intel hardware has had the ability to use a MCS (Multisample Control Surface) as auxiliary data in "compression" operations on the surface. This reduces memory bandwidth. This hardware was either used for MSAA compression, and fast clear operations.

[Mesa-dev] [PATCH 1/7] [v2] i965/skl: Add fast color clear infrastructure

2015-11-11 Thread Ben Widawsky
Patch was originally called: i965/skl: Enable fast color clears on SKL Skylake introduces some differences in the way that fast clears are programmed and in the restrictions for using fast clears. Since some of these are non-obvious, and fast clears are currently disabled globally, we can enable t

[Mesa-dev] [PATCH 6/7] Revert "i965/gen9: Enable rep clears on gen9"

2015-11-11 Thread Ben Widawsky
This reverts commit 8a0c85b25853decb4a110b6d36d79c4f095d437b. It's not a strict revert because I don't want to bring back the gen < 9 check at this point in time. Reviewed-by: Neil Roberts --- src/mesa/drivers/dri/i965/brw_meta_fast_clear.c | 5 - 1 file changed, 5 deletions(-) diff --git

[Mesa-dev] [PATCH 7/7] [v2] i965/gen9: Support fast clears for 32b float

2015-11-11 Thread Ben Widawsky
SKL supports the ability to do fast clears and resolves of 32b RGBA as both integer and floats. This patch only enables float color clears because we haven't yet enabled integer color clears, (HW support for that was added in BDW). Two formats are explicitly disabled because they fail piglit tests

[Mesa-dev] [PATCH 4/7] [v2] i965/meta/gen9: Individually fast clear color attachments

2015-11-11 Thread Ben Widawsky
The impetus for this patch comes from a seemingly benign statement within the spec (quoted within the patch). For me, this patch was at some point critical for getting stable piglit results (though this did not seem to be the case on a branch Chad was working on). It is very important for clearing

Re: [Mesa-dev] [PATCH v2 01/18] mesa/extensions: Remove array sentinel

2015-11-11 Thread Chad Versace
On Fri 30 Oct 2015, Nanley Chery wrote: > From: Nanley Chery > > Simplify future updates to the extension struct array by removing > the sentinel. > > Signed-off-by: Nanley Chery Patch 1 is Reviewed-by: Chad Versace Since your series is long and risks suffering from rebase conflicts, I sugge

Re: [Mesa-dev] [PATCH 2/7] i965: Add lossless compression to surface format table

2015-11-11 Thread Ben Widawsky
This subject used to say Add lossless compression to surface format TO table somehow, "to" got dropped. It's fixed locally. On Wed, Nov 11, 2015 at 02:06:16PM -0800, Ben Widawsky wrote: > Background: Prior to Skylake and since Ivybridge Intel hardware has had the > ability to use a MCS (Multisamp

Re: [Mesa-dev] [PATCH v2 01/18] mesa/extensions: Remove array sentinel

2015-11-11 Thread Nanley Chery
On Wed, Nov 11, 2015 at 2:07 PM, Chad Versace wrote: > On Fri 30 Oct 2015, Nanley Chery wrote: > > From: Nanley Chery > > > > Simplify future updates to the extension struct array by removing > > the sentinel. > > > > Signed-off-by: Nanley Chery > > Patch 1 is > Reviewed-by: Chad Versace > > T

Re: [Mesa-dev] [PATCH 2/7] i965: Add lossless compression to surface format table

2015-11-11 Thread Ben Widawsky
On Wed, Nov 11, 2015 at 02:10:57PM -0800, Ben Widawsky wrote: > This subject used to say Add lossless compression to surface format TO table > > somehow, "to" got dropped. It's fixed locally. > Ignore this, subject looks fine to me and I'm an idiot. [snip] _

Re: [Mesa-dev] [PATCH v2 02/18] mesa/extensions: Wrap array entries in macros

2015-11-11 Thread Chad Versace
On Fri 30 Oct 2015, Nanley Chery wrote: > From: Nanley Chery > > Now that we're using macros, remove the redundant text from each entry. > > Remove comments between the entries to make editing easier and separate > the sections with blank lines. Structure the EXT macros in a way that > helps rev

Re: [Mesa-dev] [PATCH v2 03/18] mesa/extensions: Move entries entries to seperate file

2015-11-11 Thread Chad Versace
On Fri 30 Oct 2015, Nanley Chery wrote: > From: Nanley Chery > > With this infrastructure set in place, we can now reuse the entries to > generate useful code. > > v2. Add the new file into Makefile.sources (Emil) > > Signed-off-by: Nanley Chery > --- > src/mesa/Makefile.sources| 1

Re: [Mesa-dev] [PATCH v2 04/18] mesa/extensions: Add extension::version

2015-11-11 Thread Chad Versace
On Fri 30 Oct 2015, Nanley Chery wrote: > From: Nanley Chery > > Enable limiting advertised extension support by context version with > finer granularity. > > v2. Use uint*t type for version and note the expected values (Emil) > Use an 8-bit wide datatype. > Reformat macro for better rea

[Mesa-dev] [PATCH] r600: initialised PGM_RESOURCES_2 for ES/GS

2015-11-11 Thread Dave Airlie
From: Dave Airlie This fixes the corruption on rendering that we are seeing in certain geometry shaders. Signed-off-by: Dave Airlie --- src/gallium/drivers/r600/evergreen_state.c | 4 src/gallium/drivers/r600/evergreend.h | 2 ++ 2 files changed, 6 insertions(+) diff --git a/src/gal

Re: [Mesa-dev] [PATCH v2 06/18] mesa/extensions: Use _mesa_extension_supported()

2015-11-11 Thread Chad Versace
On Fri 30 Oct 2015, Nanley Chery wrote: > From: Nanley Chery > > Replace open-coded checks for extension support with > _mesa_extension_supported(). > > Signed-off-by: Nanley Chery > --- > src/mesa/main/extensions.c | 54 > > src/mesa/main/extens

Re: [Mesa-dev] [PATCH 1/7] [v2] i965/skl: Add fast color clear infrastructure

2015-11-11 Thread Matt Turner
On Wed, Nov 11, 2015 at 2:06 PM, Ben Widawsky wrote: > Patch was originally called: > i965/skl: Enable fast color clears on SKL > > Skylake introduces some differences in the way that fast clears are programmed > and in the restrictions for using fast clears. Since some of these are > non-obvious,

Re: [Mesa-dev] [PATCH v2 07/18] mesa/extensions: Replace extension::api_set with ::version

2015-11-11 Thread Chad Versace
On Fri 30 Oct 2015, Nanley Chery wrote: > From: Nanley Chery > > The api_set field has no users outside of _mesa_extension_supported(). > Remove it and allow the version field to take its place. > > The brunt of the transformation was performed with the following vim commands: > s/\(GL [^,]\+\),

Re: [Mesa-dev] [PATCH v2 08/18] mesa: Generate a helper function for each extension

2015-11-11 Thread Chad Versace
On Fri 30 Oct 2015, Nanley Chery wrote: > From: Nanley Chery > > Generate functions which determine if an extension is supported in the > current context. Initially, enums were going to be explicitly used with > _mesa_extension_supported(). The idea to embed the function and enums > into generate

Re: [Mesa-dev] [PATCH] r600: initialised PGM_RESOURCES_2 for ES/GS

2015-11-11 Thread Alex Deucher
On Wed, Nov 11, 2015 at 5:42 PM, Dave Airlie wrote: > From: Dave Airlie > > This fixes the corruption on rendering that we are seeing in > certain geometry shaders. > > Signed-off-by: Dave Airlie Reviewed-by: Alex Deucher > --- > src/gallium/drivers/r600/evergreen_state.c | 4 > src/gal

Re: [Mesa-dev] [PATCH v2 08/18] mesa: Generate a helper function for each extension

2015-11-11 Thread Chad Versace
On Fri 30 Oct 2015, Nanley Chery wrote: > From: Nanley Chery > > Generate functions which determine if an extension is supported in the > current context. Initially, enums were going to be explicitly used with > _mesa_extension_supported(). The idea to embed the function and enums > into generate

Re: [Mesa-dev] [PATCH v2 09/18] mesa/extensions: Prefix global struct and extension type

2015-11-11 Thread Chad Versace
On Fri 30 Oct 2015, Nanley Chery wrote: > From: Nanley Chery > > Rename the following types and variables: > * struct extension -> struct mesa_extension, > like the mesa_format type. > * extension_table -> _mesa_extension_table, > like the _mesa_extension_override_{enables,disables} structs.

Re: [Mesa-dev] [PATCH] r600: initialised PGM_RESOURCES_2 for ES/GS

2015-11-11 Thread Glenn Kennard
On Wed, 11 Nov 2015 23:42:18 +0100, Dave Airlie wrote: From: Dave Airlie This fixes the corruption on rendering that we are seeing in certain geometry shaders. Specifically, this fixes https://bugs.freedesktop.org/show_bug.cgi?id=91780 and probably others Signed-off-by: Dave Airlie -

Re: [Mesa-dev] [PATCH v2 10/18] mesa: In helpers, only check driver capability for meta

2015-11-11 Thread Chad Versace
On Fri 30 Oct 2015, Nanley Chery wrote: > From: Nanley Chery > > Make API context and version checks done by the helper functions pass > unconditionally while meta is in progress. This transparently makes > extension checks solely dependent on struct gl_extensions while in meta. > > v2. Use 8-bi

Re: [Mesa-dev] [PATCH 12/24] i965: Initialize registers' file to BAD_FILE.

2015-11-11 Thread Kenneth Graunke
On Wednesday, November 11, 2015 01:07:24 PM Matt Turner wrote: > On Wed, Nov 11, 2015 at 12:46 PM, Kenneth Graunke > wrote: > > On Monday, November 02, 2015 04:29:22 PM Matt Turner wrote: > >> The test (file == BAD_FILE) works on registers for which the constructor > >> has not run because BAD_FI

Re: [Mesa-dev] [PATCH 17/24] i965: Replace HW_REG with ARF/GRF.

2015-11-11 Thread Kenneth Graunke
On Monday, November 02, 2015 04:29:27 PM Matt Turner wrote: > HW_REGs are (were!) kind of awful. If the file was HW_REG, you had to > look at different fields for type, abs, negate, writemask, swizzle, and > a second file. They also caused annoying problems like immediate sources > being considered

Re: [Mesa-dev] [PATCH 12/24] i965: Initialize registers' file to BAD_FILE.

2015-11-11 Thread Matt Turner
On Wed, Nov 11, 2015 at 3:05 PM, Kenneth Graunke wrote: > On Wednesday, November 11, 2015 01:07:24 PM Matt Turner wrote: >> On Wed, Nov 11, 2015 at 12:46 PM, Kenneth Graunke >> wrote: >> > On Monday, November 02, 2015 04:29:22 PM Matt Turner wrote: >> >> The test (file == BAD_FILE) works on regi

Re: [Mesa-dev] [PATCH 00/24] i965: Refactor register classes

2015-11-11 Thread Kenneth Graunke
On Monday, November 02, 2015 04:29:10 PM Matt Turner wrote: > backend_reg (from which fs_reg, src_reg, and dst_reg inherit) includes a > brw_reg that's used for "hardware regs" -- precolored registers or > architecture > registers. This leads to properties like source modifiers, the register type,

Re: [Mesa-dev] [PATCH 12/24] i965: Initialize registers' file to BAD_FILE.

2015-11-11 Thread Kenneth Graunke
On Wednesday, November 11, 2015 03:12:11 PM Matt Turner wrote: > On Wed, Nov 11, 2015 at 3:05 PM, Kenneth Graunke > wrote: > > On Wednesday, November 11, 2015 01:07:24 PM Matt Turner wrote: > >> On Wed, Nov 11, 2015 at 12:46 PM, Kenneth Graunke > >> wrote: > >> > On Monday, November 02, 2015 04

Re: [Mesa-dev] [PATCH 12/24] i965: Initialize registers' file to BAD_FILE.

2015-11-11 Thread Matt Turner
On Wed, Nov 11, 2015 at 4:08 PM, Kenneth Graunke wrote: > Actually, your earlier statement: > "if file == BAD_FILE, no other fields mean anything." > suggests that we should change fs_reg() to simply set BAD_FILE, and > not bother initializing the other fields. That would eliminate one > of the r

Re: [Mesa-dev] [PATCH v2 6/9] i965: Add annotation_insert_error() and support for printing errors.

2015-11-11 Thread Kenneth Graunke
On Friday, November 06, 2015 05:19:41 PM Matt Turner wrote: > Will allow annotations to contain error messages (indicating an > instruction violates a rule for instance) that are printed after the > disassembly of the block. > --- > src/mesa/drivers/dri/i965/intel_asm_annotation.c | 71 >

[Mesa-dev] [PATCH 02/11] nir: add array length field

2015-11-11 Thread Jason Ekstrand
From: Rob Clark This will simplify things somewhat in clone. Signed-off-by: Rob Clark Reviewed-by: Jason Ekstrand --- src/glsl/nir/glsl_to_nir.cpp | 5 + src/glsl/nir/nir.h | 5 + 2 files changed, 10 insertions(+) diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/gls

[Mesa-dev] [PATCH 00/11] i965/nir: Do texture rectangle lowering in NIR

2015-11-11 Thread Jason Ekstrand
On older hardware (Iron Lake and below), we can't support texture rectangle natively. Sandy Bridge through Haswell can support it but don't support the GL_CLAMP wrap mode natively. It isn't until Broadwell that GL_CLAMP is supported together with GL_TEXTURE_RECTANGLE in hardware. In the cases wh

[Mesa-dev] [PATCH 01/11] nir: remove nir_variable::max_ifc_array_access

2015-11-11 Thread Jason Ekstrand
From: Rob Clark No users. Signed-off-by: Rob Clark Reviewed-by: Jason Ekstrand --- src/glsl/nir/glsl_to_nir.cpp | 9 - src/glsl/nir/nir.h | 13 - 2 files changed, 22 deletions(-) diff --git a/src/glsl/nir/glsl_to_nir.cpp b/src/glsl/nir/glsl_to_nir.cpp index b10

[Mesa-dev] [PATCH 03/11] i965/nir: Add OPT() and OPT_V() macros for invoking NIR passes.

2015-11-11 Thread Jason Ekstrand
From: Kenneth Graunke OPT() is the normal macro for passes that return booleans, while OPT_V() is a variant that works for passes that don't properly report progress. (Such passes should be fixed to return a boolean, eventually.) These macros take care of calling nir_validate_shader() and settin

[Mesa-dev] [PATCH 04/11] i965/nir: Validate that NIR passes call nir_metadata_preserve().

2015-11-11 Thread Jason Ekstrand
From: Kenneth Graunke Failing to call nir_metadata_preserve() can have nasty consequences: some pass breaks dominance information, but leaves it marked as valid, causing some subsequent pass to go haywire and probably crash. This pass adds a simple validation mechanism to ensure passes handle th

[Mesa-dev] [PATCH 06/11] i965/nir: Split shader optimization and lowering into three satages

2015-11-11 Thread Jason Ekstrand
At the moment, brw_create_nir just calls the three stages in sequence so there's not much difference. Soon, however, we will want to start doing variants in NIR at which point the postprocessing step will have to move from shader create time to codegen time. --- src/mesa/drivers/dri/i965/brw_nir.

[Mesa-dev] [PATCH 10/11] i965/fs: Don't allow SINT32 as a return type for resinfo

2015-11-11 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index 974219f..dad541b 100644 --- a/src/mesa/drivers/dri/i965/brw_fs_gen

[Mesa-dev] [PATCH 11/11] i965: Use nir_lower_tex for texture coordinate lowering

2015-11-11 Thread Jason Ekstrand
Previously, we had a rescale_texcoords helper in the FS backend for handling rescaling of texture coordinates. Now that we can do variants in NIR, we can use nir_lower_tex to do the rescaling for us. This allows us to delete the i965-specific code and gives us proper TEXTURE_RECTANGLE and GL_CLAM

[Mesa-dev] [PATCH 07/11] i965: Move postprocess_nir to codegen time

2015-11-11 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_fs.cpp | 11 +-- src/mesa/drivers/dri/i965/brw_nir.c | 1 - src/mesa/drivers/dri/i965/brw_vec4.cpp| 5 - src/mesa/drivers/dri/i965/brw_vec4_gs_visitor.cpp | 6 +- 4 files changed, 18 insertions(+), 5 deleti

[Mesa-dev] [PATCH 09/11] nir/lower_tex: Set the dest_type for txs instructions

2015-11-11 Thread Jason Ekstrand
--- src/glsl/nir/nir_lower_tex.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/nir/nir_lower_tex.c b/src/glsl/nir/nir_lower_tex.c index 21ed103..6dea837 100644 --- a/src/glsl/nir/nir_lower_tex.c +++ b/src/glsl/nir/nir_lower_tex.c @@ -134,6 +134,7 @@ get_texture_size(nir_builder *b,

[Mesa-dev] [PATCH 08/11] nir/lower_tex: Report progress

2015-11-11 Thread Jason Ekstrand
--- src/glsl/nir/nir.h | 2 +- src/glsl/nir/nir_lower_tex.c | 19 +++ 2 files changed, 16 insertions(+), 5 deletions(-) diff --git a/src/glsl/nir/nir.h b/src/glsl/nir/nir.h index 41125b1..2299ece 100644 --- a/src/glsl/nir/nir.h +++ b/src/glsl/nir/nir.h @@ -1981,7 +1981,

Re: [Mesa-dev] [PATCH 00/11] i965/nir: Do texture rectangle lowering in NIR

2015-11-11 Thread Jason Ekstrand
On Wed, Nov 11, 2015 at 5:23 PM, Jason Ekstrand wrote: > On older hardware (Iron Lake and below), we can't support texture rectangle > natively. Sandy Bridge through Haswell can support it but don't support > the GL_CLAMP wrap mode natively. It isn't until Broadwell that GL_CLAMP is > supported

Re: [Mesa-dev] [PATCH 18/24] i965: Combine register file field.

2015-11-11 Thread Matt Turner
On Tue, Nov 3, 2015 at 10:49 AM, Emil Velikov wrote: > On 3 November 2015 at 18:10, Matt Turner wrote: >> On Tue, Nov 3, 2015 at 8:07 AM, Emil Velikov >> wrote: >>> On 3 November 2015 at 00:29, Matt Turner wrote: >>> index 6eeafd5..3d2b051 100644 --- a/src/mesa/drivers/dri/i965/brw_f

Re: [Mesa-dev] [PATCH v2 3/3] glsl: Use array deref for access to vector components

2015-11-11 Thread Matt Turner
On Thu, Nov 5, 2015 at 9:44 PM, Kristian Høgsberg Kristensen wrote: > diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp > index e4e4a3f..5584470 100644 > --- a/src/glsl/ast_function.cpp > +++ b/src/glsl/ast_function.cpp > @@ -376,12 +368,8 @@ fix_parameter(void *mem_ctx, ir_rvalue

Re: [Mesa-dev] [PATCH v2 3/3] glsl: Use array deref for access to vector components

2015-11-11 Thread Ilia Mirkin
On Nov 11, 2015 9:10 PM, "Matt Turner" wrote: > > On Thu, Nov 5, 2015 at 9:44 PM, Kristian Høgsberg Kristensen > wrote: > > diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp > > index e4e4a3f..5584470 100644 > > --- a/src/glsl/ast_function.cpp > > +++ b/src/glsl/ast_function.cpp

Re: [Mesa-dev] [PATCH v2 3/3] glsl: Use array deref for access to vector components

2015-11-11 Thread Matt Turner
On Wed, Nov 11, 2015 at 8:47 PM, Ilia Mirkin wrote: > On Nov 11, 2015 9:10 PM, "Matt Turner" wrote: >> >> On Thu, Nov 5, 2015 at 9:44 PM, Kristian Høgsberg Kristensen >> wrote: >> > diff --git a/src/glsl/ast_function.cpp b/src/glsl/ast_function.cpp >> > index e4e4a3f..5584470 100644 >> > --- a/s

[Mesa-dev] [PATCH] glsl: simplify validation of illegal layouts on block members

2015-11-11 Thread Timothy Arceri
From: Timothy Arceri We already give the location of the qualifier so there is no need to list all the identifiers in the error message. Also not calling the binding validation function will make things much simpler when adding compile time constant support as we wont need to resolve the binding

[Mesa-dev] [PATCH] additional change to precision patches

2015-11-11 Thread Tapani Pälli
Hi; Here's one additional change (can be considered as patch 5.1/7) that was missing from the precision patches. Tapani Pälli (1): glsl: set precision qualifier on interface block members src/glsl/ast_to_hir.cpp | 1 + 1 file changed, 1 insertion(+) -- 2.4.3 ___

[Mesa-dev] [PATCH] glsl: set precision qualifier on interface block members

2015-11-11 Thread Tapani Pälli
Signed-off-by: Tapani Pälli --- src/glsl/ast_to_hir.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/glsl/ast_to_hir.cpp b/src/glsl/ast_to_hir.cpp index 2fd9c5b..51ea183 100644 --- a/src/glsl/ast_to_hir.cpp +++ b/src/glsl/ast_to_hir.cpp @@ -6161,6 +6161,7 @@ ast_process_structure_or_in

Re: [Mesa-dev] [PATCH] glsl: set precision qualifier on interface block members

2015-11-11 Thread Samuel Iglesias Gonsálvez
Reviewed-by: Samuel Iglesias Gonsálvez Are you planning to merge it to patch 5/7 or keep it standalone? Sam On 12/11/15 07:57, Tapani Pälli wrote: > Signed-off-by: Tapani Pälli > --- > src/glsl/ast_to_hir.cpp | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/src/glsl/ast_to_hir.cpp b/

Re: [Mesa-dev] [PATCH] glsl: set precision qualifier on interface block members

2015-11-11 Thread Tapani Pälli
On 11/12/2015 09:11 AM, Samuel Iglesias Gonsálvez wrote: Reviewed-by: Samuel Iglesias Gonsálvez Are you planning to merge it to patch 5/7 or keep it standalone? Yeah, I'll merge this to patch 5/7, otherwise there are some failures between patches when bisecting. Sam On 12/11/15 07:57,

Re: [Mesa-dev] [PATCH] glsl: set precision qualifier on interface block members

2015-11-11 Thread Samuel Iglesias Gonsálvez
On 12/11/15 08:13, Tapani Pälli wrote: > > > On 11/12/2015 09:11 AM, Samuel Iglesias Gonsálvez wrote: >> Reviewed-by: Samuel Iglesias Gonsálvez >> >> Are you planning to merge it to patch 5/7 or keep it standalone? > > Yeah, I'll merge this to patch 5/7, otherwise there are some failures > be

[Mesa-dev] [PATCH] nir/copy_propagate: do not copy-propagate MOV srcs with source modifiers

2015-11-11 Thread Iago Toral Quiroga
If a source operand in a MOV has source modifiers, then we cannot copy-propagate it from the parent instruction and remove the MOV. v2: remove the check for source source modifiers from is_move() (Jason) --- src/glsl/nir/nir_opt_copy_propagate.c | 17 ++--- 1 file changed, 10 insertio