Re: [Mesa-dev] [PATCH 26/32] i965: Make CCS stride match kernel's expectations

2017-01-05 Thread Jason Ekstrand
On my list On Jan 5, 2017 7:51 PM, "Ben Widawsky" wrote: > On 17-01-02 18:37:17, Ben Widawsky wrote: > >> v2: Put the commit message as a comment (Topi) >> >> Cc: Topi Pohjolainen >> Cc: Ville Syrjälä >> Cc: Jason

Re: [Mesa-dev] [PATCH 26/32] i965: Make CCS stride match kernel's expectations

2017-01-05 Thread Ben Widawsky
On 17-01-02 18:37:17, Ben Widawsky wrote: v2: Put the commit message as a comment (Topi) Cc: Topi Pohjolainen Cc: Ville Syrjälä Cc: Jason Ekstrand Signed-off-by: Ben Widawsky Acked-by: Daniel

Re: [Mesa-dev] [PATCH 0/5] nvc0: better instruction pipelining for Maxwell GPUs

2017-01-05 Thread Alexandre Courbot
On 12/23/2016 08:15 AM, Samuel Pitoiset wrote: > This series makes use of the scheduling control code in order to improve the > instruction pipelining on Maxwell GPUs. Tested this on Jetson TX1. The performance improvement on glmark2 was only marginal, with terrain going from 7 to 10 fps at

Re: [Mesa-dev] [PATCH 0/6] update swr rasterizer

2017-01-05 Thread Cherniak, Bruce
With minor nits that patch 5 applies to Transpose16_16 (not Transform_16_16); and patch 6 changes the function declaration 2nd-line whitespace of OutputMerger4x2 and OutputMerger8x2 (we can fix this in a follow-on checking to core) Reviewed-by: Bruce Cherniak > On

[Mesa-dev] [PATCH v2] dri: allow 16bit R/GR images to be exported via drm buffers

2017-01-05 Thread Rainer Hochecker
From: Rainer Hochecker This allows eglCreateImageKHR to access P010 surfaces created by vaapi Signed-off-by: Rainer Hochecker --- include/GL/internal/dri_interface.h | 4 src/egl/drivers/dri2/egl_dri2.c | 10 ++

[Mesa-dev] [PATCH v2] dri: allow 16bit R/GR images to be exported via drm

2017-01-05 Thread Rainer Hochecker
Updated mesa patch after changes in fourcc ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 31/32] i965: Remove scanout restriction from lossless compression

2017-01-05 Thread Ben Widawsky
On 17-01-05 17:55:15, Topi Pohjolainen Topi Pohjolainen wrote: On Wed, Jan 04, 2017 at 06:36:05PM -0800, Ben Widawsky wrote: On 17-01-04 10:41:58, Topi Pohjolainen Topi Pohjolainen wrote: > On Mon, Jan 02, 2017 at 06:37:22PM -0800, Ben Widawsky wrote: > > v2: Try to keep the assert as

[Mesa-dev] [AppVeyor] mesa master #3056 completed

2017-01-05 Thread AppVeyor
Build mesa 3056 completed Commit caf18a8434 by Roland Scheidegger on 1/5/2017 11:46 PM: gallivm: (trivial) fix typo bug with small AoS format unpacking\n\nFix typo using wrong (uninitialized) build context introduced

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Roland Scheidegger
Am 06.01.2017 um 00:00 schrieb Marek Olšák: > On Thu, Jan 5, 2017 at 10:06 PM, Roland Scheidegger > wrote: >> Am 05.01.2017 um 21:50 schrieb Samuel Pitoiset: >>> >>> >>> On 01/05/2017 09:44 PM, Marek Olšák wrote: On Thu, Jan 5, 2017 at 9:00 PM, Roland Scheidegger

[Mesa-dev] [PATCH] glsl: fix opt_minmax redundancy checks against baserange

2017-01-05 Thread Timothy Arceri
Marking operations as redundant if they are equal to the base range is fine when the tree structure is something like this: max / \ max b / \ 3max / \ 3 a But the opt falls apart with a tree like this: max / \ max

[Mesa-dev] [PATCH 5/6] swr: [rasterizer core] fix SIMD16 Transform_16_16

2017-01-05 Thread Tim Rowley
Fix incorrect swizzling in SIMD16 Transform_16_16 breaking the two-channel 16-bpc formats like R16G16_FLOAT. --- src/gallium/drivers/swr/rasterizer/core/utils.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/core/utils.h

[Mesa-dev] [PATCH 3/6] swr: [rasterizer core] fix SIMD16 PackTraits pack() and unpack()

2017-01-05 Thread Tim Rowley
Fix routines for 8-bit and 16-bit formats used by optimized tile store. --- .../drivers/swr/rasterizer/common/simd16intrin.h | 8 +- .../drivers/swr/rasterizer/common/simdintrin.h | 36 + .../drivers/swr/rasterizer/core/format_types.h | 86 ++ 3 files

[Mesa-dev] [PATCH mesa] drirc: remove spurious tabs

2017-01-05 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- src/mesa/drivers/dri/common/drirc | 16 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/mesa/drivers/dri/common/drirc b/src/mesa/drivers/dri/common/drirc index af84ee82e8..97297b7a1c 100644 ---

[Mesa-dev] [PATCH 4/6] swr: [rasterizer core] fix SIMD16 output merger

