Re: [Mesa-dev] [PATCH 1/8] spirv: Add a vtn_type field to all vtn_values

2017-12-11 Thread Samuel Iglesias Gonsálvez
Patches 1, 3, 4, 5, 6, 7 are, Reviewed-by: Samuel Iglesias Gonsálvez Sam On 07/12/17 17:12, Jason Ekstrand wrote: > At the moment, this just lets us drop the const_type for constants and > unify things a bit. Eventually, we will use this to store the types of > all

Re: [Mesa-dev] [RFC PATCH 0/6] r600: speed up tesselation shaders

2017-12-11 Thread Gert Wollny
Am Freitag, den 08.12.2017, 16:30 +1000 schrieb Dave Airlie: > [snip] > > So I haven't commited these yet, because I wanted to see if I could > get sb to work. Well, it was very much work in progress, I didn't expect it to be committed as is anyway. > >

Re: [Mesa-dev] [PATCH 1/4] spirv: Make sampled images a real type

2017-12-11 Thread Samuel Iglesias Gonsálvez
Series is, Reviewed-by: Samuel Iglesias Gonsálvez Sam On 08/12/17 08:42, Jason Ekstrand wrote: > Previously, we just gave them exactly the same type as the respective > image (which already had a sampler2D or similar type). Now they have > their own base type and a

Re: [Mesa-dev] [PATCH] i965/nir: do int64 lowering before optimization

2017-12-11 Thread Iago Toral
This didn't get any reviews yet. Any takers? On Fri, 2017-12-01 at 13:46 +0100, Iago Toral Quiroga wrote: > Otherwise loop unrolling will fail to see the actual cost of > the unrolling operations when the loop body contains 64-bit integer > instructions, and very specially when the divmod64

Re: [Mesa-dev] [PATCH v4 00/44] anv: SPV_KHR_16bit_storage/VK_KHR_16bit_storage for gen8+