2017-01-05 Thread Tim Rowley
Honor the colorHottileEnable mask when accessing colorBuffer pointers. --- src/gallium/drivers/swr/rasterizer/core/backend.cpp | 20 ++-- src/gallium/drivers/swr/rasterizer/core/backend.h | 18 -- 2 files changed, 22 insertions(+), 16 deletions(-) diff --git

[Mesa-dev] [PATCH 2/6] swr: [rasterizer core] fix SIMD16 transpose functions

2017-01-05 Thread Tim Rowley
Fixed Transpose_16 methods of following formats: Transpose8_8_8_8 Transpose8_8 Transpose32_32 Transpose16_16_16_16 Transpose16_16_16 Transpose16_16 --- .../drivers/swr/rasterizer/common/simd16intrin.h | 93 - .../drivers/swr/rasterizer/common/simdintrin.h | 18 +-

[Mesa-dev] [PATCH 6/6] swr: [rasterizer core] rename OutputMerger functions

2017-01-05 Thread Tim Rowley
--- src/gallium/drivers/swr/rasterizer/core/backend.cpp | 12 ++-- src/gallium/drivers/swr/rasterizer/core/backend.h | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/core/backend.cpp

[Mesa-dev] [PATCH 0/6] update swr rasterizer

2017-01-05 Thread Tim Rowley
Mostly avx512/simd16 fixes. Tim Rowley (6): swr: [rasterizer core] whitespace adjustments swr: [rasterizer core] fix SIMD16 transpose functions swr: [rasterizer core] fix SIMD16 PackTraits pack() and unpack() swr: [rasterizer core] fix SIMD16 output merger swr: [rasterizer core] fix

[Mesa-dev] [PATCH 1/6] swr: [rasterizer core] whitespace adjustments

2017-01-05 Thread Tim Rowley
--- src/gallium/drivers/swr/rasterizer/core/clip.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/swr/rasterizer/core/clip.h b/src/gallium/drivers/swr/rasterizer/core/clip.h index fcb2ecb..085e4a9 100644 ---

[Mesa-dev] [AppVeyor] mesa master #3055 failed