2017-12-11 Thread Chema Casanova
El 09/12/17 a las 00:52, Jason Ekstrand escribió: > While reviewing some of the UBO pushing comments from Topi, I > discovered a fairly disturbing assert in brw_fs_nir.cpp in our > implementation of nir_intrinsic_load_uniform: > > /* Offsets are in bytes but they should always be

Re: [Mesa-dev] [PATCH 1/2] intel/fs: Implement GRF bank conflict mitigation pass.

2017-12-11 Thread Eero Tamminen
Hi, Thanks for finally having this handled in Mesa! This patch series, live intervals and "Don't let undefined values prevent copy propagation" commits help performance in following tests: * GfxBench CarChase (2% by live intervals) * GfxBench AztecRuins & Manhattan 3.0 (very marginally) *

[Mesa-dev] [PATCH v3] anv: fix bug when using component qualifier in FS outputs

2017-12-11 Thread Samuel Iglesias Gonsálvez
We can write to the same output but in different components, like in this example: layout(location = 0, component = 0) out ivec2 dEQP_FragColor_0; layout(location = 0, component = 2) out ivec2 dEQP_FragColor_1; Therefore, they are not two different outputs but only one. Fixes:

[Mesa-dev] [PATCH 19/18] ac: add load_tess_level() to the abi

2017-12-11 Thread Timothy Arceri
Fixes the following piglit tests in radeonsi: vs-tcs-tes-tessinner-tessouter-inputs-quads.shader_test vs-tcs-tes-tessinner-tessouter-inputs-tris.shader_test vs-tes-tessinner-tessouter-inputs-quads.shader_test vs-tes-tessinner-tessouter-inputs-tris.shader_test --- src/amd/common/ac_nir_to_llvm.c

[Mesa-dev] [PATCH 20/18] ac: skip type for gs input on RADV

2017-12-11 Thread Timothy Arceri
The type can be a struct on RADV and causes an assert() to be thrown, for radeonsi all structs should have been lowered away. --- src/amd/common/ac_nir_to_llvm.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c

[Mesa-dev] [PATCH 21/18] ac: skip type for tcs input on RADV

2017-12-11 Thread Timothy Arceri
The type can be a struct on RADV and causes an assert() to be thrown, for radeonsi all structs should have been lowered away. --- src/amd/common/ac_nir_to_llvm.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_nir_to_llvm.c

Re: [Mesa-dev] [PATCH 2/3] st/va: directly use idr pic flag

2017-12-11 Thread Zhang, Boyuan
> Am 09.12.2017 um 00:33 schrieb boyuan.zh...@amd.com: >> From: Boyuan Zhang >> >> Remove is_idr flag, and use idr_pic_flag provided by vaapi directly >> >> Signed-off-by: Boyuan Zhang > > Reviewed-by: Christian König for

[Mesa-dev] [PATCH 2/2] radeon/uvd: add and manage render picture list

2017-12-11 Thread boyuan.zhang
From: Boyuan Zhang Create a list in decoder to store all render picture buffer pointers that currently being used in reference picture lists. During get message buffer call, check each pointer in render_pic_list[] within given pic->ref[] list, remove pointer that no longer

[Mesa-dev] [PATCH 1/2] radeon/vcn: add and manage render picture list

2017-12-11 Thread boyuan.zhang
From: Boyuan Zhang Create a list in decoder to store all render picture buffer pointers that currently being used in reference picture lists. During get message buffer call, check each pointer in render_pic_list[] within given pic->ref[] list, remove pointer that no longer

Re: [Mesa-dev] [PATCH 2/8] spirv: Add a prepass to set types on vtn_values

2017-12-11 Thread Juan A. Suarez Romero
On Thu, 2017-12-07 at 08:12 -0800, Jason Ekstrand wrote: > This autogenerated pass will automatically find and set the type field > on all vtn_values. This way we always have the type and can use it for > validation and other checks. > --- > src/compiler/Makefile.nir.am | 4 + >

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2017-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 Bug ID: 104214 Summary: Dota crashes when switching from game to desktop Product: Mesa Version: 17.3 Hardware: Other OS: All Status: NEW Severity:

[Mesa-dev] [PATCH] winsys/amdgpu: disable local BOs again due to worse performance

2017-12-11 Thread Marek Olšák
From: Marek Olšák Cc: 17.3 --- src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c b/src/gallium/winsys/amdgpu/drm/amdgpu_bo.c index

Re: [Mesa-dev] [PATCH v3] anv: fix bug when using component qualifier in FS outputs

2017-12-11 Thread Jason Ekstrand
On Mon, Dec 11, 2017 at 2:59 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > We can write to the same output but in different components, like > in this example: > > layout(location = 0, component = 0) out ivec2 dEQP_FragColor_0; > layout(location = 0, component = 2) out ivec2

[Mesa-dev] [Bug 104182] Seti@Home OpenCL program starts then returns: "CL file build failure"

2017-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104182 Slava Abramov changed: What|Removed |Added CC|

Re: [Mesa-dev] [PATCH 2/4] meson: Turn on swr for relevant targets

2017-12-11 Thread Eric Engestrom
On Friday, 2017-12-08 16:27:20 -0800, Dylan Baker wrote: > Currently that's dri, libgl-xlib, and osmesa. > > CC: George Kyriazis > Signed-off-by: Dylan Baker > --- > > src/gallium/meson.build| 1 - >

Re: [Mesa-dev] [PATCH 3/4] meson: set opencl flags for r600

2017-12-11 Thread Eric Engestrom
On Friday, 2017-12-08 16:27:21 -0800, Dylan Baker wrote: > Signed-off-by: Dylan Baker Should come after the current 4/4, but Reviewed-by: Eric Engestrom > --- > src/gallium/drivers/r600/meson.build | 7 +-- > 1 file changed, 5

Re: [Mesa-dev] [PATCH 2/3] st/va: directly use idr pic flag

2017-12-11 Thread Christian König
Am 11.12.2017 um 16:17 schrieb Zhang, Boyuan: Am 09.12.2017 um 00:33 schrieb boyuan.zh...@amd.com: From: Boyuan Zhang Remove is_idr flag, and use idr_pic_flag provided by vaapi directly Signed-off-by: Boyuan Zhang Reviewed-by: Christian König

Re: [Mesa-dev] [PATCH 4/4] meson: build clover

2017-12-11 Thread Eric Engestrom
On Friday, 2017-12-08 16:27:22 -0800, Dylan Baker wrote: > This has only been compile tested. > > cc: Curro Jerez > Signed-off-by: Dylan Baker > --- > include/meson.build | 19 > meson.build

Re: [Mesa-dev] [PATCH 1/4] meson: Build SWR driver

2017-12-11 Thread Eric Engestrom
On Friday, 2017-12-08 16:27:19 -0800, Dylan Baker wrote: > This enables the SWR driver, but doesn't actually hook it up to any of > the targets yet. I felt like this patch was big and complicated enough > without adding that. > > Signed-off-by: Dylan Baker > --- >

Re: [Mesa-dev] [PATCH] i965/nir: do int64 lowering before optimization

2017-12-11 Thread Jason Ekstrand
On Mon, Dec 11, 2017 at 12:55 AM, Iago Toral wrote: > This didn't get any reviews yet. Any takers? > > On Fri, 2017-12-01 at 13:46 +0100, Iago Toral Quiroga wrote: > > Otherwise loop unrolling will fail to see the actual cost of > > the unrolling operations when the loop body

Re: [Mesa-dev] [PATCH 2/8] spirv: Add a prepass to set types on vtn_values

2017-12-11 Thread Jason Ekstrand
On Mon, Dec 11, 2017 at 8:19 AM, Juan A. Suarez Romero wrote: > On Thu, 2017-12-07 at 08:12 -0800, Jason Ekstrand wrote: > > This autogenerated pass will automatically find and set the type field > > on all vtn_values. This way we always have the type and can use it for > >

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2017-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 --- Comment #1 from Sven --- Steps to reproduce: Start Dota, stay on the main menu screen, switch back and forth between the desktop and Dota. I'm using the mate desktop environment. Result: (from dmesg) [ 8804.741329]

Re: [Mesa-dev] [PATCH 11/20] mesa: reduce the size of gl_vertex_array_object

2017-12-11 Thread Marek Olšák
On Wed, Nov 22, 2017 at 11:10 PM, Ian Romanick wrote: > On 11/21/2017 10:01 AM, Marek Olšák wrote: >> From: Marek Olšák >> >> RelativeOffset should actually be uint, not intptr, >> according to ARB_vertex_attrib_binding. >> >> gl_vertex_array_object:

Re: [Mesa-dev] [Mesa-stable] [PATCH] xlib: call _mesa_warning() instead of fprintf()

2017-12-11 Thread Ian Romanick
Reviewed-by: Ian Romanick On 12/11/2017 09:42 AM, Brian Paul wrote: > We use _mesa_warning() everywhere else in this code. Change requested > by Rick Irons of Mathworks. > > CC: > --- > src/mesa/drivers/x11/fakeglx.c | 3 ++- > 1

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2017-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 --- Comment #4 from Sven --- Yes, I can reproduce the issue with steam overlay disabled. I will have to try gdb some other day when I have some more time. -- You are receiving this mail because: You are the QA Contact

Re: [Mesa-dev] [PATCH] cso: add point rasterization sanity check assertion

2017-12-11 Thread Nicolai Hähnle
On 11.12.2017 18:42, Brian Paul wrote: --- src/gallium/auxiliary/cso_cache/cso_context.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index df5543c..dd9821e 100644 ---

Re: [Mesa-dev] [PATCH] winsys/amdgpu: disable local BOs again due to worse performance

2017-12-11 Thread Nicolai Hähnle
On 11.12.2017 16:31, Marek Olšák wrote: From: Marek Olšák Cc: 17.3 Reviewed-by: Nicolai Hähnle --- src/gallium/winsys/amdgpu/drm/amdgpu_bo.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-)

Re: [Mesa-dev] [PATCH 3/8] spirv: Add basic type validation for OpLoad, OpStore, and OpCopyMemory

2017-12-11 Thread Ian Romanick
On 12/07/2017 02:26 PM, Jason Ekstrand wrote: > On Thu, Dec 7, 2017 at 11:54 AM, Michael Schellenberger Costa > > wrote: > > Hi Jason, > > > Am 07.12.2017 um 17:12 schrieb Jason Ekstrand: > > ---

Re: [Mesa-dev] [PATCH 1/8] spirv: Add a vtn_type field to all vtn_values

2017-12-11 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > At the moment, this just lets us drop the const_type for constants and > unify things a bit. Eventually, we will use this to store the types of > all SPIR-V SSA values. > --- >

Re: [Mesa-dev] [PATCH 2/2] gallium/u_blitter: replace tabs with spaces

2017-12-11 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, Dec 7, 2017 at 5:09 PM, Brian Paul wrote: > --- > src/gallium/auxiliary/util/u_blitter.c | 36 > +- > 1 file changed, 18 insertions(+), 18 deletions(-) > > diff --git

Re: [Mesa-dev] testing for certain compiler options does not work

2017-12-11 Thread Ian Romanick
On 12/07/2017 02:15 AM, Marc Dietrich wrote: > Hi Ian, > > Am Mittwoch, 6. Dezember 2017, 21:21:53 CET schrieb Ian Romanick: >> On 11/29/2017 08:16 AM, Marc Dietrich wrote: >>> Hi, >>> >>> just found that my gcc 'gcc (SUSE Linux) 7.2.1 20171020 [gcc-7-branch >>> revision 253932]' does not warn

Re: [Mesa-dev] [PATCH 5/8] spirv: Add type validation for OpSelect

2017-12-11 Thread Ian Romanick
On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > --- > src/compiler/spirv/spirv_to_nir.c | 32 > 1 file changed, 32 insertions(+) > > diff --git a/src/compiler/spirv/spirv_to_nir.c > b/src/compiler/spirv/spirv_to_nir.c > index 253a012..11c8c2a 100644 > ---

Re: [Mesa-dev] [PATCH 4/8] spirv: Set lengths on scalar and vector types

2017-12-11 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > --- > src/compiler/spirv/spirv_to_nir.c | 4 > 1 file changed, 4 insertions(+) > > diff --git a/src/compiler/spirv/spirv_to_nir.c > b/src/compiler/spirv/spirv_to_nir.c >

Re: [Mesa-dev] [PATCH 6/8] spirv: Add better parameter validation for vector and matrix types

2017-12-11 Thread Ian Romanick
On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > --- > src/compiler/spirv/spirv_to_nir.c | 14 +++--- > 1 file changed, 11 insertions(+), 3 deletions(-) > > diff --git a/src/compiler/spirv/spirv_to_nir.c > b/src/compiler/spirv/spirv_to_nir.c > index 11c8c2a..4b93b11 100644 > ---

Re: [Mesa-dev] [PATCH 8/8] spirv: Add support for all bit sizes in OpSwitch

2017-12-11 Thread Ian Romanick
This patch is Reviewed-by: Ian Romanick On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=101560 > Cc: Juan A. Suarez Romero > --- > src/compiler/spirv/vtn_cfg.c | 33

Re: [Mesa-dev] [PATCH 1/2] gallium/aux: include nr_samples in util_resource_size() computation

2017-12-11 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, Dec 7, 2017 at 11:25 PM, Brian Paul wrote: > This function is only used in two places: > 1. VMware driver, but only for HUD reporting > 2. st/nine state tracker, used for texture memory accounting > --- >

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2017-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 --- Comment #2 from Eero Tamminen --- I cannot reproduce this with KBL (i7-7567U) running Ubuntu 16.04 LTS with latest Mesa git. Can you reproduce the issue if you disable/change the "Enable Steam Overlay while

[Mesa-dev] [Bug 104214] Dota crashes when switching from game to desktop

2017-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104214 --- Comment #3 from Eero Tamminen --- (In reply to Eero Tamminen from comment #2) >sudo gdb /proc/$(pidof dota2)/self $(pidof dota2) Sorry, should be: sudo gdb /proc/$(pidof dota2)/exe $(pidof dota2) --

[Mesa-dev] [PATCH] xlib: call _mesa_warning() instead of fprintf()

2017-12-11 Thread Brian Paul
We use _mesa_warning() everywhere else in this code. Change requested by Rick Irons of Mathworks. CC: --- src/mesa/drivers/x11/fakeglx.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/x11/fakeglx.c

[Mesa-dev] [PATCH] cso: add point rasterization sanity check assertion

2017-12-11 Thread Brian Paul
--- src/gallium/auxiliary/cso_cache/cso_context.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c b/src/gallium/auxiliary/cso_cache/cso_context.c index df5543c..dd9821e 100644 --- a/src/gallium/auxiliary/cso_cache/cso_context.c +++

Re: [Mesa-dev] [PATCH 2/8] spirv: Add a prepass to set types on vtn_values

2017-12-11 Thread Ian Romanick
On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > This autogenerated pass will automatically find and set the type field > on all vtn_values. This way we always have the type and can use it for > validation and other checks. > --- > src/compiler/Makefile.nir.am | 4 + >

Re: [Mesa-dev] [PATCH] gallivm: fix texture wrapping for texture gather for mirror modes

2017-12-11 Thread Jose Fonseca
Looks good AFAICT. Thanks for the detailed comments. I can't really follow the math to the minutiae, but I trust your testing. I wonder how much we gain by maitaining these gather and non-gather paths. That is, I wonder if the hit of just using the more accurate gather paths is

Re: [Mesa-dev] [PATCH 1/2] gallium/u_blitter: enable MSAA when blitting to MSAA surfaces

2017-12-11 Thread Marek Olšák
On Thu, Dec 7, 2017 at 5:09 PM, Brian Paul wrote: > If we're doing a Z -> Z MSAA blit (for example) we need to enable > msaa rasterization when drawing the quads so that we can properly > write the per-sample values. > > This fixes a number of Piglit ext_framebuffer_multisample

Re: [Mesa-dev] [PATCH 7/8] spirv: Restructure the case loop in OpSwitch handling

2017-12-11 Thread Ian Romanick
On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > Instead of calling vtn_add_case for the default case and then looping, > add an is_default variable and do everything inside the loop. This will > make the next commit easier. > --- > src/compiler/spirv/vtn_cfg.c | 17 ++--- > 1 file

Re: [Mesa-dev] [PATCH 2/2] gallium/util: don't pass a pipe_resource to util_resource_is_array_texture()

2017-12-11 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Thu, Dec 7, 2017 at 11:25 PM, Brian Paul wrote: > No need to pass a pipe_resource when we can just pass the target. > This makes the function potentially more usable. Rename it too. > --- >

Re: [Mesa-dev] [PATCH 21/18] ac: skip type for tcs input on RADV

2017-12-11 Thread Dieter Nützel
Tim, I'm somewhat baffled... V1 do not have 20,21 V2 do not have 19,21 V3 do not have 19,20 Which one is right? Thanks, Dieter Am 11.12.2017 10:56, schrieb Timothy Arceri: The type can be a struct on RADV and causes an assert() to be thrown, for radeonsi all structs should have been lowered

Re: [Mesa-dev] [PATCH v2 3/7] intel: emit first_vertex and reorder the VE' components

2017-12-11 Thread Kenneth Graunke
On Tuesday, December 5, 2017 3:23:03 PM PST Kenneth Graunke wrote: > Reviewed-by: Kenneth Graunke It turns out that patches 1-3 by themselves cause piles of Piglit and CTS failures. Please make sure the series doesn't cause regressions at each step along the way. For

Re: [Mesa-dev] [PATCH 2/8] spirv: Add a prepass to set types on vtn_values

2017-12-11 Thread Ian Romanick
On 12/11/2017 10:50 AM, Jason Ekstrand wrote: > On Mon, Dec 11, 2017 at 9:50 AM, Ian Romanick > wrote: > > On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > > This autogenerated pass will automatically find and set the type field > >

Re: [Mesa-dev] [PATCH 1/4] meson: Build SWR driver

2017-12-11 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-11 07:49:07) > > +if with_gallium_swr > > + if meson.version().version_compare('< 0.44.0') > > +error('SWR requires meson 0.44.0 or greater.') > > + endif > > Mixed feelings about this, but I guess I'd rather land this now and > remove these three lines

Re: [Mesa-dev] [PATCH mesa] i915: add missing 0 defines

2017-12-11 Thread Ian Romanick
Reviewed-by: Ian Romanick On 12/04/2017 06:52 AM, Eric Engestrom wrote: > Thanks to Emil's -Wundef, t_dd_dmatmp.h now complains that intel_render.c > is missing a couple `#define`s. > > Assigning them to 0 keeps the existing behaviour; I'll let someone else > turn them

Re: [Mesa-dev] [PATCH v2 4/7] i965: Let nir lower gl_VertexID instead of the linker

2017-12-11 Thread Ian Romanick
I sent this patch a few weeks ago. Since my commit message has additional information, can we use mine instead? https://patchwork.freedesktop.org/patch/189441/ On 12/04/2017 12:12 PM, Antia Puentes wrote: > From: Neil Roberts > > --- >

Re: [Mesa-dev] [PATCH 3/4] meson: set opencl flags for r600

2017-12-11 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-11 07:55:30) > On Friday, 2017-12-08 16:27:21 -0800, Dylan Baker wrote: > > Signed-off-by: Dylan Baker > > Should come after the current 4/4, but > Reviewed-by: Eric Engestrom > > > --- > >

Re: [Mesa-dev] [PATCH 2/8] spirv: Add a prepass to set types on vtn_values

2017-12-11 Thread Jason Ekstrand
On Mon, Dec 11, 2017 at 9:50 AM, Ian Romanick wrote: > On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > > This autogenerated pass will automatically find and set the type field > > on all vtn_values. This way we always have the type and can use it for > > validation and

Re: [Mesa-dev] [PATCH 9/9] mesa: always compare optype with symbolic name in ATI_fs

2017-12-11 Thread Marek Olšák
For the series: Reviewed-by: Marek Olšák Marek On Sat, Dec 2, 2017 at 11:35 PM, Miklós Máté wrote: > Signed-off-by: Miklós Máté > --- > src/mesa/main/atifragshader.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >

Re: [Mesa-dev] [PATCH 1/3] nir: Fix interaction of GL_CLAMP lowering with texture offsets.

2017-12-11 Thread Ian Romanick
For some reason the patches didn't show up in my inbox, but I found it on patchwork. Series is Reviewed-by: Ian Romanick On 12/06/2017 07:10 PM, Eric Anholt wrote: > Eric Anholt writes: > >> We want the clamping of the coordinate to apply after the

Re: [Mesa-dev] [PATCH v2 1/7] compiler: Add SYSTEM_VALUE_FIRST_VERTEX and instrinsics

2017-12-11 Thread Ian Romanick
On 12/04/2017 12:12 PM, Antia Puentes wrote: > This VS system value will contain the value passed as > for indexed draw calls or the value passed as for non-indexed > draw calls. It will be used to calculate the gl_VertexID as > SYSTEM_VALUE_VERTEX_ID_ZERO_BASE plus SYSTEM_VALUE_FIRST_VERTEX. >

Re: [Mesa-dev] [PATCH] gallivm: fix texture wrapping for texture gather for mirror modes

2017-12-11 Thread Roland Scheidegger
Am 11.12.2017 um 18:39 schrieb Jose Fonseca: > Looks good AFAICT.  Thanks for the detailed comments. I can't really > follow the math to the minutiae, but I trust your testing. > > I wonder how much we gain by maitaining these gather and non-gather > paths.  That is, I wonder if the hit of just

Re: [Mesa-dev] [PATCH v2 3/7] intel: emit first_vertex and reorder the VE' components

2017-12-11 Thread Ian Romanick
On 12/04/2017 12:12 PM, Antia Puentes wrote: > The new order is: > * VE 1: > * VE 2: > > Previously it was: > * VE 1: > * VE 2: > > The gl_BaseVertex is in a new location now, and firstvertex

Re: [Mesa-dev] [PATCH v2 5/7] nir: Offset vertex_id by first_vertex instead of base_vertex

2017-12-11 Thread Ian Romanick
On 12/04/2017 12:12 PM, Antia Puentes wrote: > From: Neil Roberts > > base_vertex will be zero for non-indexed calls, but we need it to > include the ‘first’ parameter. This is true for both GL and Vulkan. > > I think this patch will also affect freedreno and radeonsi. I

[Mesa-dev] [ANNOUNCE] Mesa 17.2.7 release candidate

2017-12-11 Thread Emil Velikov
Hello list, The candidate for the Mesa 17.2.7 is now available. Currently we have: - 45 queued - 2 nominated (outstanding) - and 1 rejected patches The current queue consists of a variety of fixes, with a sizeable hunk in the shared GLSL codebase. Whereas for individual drivers - i965 has a

Re: [Mesa-dev] [PATCH 4/4] meson: build clover

2017-12-11 Thread Dylan Baker
Quoting Eric Engestrom (2017-12-11 08:17:50) > On Friday, 2017-12-08 16:27:22 -0800, Dylan Baker wrote: > > This has only been compile tested. > > > > cc: Curro Jerez > > Signed-off-by: Dylan Baker > > --- > > include/meson.build

Re: [Mesa-dev] [Mesa-stable] [PATCH 01/12] i965/fs: Unpack count argument to 64-bit shift ops on Atom

2017-12-11 Thread Emil Velikov
On 29 November 2017 at 03:25, Matt Turner wrote: > On Tue, Nov 28, 2017 at 5:54 AM, Andres Gomez wrote: >> Matt, this looks like a good candidate to nominate for inclusion in >> the 17.2 stable queue. >> >> What do you think? > > Yes, I think so. I didn't

Re: [Mesa-dev] [PATCH mesa] meson: add dep_thread to every lib that includes threads.h

2017-12-11 Thread Emil Velikov
On 7 December 2017 at 17:25, Dylan Baker wrote: > Quoting Emil Velikov (2017-12-07 08:40:27) >> On 7 December 2017 at 14:51, Eric Engestrom >> wrote: >> > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104141 >> > Signed-off-by: Eric

Re: [Mesa-dev] [PATCH 1/2] gallium/u_blitter: enable MSAA when blitting to MSAA surfaces

2017-12-11 Thread Brian Paul
On 12/11/2017 11:06 AM, Marek Olšák wrote: On Thu, Dec 7, 2017 at 5:09 PM, Brian Paul wrote: If we're doing a Z -> Z MSAA blit (for example) we need to enable msaa rasterization when drawing the quads so that we can properly write the per-sample values. This fixes a number

Re: [Mesa-dev] [PATCH v4 1/2] glsl: allow any l-value of an input variable as interpolant in interpolateAt*

2017-12-11 Thread Emil Velikov
On 28 November 2017 at 14:31, Nicolai Hähnle wrote: > On 28.11.2017 14:58, Andres Gomez wrote: >> >> Nicolai, this looks like a good candidate to nominate for inclusion in >> all the stable queues. >> >> What do you think? > > > It's a rare enough use case, but the change

Re: [Mesa-dev] [PATCH] st/va: change frame_idx from array to hash table

2017-12-11 Thread Emil Velikov
On 28 November 2017 at 13:32, Andres Gomez wrote: > Julien, this looks like a good candidate to nominate for inclusion in > the 17.2 stable queue. > > What do you think? > Based on the discussion in the bugreport, we really want that in 17.2. I've picked it up for 17.2.7,

[Mesa-dev] [PATCH 2/2] gallium/u_blitter: enable MSAA when blitting to MSAA surfaces

2017-12-11 Thread Brian Paul
If we're doing a Z -> Z MSAA blit (for example) we need to enable msaa rasterization when drawing the quads so that we can properly write the per-sample values. This fixes a number of Piglit ext_framebuffer_multisample blit tests such as ext_framebuffer_multisample/no-color 2 depth combined with

[Mesa-dev] [PATCH 1/2] gallium/u_blitter: add code to save/set/restore min_samples for msaa

2017-12-11 Thread Brian Paul
Will be used by the next patch. --- src/gallium/auxiliary/util/u_blitter.c | 8 src/gallium/auxiliary/util/u_blitter.h | 11 +++ 2 files changed, 19 insertions(+) diff --git a/src/gallium/auxiliary/util/u_blitter.c b/src/gallium/auxiliary/util/u_blitter.c index

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/2] i965/bufmgr: Add a helper to mark a BO as external

2017-12-11 Thread Emil Velikov
On 21 November 2017 at 00:13, Andres Gomez wrote: > Jason, this nominated series landed without mentioning any specific > stable queue. > > From what I'm seeing, both depend on 2c4097aff1b which didn't make it > for 17.2 so I'm dropping them for that queue. > This is a

Re: [Mesa-dev] [PATCH] egl: remove unneeded _eglGetNativePlatform check

2017-12-11 Thread Emil Velikov
On 6 December 2017 at 20:36, Ian Romanick wrote: > Do we have any tests at all that exercise this path? I don't know this > code well enough to feel comfortable reviewing this (says everyone). :( > At first I was thinking that the error "can never happen", although it seems

Re: [Mesa-dev] Gallium ARB_get_program_binary support

2017-12-11 Thread Mike Lothian
Tested with Dead Island, Dirt Rally and Serious Sam BFG (which I believe uses this extension) Do you know any other games that use this? On Mon, 11 Dec 2017 at 02:17 Dieter Nützel wrote: > For the V2 series: > > Tested-by: Dieter Nützel > and >

Re: [Mesa-dev] [PATCH 21/18] ac: skip type for tcs input on RADV

2017-12-11 Thread Timothy Arceri
On 12/12/17 05:44, Dieter Nützel wrote: Tim, I'm somewhat baffled... V1 do not have 20,21 V2 do not have 19,21 V3 do not have 19,20 Which one is right? These are follow-on patches for the tess nir support for radeonsi (v1). The other two patches are standalone but this patch should probably

Re: [Mesa-dev] Gallium ARB_get_program_binary support

2017-12-11 Thread Timothy Arceri
On 12/12/17 08:13, Mike Lothian wrote: Tested with Dead Island, Dirt Rally and Serious Sam BFG (which I believe uses this extension) Do you know any other games that use this? I believe Dying Light uses it also. On Mon, 11 Dec 2017 at 02:17 Dieter Nützel

Re: [Mesa-dev] [PATCH] cso: add point rasterization sanity check assertion

2017-12-11 Thread Roland Scheidegger
Am 11.12.2017 um 18:42 schrieb Brian Paul: > --- > src/gallium/auxiliary/cso_cache/cso_context.c | 5 + > 1 file changed, 5 insertions(+) > > diff --git a/src/gallium/auxiliary/cso_cache/cso_context.c > b/src/gallium/auxiliary/cso_cache/cso_context.c > index df5543c..dd9821e 100644 > ---

[Mesa-dev] [PATCH v2 6/8] spirv: Add better parameter validation for vector

2017-12-11 Thread Jason Ekstrand
--- src/compiler/spirv/spirv_to_nir.c | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/src/compiler/spirv/spirv_to_nir.c b/src/compiler/spirv/spirv_to_nir.c index 82e5c8c..c5d6131 100644 --- a/src/compiler/spirv/spirv_to_nir.c +++

Re: [Mesa-dev] [PATCH 1/2] freedreno: Update to handle rename of the base vertex ID intrinsic

2017-12-11 Thread Kenneth Graunke
On Wednesday, November 22, 2017 6:03:24 AM PST Neil Roberts wrote: > The old intrinsic called base_vertex that is used to add to > gl_VertexID is now called base_vertex_id so that base_vertex can be > used for the value of gl_BaseVertex, which is different. As far as I > can tell freedreno doesn’t

Re: [Mesa-dev] [PATCH] spirv: Allow ignoring decorations for workgroup variables

2017-12-11 Thread Jordan Justen
Reviewed-by: Jordan Justen On 2017-12-11 15:34:08, Jason Ekstrand wrote: > Since we switched over to lowering SLM access directly in SPIR-V -> NIR, > we no longer have vtn_variables for SLM. It's all safe as with UBOs and > SSBOs but we need to let it through in the

Re: [Mesa-dev] [PATCH v2 6/8] spirv: Add better parameter validation for vector

2017-12-11 Thread Ian Romanick
Reviewed-by: Ian Romanick On 12/11/2017 03:13 PM, Jason Ekstrand wrote: > --- > src/compiler/spirv/spirv_to_nir.c | 16 +--- > 1 file changed, 13 insertions(+), 3 deletions(-) > > diff --git a/src/compiler/spirv/spirv_to_nir.c >

Re: [Mesa-dev] [PATCH mesa] meson: add dep_thread to every lib that includes threads.h

2017-12-11 Thread Dylan Baker
Quoting Emil Velikov (2017-12-11 12:06:35) > On 7 December 2017 at 17:25, Dylan Baker wrote: > > Quoting Emil Velikov (2017-12-07 08:40:27) > >> On 7 December 2017 at 14:51, Eric Engestrom > >> wrote: > >> > Bugzilla:

Re: [Mesa-dev] [PATCH 2/8] spirv: Add a prepass to set types on vtn_values

2017-12-11 Thread Jason Ekstrand
On Mon, Dec 11, 2017 at 11:13 AM, Ian Romanick wrote: > On 12/11/2017 10:50 AM, Jason Ekstrand wrote: > > On Mon, Dec 11, 2017 at 9:50 AM, Ian Romanick > > wrote: > > > > On 12/07/2017 08:12 AM, Jason Ekstrand wrote:

Re: [Mesa-dev] Gallium ARB_get_program_binary support

2017-12-11 Thread Mike Lothian
I'll check that when I'm next home On Mon, 11 Dec 2017 at 21:19 Timothy Arceri wrote: > On 12/12/17 08:13, Mike Lothian wrote: > > Tested with Dead Island, Dirt Rally and Serious Sam BFG (which I believe > > uses this extension) > > > > Do you know any other games that

Re: [Mesa-dev] [PATCH 6/8] spirv: Add better parameter validation for vector and matrix types

2017-12-11 Thread Jason Ekstrand
On Mon, Dec 11, 2017 at 10:05 AM, Ian Romanick wrote: > On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > > --- > > src/compiler/spirv/spirv_to_nir.c | 14 +++--- > > 1 file changed, 11 insertions(+), 3 deletions(-) > > > > diff --git

Re: [Mesa-dev] [PATCH 08/29] anv/cmd_buffer: Recurse in transition_color_buffer instead of falling through

2017-12-11 Thread Nanley Chery
On Mon, Dec 11, 2017 at 03:57:58PM -0800, Nanley Chery wrote: > On Mon, Nov 27, 2017 at 07:05:58PM -0800, Jason Ekstrand wrote: > > --- > > src/intel/vulkan/genX_cmd_buffer.c | 17 - > > 1 file changed, 8 insertions(+), 9 deletions(-) > > > > diff --git

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/2] i965/bufmgr: Add a helper to mark a BO as external

2017-12-11 Thread Jason Ekstrand
On Mon, Dec 11, 2017 at 12:08 PM, Emil Velikov wrote: > On 21 November 2017 at 00:13, Andres Gomez wrote: > > Jason, this nominated series landed without mentioning any specific > > stable queue. > > > > From what I'm seeing, both depend on

[Mesa-dev] [Bug 103699] Latest mesa breaks firefox on kde plasma with compositing on

2017-12-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=103699 --- Comment #27 from Germano Massullo --- Screenshots of malfunction https://bugzilla.mozilla.org/attachment.cgi?id=8932561 https://bugzilla.mozilla.org/attachment.cgi?id=8932563(In reply to Germano Massullo from

Re: [Mesa-dev] [PATCH 2/2] st/glsl_to_tgsi: Add support for SYSTEM_VALUE_BASE_VERTEX_ID

2017-12-11 Thread Kenneth Graunke
On Wednesday, November 22, 2017 6:03:25 AM PST Neil Roberts wrote: > SYSTEM_VALUE_BASE_VERTEX has changed to be the correct value for > gl_BaseVertex, which means it will be zero when used with a > non-indexed call. The new BASE_VERTEX_ID value can be used as before > as an offset to calculate a

Re: [Mesa-dev] [PATCH 07/29] anv/image: Support color aspects in layout_to_aux_usage

2017-12-11 Thread Nanley Chery
On Mon, Nov 27, 2017 at 07:05:57PM -0800, Jason Ekstrand wrote: > --- > src/intel/vulkan/anv_image.c | 48 > ++-- > 1 file changed, 29 insertions(+), 19 deletions(-) > This patch is Reviewed-by: Nanley Chery > diff --git

Re: [Mesa-dev] [PATCH 08/29] anv/cmd_buffer: Recurse in transition_color_buffer instead of falling through

2017-12-11 Thread Nanley Chery
On Mon, Nov 27, 2017 at 07:05:58PM -0800, Jason Ekstrand wrote: > --- > src/intel/vulkan/genX_cmd_buffer.c | 17 - > 1 file changed, 8 insertions(+), 9 deletions(-) > > diff --git a/src/intel/vulkan/genX_cmd_buffer.c > b/src/intel/vulkan/genX_cmd_buffer.c > index

Re: [Mesa-dev] [PATCH v2 13/25] spirv_extensions: add list of extensions and to_string method

2017-12-11 Thread Timothy Arceri
I might be blind but in which patch does this end up being used? Also this and the following patches seem to reinvent a system for exposing extension support. Is there a good reason for not simply expanding extensions_table.h to support tracking the spriv extensions? On 01/12/17 04:28,

Re: [Mesa-dev] [PATCH 7/8] spirv: Restructure the case loop in OpSwitch handling

2017-12-11 Thread Ian Romanick
On 12/11/2017 02:50 PM, Jason Ekstrand wrote: > On Mon, Dec 11, 2017 at 10:08 AM, Ian Romanick > wrote: > > On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > > Instead of calling vtn_add_case for the default case and then looping, > >

Re: [Mesa-dev] [PATCH v2 19/25] mesa/glspirv: Add a _mesa_spirv_link_shaders() placeholder

2017-12-11 Thread Timothy Arceri
On 07/12/17 20:59, Eduardo Lima Mitev wrote: On 12/07/2017 05:51 AM, Timothy Arceri wrote: Please squash this with patch 22 tis is just code churn. Ok, this makes sense, though I will have to re-order a bit the patches to keep each single one building fine. None of the patches in between

Re: [Mesa-dev] [PATCH v2 5/7] nir: Offset vertex_id by first_vertex instead of base_vertex

2017-12-11 Thread Marek Olšák
On Mon, Dec 11, 2017 at 8:43 PM, Ian Romanick wrote: > On 12/04/2017 12:12 PM, Antia Puentes wrote: >> From: Neil Roberts >> >> base_vertex will be zero for non-indexed calls, but we need it to >> include the ‘first’ parameter. This is true for both GL

Re: [Mesa-dev] [PATCH 7/8] spirv: Restructure the case loop in OpSwitch handling

2017-12-11 Thread Jason Ekstrand
On Mon, Dec 11, 2017 at 10:08 AM, Ian Romanick wrote: > On 12/07/2017 08:12 AM, Jason Ekstrand wrote: > > Instead of calling vtn_add_case for the default case and then looping, > > add an is_default variable and do everything inside the loop. This will > > make the next

Re: [Mesa-dev] [PATCH 04/10] swrast: remove non-applicable GLX_SWAP_COPY_OML comment

2017-12-11 Thread Ian Romanick
On 12/07/2017 09:07 AM, Emil Velikov wrote: > From: Emil Velikov > > Noticed while skimming for GLX_ instances i the dri codebase. in With that fixed, this patch is also Reviewed-by: Ian Romanick

Re: [Mesa-dev] [PATCH 01/10] mapi: autotools: remove unused MAPI_FILES file list

2017-12-11 Thread Ian Romanick
Patches 1, 2, and 3 are Reviewed-by: Ian Romanick I'm going to send a trivial nit on patch 4, and I'll try to look at the others later. On 12/07/2017 09:07 AM, Emil Velikov wrote: > From: Emil Velikov > > The sole user was OpenVG, which

[Mesa-dev] [PATCH] spirv: Allow ignoring decorations for workgroup variables

2017-12-11 Thread Jason Ekstrand
Since we switched over to lowering SLM access directly in SPIR-V -> NIR, we no longer have vtn_variables for SLM. It's all safe as with UBOs and SSBOs but we need to let it through in the assert. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=104213 Fixes:

  1   2   >