2017-01-05 Thread AppVeyor
Build mesa 3055 failed Commit 4634cb5921 by Roland Scheidegger on 12/21/2016 3:56 AM: gallivm: implement aos unpack (to unorm8) for small unorm formats\n\nUsing bit replication. This path now resembles something which might make\nsense. (The logic was mostly

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Marek Olšák
On Thu, Jan 5, 2017 at 10:06 PM, Roland Scheidegger wrote: > Am 05.01.2017 um 21:50 schrieb Samuel Pitoiset: >> >> >> On 01/05/2017 09:44 PM, Marek Olšák wrote: >>> On Thu, Jan 5, 2017 at 9:00 PM, Roland Scheidegger >>> wrote: Am 05.01.2017 um 20:43

[Mesa-dev] [Bug 98242] dEQP mandates preprocessor tests for #line expressions

2017-01-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98242 --- Comment #8 from Kenneth Graunke --- Here's an updated version of that patch which passes the "line_expression" tests in addition to the "line_and_file_expression" tests. I haven't tested it further, and am not

Re: [Mesa-dev] [PATCH 00/32] [v2] Renderbuffer Decompression (and GBM modifiers)

2017-01-05 Thread Ben Widawsky
On 17-01-05 12:16:45, Chad Versace wrote: This patch has a regressing side-effect: it disables CCS for all single-sample miptrees created by glRenderbufferStorage(). After stepping through some Piglit tests, I believe the problem is that line 161 below always returns false for such miptrees

Re: [Mesa-dev] [PATCH 2/2] i965: Delete brw->predicate.supported.

2017-01-05 Thread Kenneth Graunke
On Thursday, January 5, 2017 11:29:40 AM PST Kenneth Graunke wrote: > Just check the screen feature bitfield. > > Signed-off-by: Kenneth Graunke > --- > src/mesa/drivers/dri/i965/brw_conditional_render.c | 2 +- > src/mesa/drivers/dri/i965/brw_context.h| 1 - >

Re: [Mesa-dev] [PATCH] i965: call intel_prepare_render always when reading pixels

2017-01-05 Thread Chad Versace
On Thu 05 Jan 2017, Tapani Pälli wrote: > Currently we do this only in the fallback code (when tiled memcpy > version failed) but it needs to be done always so that we have > correct read and write buffer in place. No regressions seen in CI. > > Fixes: > dEQP-EGL.functional.buffer_age.* >

Re: [Mesa-dev] [PATCH 4/6] nir: Add a local variable-based copy propagation pass

2017-01-05 Thread Jason Ekstrand
On Wed, Jan 4, 2017 at 9:31 PM, Timothy Arceri wrote: > There was a bit to take in here but it seems ok to me. I've made a > bunch of trivial suggestions/comments below otherwise: > > Reviewed-by: Timothy Arceri > > On Mon, 2016-12-12

[Mesa-dev] [PATCH] fixup! EGL: Implement the libglvnd interface for EGL (v2)

2017-01-05 Thread Kyle Brenneman
--- src/egl/generate/eglFunctionList.py | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/egl/generate/eglFunctionList.py b/src/egl/generate/eglFunctionList.py index b19b5f7..80cb834 100644 --- a/src/egl/generate/eglFunctionList.py +++

Re: [Mesa-dev] [PATCH] i965: Don't set EmitNoMainReturn.

2017-01-05 Thread Timothy Arceri
Reviewed-by: Timothy Arceri On Thu, 2017-01-05 at 12:05 -0800, Kenneth Graunke wrote: > A while ago, we stopped using Luca's GLSL IR lower_jumps pass in > favor > of nir_lower_returns().  Marek's commit > d3cb79e043338b0e55a3fba8df652f3 > put it in

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Samuel Pitoiset
On 01/05/2017 10:06 PM, Roland Scheidegger wrote: Am 05.01.2017 um 21:50 schrieb Samuel Pitoiset: On 01/05/2017 09:44 PM, Marek Olšák wrote: On Thu, Jan 5, 2017 at 9:00 PM, Roland Scheidegger wrote: Am 05.01.2017 um 20:43 schrieb Samuel Pitoiset: On 01/05/2017

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Roland Scheidegger
Am 05.01.2017 um 21:50 schrieb Samuel Pitoiset: > > > On 01/05/2017 09:44 PM, Marek Olšák wrote: >> On Thu, Jan 5, 2017 at 9:00 PM, Roland Scheidegger >> wrote: >>> Am 05.01.2017 um 20:43 schrieb Samuel Pitoiset: On 01/05/2017 06:49 PM, Roland Scheidegger

Re: [Mesa-dev] [PATCH v3 06/22] spirv: fix SpvOpSpecConstantOp with SpvOpVectorShuffle working with double-based vecs

2017-01-05 Thread Jason Ekstrand
On Thu, Jan 5, 2017 at 12:39 PM, Jason Ekstrand wrote: > On Thu, Jan 5, 2017 at 2:18 AM, Samuel Iglesias Gonsálvez < > sigles...@igalia.com> wrote: > >> We need to pick two 32-bit values per component to perform the right >> shuffle operation. >> >> v2 (Jason): >> - Add

Re: [Mesa-dev] [PATCH v3 19/22] nir/i965: use two slots from inputs_read for dvec3/dvec4 vertex input attributes

2017-01-05 Thread Jason Ekstrand
On Thu, Jan 5, 2017 at 2:18 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > From: "Juan A. Suarez Romero" > > So far, input_reads was a bitmap tracking which vertex input locations > were being used. > > In OpenGL, an attribute bigger than a vec4 (like a dvec3

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Samuel Pitoiset
On 01/05/2017 09:44 PM, Marek Olšák wrote: On Thu, Jan 5, 2017 at 9:00 PM, Roland Scheidegger wrote: Am 05.01.2017 um 20:43 schrieb Samuel Pitoiset: On 01/05/2017 06:49 PM, Roland Scheidegger wrote: Meh, I'm not really a big fan of such hacks. GPUs have support for

Re: [Mesa-dev] [PATCH 1/3] vl/dri3: use external texture as back buffers(v4)

2017-01-05 Thread Andy Furniss
Christian König wrote: Am 04.01.2017 um 18:13 schrieb Nayan Deshmukh: dri3 allows us to send handle of a texture directly to X so this patch allows a state tracker to directly send its texture to X to be used as back buffer and avoids extra copying v2: use clip width/height to display a

Re: [Mesa-dev] [PATCH v3 21/22] anv: enable float64 feature on supported platforms

2017-01-05 Thread Jason Ekstrand
With the image_ms_array line removed (I don't believe we support that), 20-22 are Reviewed-by: Jason Ekstrand On Thu, Jan 5, 2017 at 12:44 PM, Jason Ekstrand wrote: > You're doing more here than enabling float64... > > On Thu, Jan 5, 2017 at 2:18

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Marek Olšák
On Thu, Jan 5, 2017 at 9:00 PM, Roland Scheidegger wrote: > Am 05.01.2017 um 20:43 schrieb Samuel Pitoiset: >> >> >> On 01/05/2017 06:49 PM, Roland Scheidegger wrote: >>> Meh, I'm not really a big fan of such hacks. GPUs have support for NaNs >>> since ages, and while glsl is

Re: [Mesa-dev] [PATCH v3 21/22] anv: enable float64 feature on supported platforms

2017-01-05 Thread Jason Ekstrand
You're doing more here than enabling float64... On Thu, Jan 5, 2017 at 2:18 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > Signed-off-by: Samuel Iglesias Gonsálvez > --- > src/intel/vulkan/anv_pipeline.c | 7 ++- > 1 file changed, 6 insertions(+), 1

Re: [Mesa-dev] [PATCH v3 18/22] isl: fix VA64 support for double and dvecN vertex attributes

2017-01-05 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Thu, Jan 5, 2017 at 2:18 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > We use *64*_PASSTHRU formats to upload vertex attributes of 64 bits > to avoid conversions. From the BDW PRM, Volume 2d, page 586 >

Re: [Mesa-dev] [PATCH v3 12/22] nir: add nir_get_nir_type_for_glsl_type()

2017-01-05 Thread Jason Ekstrand
On Thu, Jan 5, 2017 at 2:18 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > v2 (Jason): > - Refactor nir_get_nir_type_for_glsl_type() to avoid using unneeded > helpers (Jason) > > Signed-off-by: Samuel Iglesias Gonsálvez > --- > src/compiler/nir/nir.h | 27

Re: [Mesa-dev] [PATCH v3 06/22] spirv: fix SpvOpSpecConstantOp with SpvOpVectorShuffle working with double-based vecs

2017-01-05 Thread Jason Ekstrand
On Thu, Jan 5, 2017 at 2:18 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > We need to pick two 32-bit values per component to perform the right > shuffle operation. > > v2 (Jason): > - Add assert to check matching bit sizes (Jason) > - Simplify the code to pick components (Jason)

[Mesa-dev] [Bug 99179] Mesa freezez the pc when running nativ games for linux

2017-01-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99179 --- Comment #9 from APoliTech --- Not realy. Because i teste on over 4 PC's with over 4 Ubuntu base destros with different versions. And its the same problem. I beleave that in the new version of mesa they change some

Re: [Mesa-dev] [PATCH v2 22/25] nir/i965: use two slots from inputs_read for dvec3/dvec4 vertex input attributes

2017-01-05 Thread Jason Ekstrand
On Thu, Jan 5, 2017 at 6:56 AM, Juan A. Suarez Romero wrote: > On Thu, 2017-01-05 at 06:41 -0800, Jason Ekstrand wrote: > > On Jan 5, 2017 3:11 AM, "Juan A. Suarez Romero" > wrote: > > On Wed, 2017-01-04 at 07:06 -0800, Jason Ekstrand wrote: > > On Jan

[Mesa-dev] [Bug 99214] Crash in library libswrAVX.so when assigning vertex buffer object pointers with elements of type GL_DOUBLE

2017-01-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99214 Tim Rowley changed: What|Removed |Added Resolution|--- |FIXED

[Mesa-dev] [Bug 97102] [dri][swr] stack overflow / infinite loop with GALLIUM_DRIVER=swr

2017-01-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97102 Bruce Cherniak changed: What|Removed |Added Status|NEW |RESOLVED

Re: [Mesa-dev] [PATCH 00/32] [v2] Renderbuffer Decompression (and GBM modifiers)

2017-01-05 Thread Chad Versace
This patch has a regressing side-effect: it disables CCS for all single-sample miptrees created by glRenderbufferStorage(). After stepping through some Piglit tests, I believe the problem is that line 161 below always returns false for such miptrees because mt->is_scanout is true. I don't

Re: [Mesa-dev] [PATCH] i965: call intel_prepare_render always when reading pixels

2017-01-05 Thread Kenneth Graunke
On Thursday, January 5, 2017 2:19:15 PM PST Tapani Pälli wrote: > Currently we do this only in the fallback code (when tiled memcpy > version failed) but it needs to be done always so that we have > correct read and write buffer in place. No regressions seen in CI. > > Fixes: >

[Mesa-dev] [PATCH] i965: Don't set EmitNoMainReturn.

2017-01-05 Thread Kenneth Graunke
A while ago, we stopped using Luca's GLSL IR lower_jumps pass in favor of nir_lower_returns(). Marek's commit d3cb79e043338b0e55a3fba8df652f3 put it in do_common_optimization, which resulted in us calling it again. Dropping the EmitNoMainReturn setting makes us skip that pass again. Apparently

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Roland Scheidegger
Am 05.01.2017 um 20:43 schrieb Samuel Pitoiset: > > > On 01/05/2017 06:49 PM, Roland Scheidegger wrote: >> Meh, I'm not really a big fan of such hacks. GPUs have support for NaNs >> since ages, and while glsl is lenient the point stands that returning a >> NaN is a more correct result, so doing

Re: [Mesa-dev] [PATCH 7/7] nvc0: enable FBFETCH with a special slot for color buffer 0

2017-01-05 Thread Samuel Pitoiset
On 01/05/2017 06:40 PM, Ilia Mirkin wrote: On Thu, Jan 5, 2017 at 12:22 PM, Samuel Pitoiset wrote: Would be nice to test on Maxwell as well. No ES 3.1 there (yet), so no tests. I probably should have just forced it. Will do. Will be there soon. :) More

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Samuel Pitoiset
On 01/05/2017 08:32 PM, Kenneth Graunke wrote: On Thursday, January 5, 2017 5:47:37 PM PST Samuel Pitoiset wrote: As explained by Nicolai, it seems like D3D always compute the absolute value while GLSL says that the result of inversesqrt() is undefined if x <= 0. Using the absolute value

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Samuel Pitoiset
On 01/05/2017 06:49 PM, Roland Scheidegger wrote: Meh, I'm not really a big fan of such hacks. GPUs have support for NaNs since ages, and while glsl is lenient the point stands that returning a NaN is a more correct result, so doing extra work to get a wrong result doesn't look all that great

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Samuel Pitoiset
On 01/05/2017 06:37 PM, Marek Olšák wrote: Shouldn't we also use abs for SQRT? For example, this adds abs for both RSQ and SQRT: https://cgit.freedesktop.org/~mareko/mesa/commit/?id=5e0fb661a8e6ac5f7b2245dd31595155128e0664 Yes, it makes more sense to do it for both even if we don't have any

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Kenneth Graunke
On Thursday, January 5, 2017 5:47:37 PM PST Samuel Pitoiset wrote: > As explained by Nicolai, it seems like D3D always compute the > absolute value while GLSL says that the result of inversesqrt() > is undefined if x <= 0. Using the absolute value looks like safer > especially when the game has

[Mesa-dev] [PATCH 2/2] i965: Delete brw->predicate.supported.

2017-01-05 Thread Kenneth Graunke
Just check the screen feature bitfield. Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/brw_conditional_render.c | 2 +- src/mesa/drivers/dri/i965/brw_context.h| 1 - src/mesa/drivers/dri/i965/intel_extensions.c | 5 - 3 files changed, 1

[Mesa-dev] [PATCH 1/2] i965: Enable predicate support on gen >= 8.

2017-01-05 Thread Kenneth Graunke
Predication needs cmd parser only on gen7. For newer platforms, it should be available without it. Signed-off-by: Rafael Antognolli Signed-off-by: Kenneth Graunke --- src/mesa/drivers/dri/i965/intel_screen.c | 2 +- 1 file changed, 1

Re: [Mesa-dev] [PATCH v3 6/7] i965: Add support for xfb overflow query on conditional render.

2017-01-05 Thread Kenneth Graunke
On Tuesday, December 13, 2016 2:50:58 PM PST Rafael Antognolli wrote: > Enable the use of a transform feedback overflow query with > glBeginConditionalRender. The render commands will only execute if the > query is true (i.e. if there was an overflow). > > Use ARB_conditional_render_inverted to

Re: [Mesa-dev] [PATCH v3 5/7] i965: Add support for xfb overflow on query buffer objects.

2017-01-05 Thread Kenneth Graunke
On Tuesday, December 13, 2016 2:50:57 PM PST Rafael Antognolli wrote: > Enable getting the results of a transform feedback overflow query with a > buffer object. > > Signed-off-by: Rafael Antognolli > --- > src/mesa/drivers/dri/i965/hsw_queryobj.c | 108 >

Re: [Mesa-dev] [PATCH] swr: [rasterizer core/common/jitter] gl_double support

2017-01-05 Thread Cherniak, Bruce
Reviewed-by: Bruce Cherniak > On Jan 5, 2017, at 11:18 AM, Tim Rowley wrote: > > --- > .../drivers/swr/rasterizer/common/formats.cpp | 104 ++--- > .../drivers/swr/rasterizer/common/formats.h| 4 + >

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Roland Scheidegger
Meh, I'm not really a big fan of such hacks. GPUs have support for NaNs since ages, and while glsl is lenient the point stands that returning a NaN is a more correct result, so doing extra work to get a wrong result doesn't look all that great to me. FWIW dx10 requires NaNs as results (for both

[Mesa-dev] [PATCH 2/2] glsl: Make copy propagation loop through copy-chains

2017-01-05 Thread Thomas Helland
This should allow us to resolve copy propagation faster, as we don't need multiple runs of the pass when we have situations like: foo = bar; baz = foo; --- src/compiler/glsl/opt_copy_propagation.cpp | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 1/2] glsl: Change copy propagation to use variable -> acp_entry mapping

2017-01-05 Thread Thomas Helland
Map from ir_variable to acp_entry instead of from lhs to rhs. Add a field in the acp_entry for the acp_entry of the ir_variable that is meant to be a replacement for this ir_variable. Insert both acp_entries in the table mapped to their own ir_variable. This way we can use only one hash table, and

Re: [Mesa-dev] [PATCH 7/7] nvc0: enable FBFETCH with a special slot for color buffer 0

2017-01-05 Thread Ilia Mirkin
On Thu, Jan 5, 2017 at 12:22 PM, Samuel Pitoiset wrote: > Would be nice to test on Maxwell as well. No ES 3.1 there (yet), so no tests. I probably should have just forced it. Will do. > > More comments inline. > > Thanks. > > > On 01/02/2017 07:01 AM, Ilia Mirkin

Re: [Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Marek Olšák
Shouldn't we also use abs for SQRT? For example, this adds abs for both RSQ and SQRT: https://cgit.freedesktop.org/~mareko/mesa/commit/?id=5e0fb661a8e6ac5f7b2245dd31595155128e0664 Marek On Thu, Jan 5, 2017 at 5:47 PM, Samuel Pitoiset wrote: > As explained by Nicolai,

Re: [Mesa-dev] [PATCH 7/7] nvc0: enable FBFETCH with a special slot for color buffer 0

2017-01-05 Thread Samuel Pitoiset
Would be nice to test on Maxwell as well. More comments inline. Thanks. On 01/02/2017 07:01 AM, Ilia Mirkin wrote: We don't need to support all the color buffers for advanced blend, just cb0. For Fermi, we use the special binding slots so that we don't overlap with user textures, while

[Mesa-dev] [PATCH] swr: [rasterizer core/common/jitter] gl_double support

2017-01-05 Thread Tim Rowley
--- .../drivers/swr/rasterizer/common/formats.cpp | 104 ++--- .../drivers/swr/rasterizer/common/formats.h| 4 + .../drivers/swr/rasterizer/core/format_traits.h| 88 + src/gallium/drivers/swr/rasterizer/core/utils.h| 64 +

Re: [Mesa-dev] [PATCH 0/8] i965: gl_TessLevel rescrambling in NIR

2017-01-05 Thread Eero Tamminen
Hi, On 05.01.2017 01:55, Kenneth Graunke wrote: On Wednesday, January 4, 2017 3:16:41 PM PST Eero Tamminen wrote: Are there yet other use-cases for Vulkan tessellation besides Sacha Willems' three tests here: https://github.com/SaschaWillems/Vulkan ? Does it matter? It's required

Re: [Mesa-dev] [PATCH 3/7] gallium: add FBFETCH opcode to retrieve the current sample value

2017-01-05 Thread Ilia Mirkin
On Thu, Jan 5, 2017 at 11:30 AM, Nicolai Hähnle wrote: > On 05.01.2017 17:02, Ilia Mirkin wrote: >> >> On Thu, Jan 5, 2017 at 10:48 AM, Nicolai Hähnle >> wrote: >>> >>> On 02.01.2017 21:41, Marek Olšák wrote: On Mon, Jan 2, 2017 at 7:01 AM,

[Mesa-dev] [PATCH] radeonsi: compute the absolute value before RSQ

2017-01-05 Thread Samuel Pitoiset
As explained by Nicolai, it seems like D3D always compute the absolute value while GLSL says that the result of inversesqrt() is undefined if x <= 0. Using the absolute value looks like safer especially when the game has been ported from D3D to GL. This gets rid of the NaN values in the "Spec

Re: [Mesa-dev] [PATCH v3 06/22] spirv: fix SpvOpSpecConstantOp with SpvOpVectorShuffle working with double-based vecs

2017-01-05 Thread Erik Faye-Lund
On Jan 5, 2017 10:20, "Samuel Iglesias Gonsálvez" wrote: We need to pick two 32-bit values per component to perform the right shuffle operation. v2 (Jason): - Add assert to check matching bit sizes (Jason) - Simplify the code to pick components (Jason) Signed-off-by:

Re: [Mesa-dev] [PATCH 3/7] gallium: add FBFETCH opcode to retrieve the current sample value

2017-01-05 Thread Nicolai Hähnle
On 05.01.2017 17:02, Ilia Mirkin wrote: On Thu, Jan 5, 2017 at 10:48 AM, Nicolai Hähnle wrote: On 02.01.2017 21:41, Marek Olšák wrote: On Mon, Jan 2, 2017 at 7:01 AM, Ilia Mirkin wrote: Signed-off-by: Ilia Mirkin ---

[Mesa-dev] [ANNOUNCE] mesa 13.0.3

2017-01-05 Thread Emil Velikov
Mesa 13.0.3 is now available. This series we have - multiple fixes for i965 and radeonsi. The ANV driver has extra smoke testing fixes and memory leaks have been resolved. Chad Versace (2): i965/mt: Disable aux surfaces after making miptree shareable egl: Fix crashes in

Re: [Mesa-dev] [PATCH 5/5] gallium: remove TGSI_OPCODE_SUB

2017-01-05 Thread Nicolai Hähnle
On 01.01.2017 01:04, Marek Olšák wrote: From: Marek Olšák It's redundant with the source modifier. This could have been split up, but oh well. Aside from Ilia's comment, patches 4&5 are Reviewed-by: Nicolai Hähnle ---

Re: [Mesa-dev] [PATCH 3/7] gallium: add FBFETCH opcode to retrieve the current sample value

2017-01-05 Thread Ilia Mirkin
On Thu, Jan 5, 2017 at 10:48 AM, Nicolai Hähnle wrote: > On 02.01.2017 21:41, Marek Olšák wrote: >> >> On Mon, Jan 2, 2017 at 7:01 AM, Ilia Mirkin wrote: >>> >>> Signed-off-by: Ilia Mirkin >>> --- >>>

Re: [Mesa-dev] [PATCH 22/32] i965: Create correctly sized mcs for an image

2017-01-05 Thread Pohjolainen, Topi
On Wed, Jan 04, 2017 at 05:36:22PM -0800, Ben Widawsky wrote: > On 17-01-04 09:51:20, Topi Pohjolainen Topi Pohjolainen wrote: > > On Mon, Jan 02, 2017 at 06:37:13PM -0800, Ben Widawsky wrote: > > > v2: Leave "image+mod" (Topi) > > > > > > Signed-off-by: Ben Widawsky > > >

Re: [Mesa-dev] [PATCH 24/32] i965/miptree: Allocate mt earlier in update winsys

2017-01-05 Thread Pohjolainen, Topi
On Wed, Jan 04, 2017 at 06:17:31PM -0800, Ben Widawsky wrote: > On 17-01-04 10:57:40, Topi Pohjolainen Topi Pohjolainen wrote: > > On Wed, Jan 04, 2017 at 10:26:50AM +0200, Pohjolainen, Topi wrote: > > > On Mon, Jan 02, 2017 at 06:37:15PM -0800, Ben Widawsky wrote: > > > > Allows us to continue

Re: [Mesa-dev] [PATCH 27/32] i965: Change resolve flags to enum

2017-01-05 Thread Pohjolainen, Topi
On Wed, Jan 04, 2017 at 05:58:46PM -0800, Ben Widawsky wrote: > On 17-01-04 10:00:59, Topi Pohjolainen Topi Pohjolainen wrote: > > On Mon, Jan 02, 2017 at 06:37:18PM -0800, Ben Widawsky wrote: > > > In the foreseeable future it doesn't seem to make sense to have multiple > > > resolve flags. What

Re: [Mesa-dev] [PATCH 31/32] i965: Remove scanout restriction from lossless compression

2017-01-05 Thread Pohjolainen, Topi
On Wed, Jan 04, 2017 at 06:36:05PM -0800, Ben Widawsky wrote: > On 17-01-04 10:41:58, Topi Pohjolainen Topi Pohjolainen wrote: > > On Mon, Jan 02, 2017 at 06:37:22PM -0800, Ben Widawsky wrote: > > > v2: Try to keep the assert as recommended by Topi. This requires > > > modifying the num_samples

Re: [Mesa-dev] [PATCH 6/7] st/mesa: add support for advanced blend when fb can be fetched from

2017-01-05 Thread Nicolai Hähnle
Reviewed-by: Nicolai Hähnle On 02.01.2017 07:01, Ilia Mirkin wrote: This implements support for emitting FBFETCH ops, using the existing lowering pass for advanced blend logic, and disabling hw blend when advanced blending is enabled. Signed-off-by: Ilia Mirkin

Re: [Mesa-dev] [PATCH 5/7] gallium: add flags parameter to texture barrier

2017-01-05 Thread Nicolai Hähnle
On 02.01.2017 07:01, Ilia Mirkin wrote: This is so that we can differentiate between flushing any framebuffer reading caches from regular sampler caches. Signed-off-by: Ilia Mirkin --- This felt too simple and silly to create an extra callback for, especially since the

Re: [Mesa-dev] [PATCH 3/7] gallium: add FBFETCH opcode to retrieve the current sample value

2017-01-05 Thread Nicolai Hähnle
On 02.01.2017 21:41, Marek Olšák wrote: On Mon, Jan 2, 2017 at 7:01 AM, Ilia Mirkin wrote: Signed-off-by: Ilia Mirkin --- src/gallium/auxiliary/tgsi/tgsi_info.c | 2 +- src/gallium/docs/source/tgsi.rst | 11 +++

Re: [Mesa-dev] [PATCH] st/va: fix incorrect argument in vl_compositor_cleanup

2017-01-05 Thread Christian König
Am 05.01.2017 um 15:30 schrieb Nayan Deshmukh: This fixes the mistake introduced in commit b6737a8bcd03ea68952799144c0c6e6e6679bee9 Signed-off-by: Nayan Deshmukh Reviewed-by: Christian König . ---

Re: [Mesa-dev] [PATCH 12/12] radeonsi: turn SDMA IBs into de-facto preambles of GFX IBs

2017-01-05 Thread Nicolai Hähnle
That Deus Ex number is impressive. For the series: Reviewed-by: Nicolai Hähnle On 02.01.2017 23:54, Marek Olšák wrote: From: Marek Olšák Draw calls no longer flush SDMA IBs. r600_need_dma_space is responsible for synchronizing execution between

Re: [Mesa-dev] [PATCH 1/3] vl/dri3: use external texture as back buffers(v4)

2017-01-05 Thread Leo Liu
On 01/05/2017 05:21 AM, Christian König wrote: Am 04.01.2017 um 18:13 schrieb Nayan Deshmukh: dri3 allows us to send handle of a texture directly to X so this patch allows a state tracker to directly send its texture to X to be used as back buffer and avoids extra copying v2: use clip

Re: [Mesa-dev] [PATCH 1/5] gallium/hud: add an option to rename each data source

2017-01-05 Thread Nicolai Hähnle
On 01.01.2017 01:05, Marek Olšák wrote: From: Marek Olšák useful for radeonsi performance counters --- src/gallium/auxiliary/hud/hud_context.c | 40 - 1 file changed, 30 insertions(+), 10 deletions(-) diff --git

Re: [Mesa-dev] [PATCH v2 22/25] nir/i965: use two slots from inputs_read for dvec3/dvec4 vertex input attributes

2017-01-05 Thread Juan A. Suarez Romero
On Thu, 2017-01-05 at 06:41 -0800, Jason Ekstrand wrote: > On Jan 5, 2017 3:11 AM, "Juan A. Suarez Romero" > wrote: > On Wed, 2017-01-04 at 07:06 -0800, Jason Ekstrand wrote: > > On Jan 4, 2017 5:46 AM, "Juan A. Suarez Romero" > m> wrote: > > On Tue,

Re: [Mesa-dev] [PATCH v2 22/25] nir/i965: use two slots from inputs_read for dvec3/dvec4 vertex input attributes

2017-01-05 Thread Jason Ekstrand
On Jan 5, 2017 3:11 AM, "Juan A. Suarez Romero" wrote: On Wed, 2017-01-04 at 07:06 -0800, Jason Ekstrand wrote: On Jan 4, 2017 5:46 AM, "Juan A. Suarez Romero" wrote: On Tue, 2017-01-03 at 14:41 -0800, Jason Ekstrand wrote: I made a few pretty

[Mesa-dev] [PATCH] st/va: fix incorrect argument in vl_compositor_cleanup

2017-01-05 Thread Nayan Deshmukh
This fixes the mistake introduced in commit b6737a8bcd03ea68952799144c0c6e6e6679bee9 Signed-off-by: Nayan Deshmukh --- src/gallium/state_trackers/va/context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/state_trackers/va/context.c

Re: [Mesa-dev] [PATCH] st/mesa: fix a segfault when prog->sh.data is NULL

2017-01-05 Thread Samuel Pitoiset
This fixes a bunch of arb_fragment_program piglit tests. Thanks. Reviewed-by: Samuel Pitoiset On 01/05/2017 01:48 PM, Marek Olšák wrote: From: Marek Olšák Broken by: st/mesa: get Version from gl_program rather than gl_shader_program ---

Re: [Mesa-dev] [PATCH 2/2] va: call texture_get_handle while the mutex is being held

2017-01-05 Thread Christian König
Am 04.01.2017 um 18:57 schrieb Marek Olšák: On Wed, Jan 4, 2017 at 6:40 PM, Alex Deucher wrote: On Wed, Jan 4, 2017 at 5:47 AM, Marek Olšák wrote: From: Marek Olšák The context may be used by texture_get_handle. The the omx

[Mesa-dev] [PATCH 22/22] docs: mark GL_ARB_gpu_shader_fp64 and OpenGL 4.0 as supported by i965/gen7+

2017-01-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- docs/features.txt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/features.txt b/docs/features.txt index f4a67df..18327af 100644 --- a/docs/features.txt +++ b/docs/features.txt @@ -107,7 +107,7 @@ GL

[Mesa-dev] [PATCH 21/22] i965: enable OpenGL 4.0 to Ivybridge/Valleyview

2017-01-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/mesa/drivers/dri/i965/intel_extensions.c | 2 +- src/mesa/drivers/dri/i965/intel_screen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c

[Mesa-dev] [PATCH] anv: don't skip the VUE header if we are reading gl_Layer in a fragment shader

2017-01-05 Thread Iago Toral Quiroga
This is the same we do in the GL driver: the hardware provides gl_Layer in the VUE header, so when the fragment shader reads it we can't skip it. --- With this patch we now successfully read gl_Layer in fragment shaders. Layered rendering still does not work though, probably because we still need

[Mesa-dev] [PATCH 20/22] i965: enable ARB_gpu_shader_fp64 for Ivybridge/Valleyview

2017-01-05 Thread Samuel Iglesias Gonsálvez
Signed-off-by: Samuel Iglesias Gonsálvez --- src/mesa/drivers/dri/i965/intel_extensions.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_extensions.c b/src/mesa/drivers/dri/i965/intel_extensions.c index

[Mesa-dev] [PATCH 19/22] i965/vec4: fix SIMD-with lowering for CMP/MOV instructions with conditional modifiers

2017-01-05 Thread Samuel Iglesias Gonsálvez
From: "Juan A. Suarez Romero" When splitting a CMP/MOV instruction with NULL dest, DF sources, and conditional modifier; we can't use directly the flag registers, as they will have the wrong results in IVB/VLV after the scalarization. Rather, we need to store the result in

[Mesa-dev] [PATCH 14/22] i965/vec4: fix double_to_single() for IVB/VLV

2017-01-05 Thread Samuel Iglesias Gonsálvez
From: "Juan A. Suarez Romero" In the generator we must generate slightly different code for Ivybridge/Valleview, because of the way the stride works in this hardware. --- src/mesa/drivers/dri/i965/brw_vec4_generator.cpp | 26 +--- 1 file changed, 23

[Mesa-dev] [PATCH 18/22] i965/vec4: adapt setup_imm_df() to allow inserting instructions before another one

2017-01-05 Thread Samuel Iglesias Gonsálvez
Add a new setup_imm_df() that alows the insertion of the instructions before another one. This will be used in the lowering passes for DF instructions. Signed-off-by: Samuel Iglesias Gonsálvez --- src/mesa/drivers/dri/i965/brw_vec4.h | 2 ++

[Mesa-dev] [PATCH 17/22] i965/vec4: fix register_coalesce() for partial writes

2017-01-05 Thread Samuel Iglesias Gonsálvez
From: "Juan A. Suarez Romero" When lowering double_to_single() we added a final mov() that puts 32-bit values from one register in the second half of destination. --- src/mesa/drivers/dri/i965/brw_vec4.cpp | 5 +

[Mesa-dev] [PATCH 15/22] i965/vec4: fix SIMD-width lowering for double_to_single operation in IVB/VLV

2017-01-05 Thread Samuel Iglesias Gonsálvez
From: "Juan A. Suarez Romero" When spliting double_to_single() in Ivybridge/Valleyview, the second part should use a temporal register, and then move the values to the second half of the original destiny, so we get all the results in the same register. ---

[Mesa-dev] [PATCH 16/22] i965/vec4: consider subregister offset in live variables

2017-01-05 Thread Samuel Iglesias Gonsálvez
From: "Juan A. Suarez Romero" Take in account the offset value when getting the var from register. This is required when dealing with an operation that writes half of the register (like one d2x in IVB/VLV, which uses exec_size == 4). Note that for live analysis variables

[Mesa-dev] [PATCH 13/22] i965/vec4: keep original type when dealing with null registers

2017-01-05 Thread Samuel Iglesias Gonsálvez
From: "Juan A. Suarez Romero" Keep the original type when dealing with null registers. Specially because we do no want to introduce an implicit conversion between types that could affect the conditional flags. This affects specially when the original type is DF, and we are

[Mesa-dev] [PATCH 11/22] i965/fs: lower all non-force_writemask_all DF instructions to SIMD4 on IVB/VLV

2017-01-05 Thread Samuel Iglesias Gonsálvez
The hardware applies the same channel enable signals to both halves of the compressed instruction which will be just wrong under non-uniform control flow. Fix this by splitting those instructions to SIMD4. Signed-off-by: Samuel Iglesias Gonsálvez ---

  1   2   >