[Mesa-dev] [Bug 100876] Variable GALLIUM_HUD_DUMP_DIR is not working with Wine LFS

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100876 Balázs Vinarz changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

Re: [Mesa-dev] [PATCH] i965: Extend the negative 32-bit deltas to 64-bits

2018-03-26 Thread Sergii Romantsov
Hello Stuart, Nice to hear. And thanks for your time and contribution. On Tue, Mar 27, 2018 at 8:40 AM, Stuart Young wrote: > Hi Sergii, > > I built this into mesa 17.3.7 and it seems to solve all the issues I've > seen that were mentioned in 101408. > > This includes not just the issues with th

[Mesa-dev] [Bug 105529] u_debug_stack.c:268: error: #pragma GCC diagnostic not allowed inside functions

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105529 Timothy Arceri changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [Mesa-dev] [PATCH v3] mesa: readpixels add support for GL_HALF_FLOAT

2018-03-26 Thread Tapani Pälli
Thanks, I'll modify the commit message a bit and push this in. On 03/26/2018 05:13 PM, Lin Johnson wrote: Ext_color_buffer_half_float is using type GL_HALF_FLOAT and data_type GL_FLOAT. This fix Android CTS test android.view.cts.PixelCopyTest v2: remove commtens of Ext_color_buffer_half_float. A

Re: [Mesa-dev] [PATCH] glsl_types: fix build break with intel/msvc compiler

2018-03-26 Thread Ian Romanick
Reviewed-by: Ian Romanick On 03/26/2018 03:49 PM, Rob Clark wrote: > The VECN() macro was taking advantage of a GCC specific feature that is > not available on lesser compilers, mostly for the purposes of avoiding a > macro that encoded a return statement. > > But as suggested by Ian, we could j

Re: [Mesa-dev] [PATCH 4/4] radeonsi/nir: gather buffers declared more accurately and use const fast path

2018-03-26 Thread Timothy Arceri
On 27/03/18 15:19, Timothy Arceri wrote: For now we skip SI && HAVE_LLVM < 0x0600 for simplicity. We also skip setting the more accurate masks for some builtin uniforms for now as it causes some piglit regressions. --- src/gallium/drivers/radeonsi/si_shader.c | 8 +++ src/gallium/driver

Re: [Mesa-dev] [PATCH 4/4] i965: Drop unnecessary bo->align field.

2018-03-26 Thread Jason Ekstrand
On March 26, 2018 22:39:33 Jason Ekstrand wrote: Some day we may need this because Ys tiled images must be 64K aligned. However, we can always put it back in. Rb If you're not worries about sparse right now (which I wouldn't be), you can put my rb on the other too. On March 26, 2018 16:5

Re: [Mesa-dev] [PATCH 4/4] i965: Drop unnecessary bo->align field.

2018-03-26 Thread Jason Ekstrand
Some day we may need this because Ys tiled images must be 64K aligned. However, we can always put it back in. Rb On March 26, 2018 16:52:42 Kenneth Graunke wrote: bo->align is always 0; there's no need to waste 8 bytes storing it. Thanks to C99 initializers zeroing fields, we can completely

Re: [Mesa-dev] [PATCH 4/4] radeonsi/nir: gather buffers declared more accurately and use const fast path

2018-03-26 Thread Timothy Arceri
On 27/03/18 15:19, Timothy Arceri wrote: For now we skip SI && HAVE_LLVM < 0x0600 for simplicity. We also skip setting the more accurate masks for some builtin uniforms for now as it causes some piglit regressions. --- src/gallium/drivers/radeonsi/si_shader.c | 8 +++ src/gallium/drivers/

[Mesa-dev] [PATCH 1/4] st/glsl_to_nir: gather next_stage in shader_info

2018-03-26 Thread Timothy Arceri
--- src/compiler/shader_info.h| 5 + src/mesa/state_tracker/st_glsl_to_nir.cpp | 15 +++ 2 files changed, 20 insertions(+) diff --git a/src/compiler/shader_info.h b/src/compiler/shader_info.h index 0eeb2ca58ea..fcf5cca7b77 100644 --- a/src/compiler/shader_info.h +

[Mesa-dev] [PATCH 3/4] radeonsi: create load_const_buffer_desc_fast_path() helper

2018-03-26 Thread Timothy Arceri
This will be shared by the TGSI and NIR backends. For simplicity we leave the SI LLVM 5.0 and lower work around only in the TGSI backend. --- src/gallium/drivers/radeonsi/si_shader.c | 88 ++-- 1 file changed, 49 insertions(+), 39 deletions(-) diff --git a/src/gallium/

[Mesa-dev] [PATCH 4/4] radeonsi/nir: gather buffers declared more accurately and use const fast path

2018-03-26 Thread Timothy Arceri
For now we skip SI && HAVE_LLVM < 0x0600 for simplicity. We also skip setting the more accurate masks for some builtin uniforms for now as it causes some piglit regressions. --- src/gallium/drivers/radeonsi/si_shader.c | 8 +++ src/gallium/drivers/radeonsi/si_shader_nir.c | 82 +++

[Mesa-dev] [PATCH 2/4] radeonsi/nir: set TGSI_PROPERTY_NEXT_SHADER

2018-03-26 Thread Timothy Arceri
--- src/gallium/drivers/radeonsi/si_shader_nir.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader_nir.c b/src/gallium/drivers/radeonsi/si_shader_nir.c index d0830424967..52950668714 100644 --- a/src/gallium/drivers/radeonsi/si_shader_nir.c +++ b/src/ga

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 --- Comment #11 from Ilia Mirkin --- As an aside... there's no compilation bug here. Perhaps $other driver happens to get you a value of 0, but nothing guarantees that. Could just be luck in precisely how they do RA. Certainly nothing in the spe

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 --- Comment #10 from Ilia Mirkin --- (In reply to Swyter from comment #9) > @imirkin I'm just doing this, nothing too fancy: > > > glEnable(GL_DEBUG_OUTPUT); > > glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS); GL_ASSERT; > > glDebugMessageCa

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 --- Comment #9 from Swyter --- @imirkin I'm just doing this, nothing too fancy: > glEnable(GL_DEBUG_OUTPUT); > glEnable(GL_DEBUG_OUTPUT_SYNCHRONOUS); GL_ASSERT; > glDebugMessageCallback(GLErrorCallback, NULL); GL_ASSERT; >

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 --- Comment #8 from Ilia Mirkin --- (In reply to Swyter from comment #5) > Created attachment 138368 [details] > game-log-with-debug-ogl-context-and-callback-no-undefined-warns.txt > > @imirkin Looks like these GLSL warnings aren't exposed thro

[Mesa-dev] [PATCH 2/8] util: Add and use util_is_power_of_two_nonzero

2018-03-26 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick Reviewed-by: Eduardo Lima Mitev --- src/compiler/nir/nir_search_helpers.h | 13 - src/compiler/nir/nir_validate.c | 2 +- src/gallium/drivers/etnaviv/etnaviv_blt.c | 2 +- src/intel/compiler/brw_fs.cpp | 4

[Mesa-dev] [PATCH 6/8] compiler: All leaf Makefile.am should use +=

2018-03-26 Thread Ian Romanick
From: Ian Romanick This slightly simplifies later changes that add more Makefile.*.am files. Signed-off-by: Ian Romanick Reviewed-by: Eduardo Lima Mitev --- src/compiler/Makefile.am | 1 + src/compiler/Makefile.glsl.am | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a

[Mesa-dev] [PATCH 4/8] util: Optimize util_is_power_of_two_nonzero

2018-03-26 Thread Ian Romanick
From: Ian Romanick Signed-off-by: Ian Romanick Suggested-by: Matt Turner Reviewed-by: Eduardo Lima Mitev --- src/util/bitscan.h | 17 + 1 file changed, 17 insertions(+) diff --git a/src/util/bitscan.h b/src/util/bitscan.h index a3f2d414bd6..5cc75f0beba 100644 --- a/src/util/b

[Mesa-dev] [PATCH 1/8] util: Move util_is_power_of_two to bitscan.h and rename to util_is_power_of_two_or_zero

2018-03-26 Thread Ian Romanick
From: Ian Romanick The new name make the zero-input behavior more obvious. The next patch adds a new function with different zero-input behavior. Signed-off-by: Ian Romanick Suggested-by: Matt Turner --- src/amd/common/ac_gpu_info.c | 4 ++-- src/amd/common/ac_su

[Mesa-dev] [PATCH 8/8] i965: Silence unused parameter warning

2018-03-26 Thread Ian Romanick
From: Ian Romanick src/mesa/drivers/dri/i965/brw_draw_upload.c: In function ‘double_types’: src/mesa/drivers/dri/i965/brw_draw_upload.c:225:34: warning: unused parameter ‘brw’ [-Wunused-parameter] double_types(struct brw_context *brw, ^~~ Signed-off-by: Ian Ro

[Mesa-dev] [PATCH 5/8] util: Include bitscan.h directly

2018-03-26 Thread Ian Romanick
From: Ian Romanick Previously bitset.h would include u_math.h to get bitscan.h. u_math.h lives in src/gallium/auxiliary/util while both bitset.h and bitscan.h live in src/util. Having the one file directly include another file that lives in the same directory makes much more sense. As a side-e

[Mesa-dev] [PATCH 3/8] util: Use util_is_power_of_two_nonzero in u_vector

2018-03-26 Thread Ian Romanick
From: Ian Romanick Previously size=0, element_size=0 would have been allowed. That combination can only lead to despair. Signed-off-by: Ian Romanick --- src/util/u_vector.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/util/u_vector.c b/src/util/u_vector.c index

[Mesa-dev] [MOSTLY RESEND PATCH 0/8] Emit SPIR-V pre-pre-work

2018-03-26 Thread Ian Romanick
Most of these patches have been on the list at least once. Major changes are: - Patches 1, 6, and 7 had a bunch of changes due to rebasing. - Patches 2 had some minor changes due to rebasing. - Patches 3 and 8 are new. Only patches 4 and 5 should be unchanged. The whole series passes the Inte

[Mesa-dev] [PATCH 7/8] spirv: Move SPIR-V building to Makefile.spirv.am and spirv/meson.build

2018-03-26 Thread Ian Romanick
From: Ian Romanick Future changes will add generated files used only from src/compiler/glsl. These can't be built from Makefile.nir.am, and we can't move all the rules from Makefile.nir.am to Makefile.spirv.am (and it would be silly anyway). v2: Do it for meson too. Signed-off-by: Ian Romanick

Re: [Mesa-dev] [PATCH 1/4] i965: Drop BO_ALLOC_BUSY in intel_miptree_create_for_bo().

2018-03-26 Thread Jason Ekstrand
Rb On March 26, 2018 16:52:40 Kenneth Graunke wrote: intel_miptree_create_for_bo does not actually allocate a BO, so specifying allocation flags accomplishes nothing and is confusing. --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) di

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 --- Comment #7 from Ilia Mirkin --- (In reply to Ian Romanick from comment #6) > Swyter: Can you run your program in gdb, interrupt it during the hang, and > provide a backtrace? > > Reading Ilia's response, it seems that the trivial glslsparse

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 --- Comment #6 from Ian Romanick --- Swyter: Can you run your program in gdb, interrupt it during the hang, and provide a backtrace? Reading Ilia's response, it seems that the trivial glslsparsertest based test case doesn't reproduce the hang.

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 Swyter changed: What|Removed |Added CC||swyterzone+mes...@gmail.com --- Comment #5 fro

Re: [Mesa-dev] [PATCH v3 4/8] intel: Handle firstvertex in an identical way to BaseVertex

2018-03-26 Thread Ian Romanick
It looks like there are a couple places in brw_fs_nir.cpp (emit_system_values_block and fs_visitor::nir_emit_vs_intrinsic) that handle nir_intrinsic_load_base_instance but not nir_intrinsic_load_first_vertex. Should those cases be added? I have pushed a branch to my fd.o repo called gl_VertexID-f

[Mesa-dev] [PATCH 3/4] radeonsi: don't use the SPI barrier management bug workaround

2018-03-26 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_shader.c | 5 + 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/radeonsi/si_shader.c b/src/gallium/drivers/radeonsi/si_shader.c index 8ae742c93f6..00ebbb9b0f2 100644 --- a/src/gallium/drivers/radeonsi/si_shader.c +++ b/

[Mesa-dev] [PATCH 2/4] radeonsi: use maximum OFFCHIP_BUFFERING on Vega12

2018-03-26 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_pipe.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index fa9ee43389a..1cc08c5feed 100644 --- a/src/gallium/drivers/radeonsi/si_pi

[Mesa-dev] [PATCH 4/4] radeonsi: simplify DCC format categories

2018-03-26 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeon/r600_texture.c | 29 + 1 file changed, 9 insertions(+), 20 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_texture.c b/src/gallium/drivers/radeon/r600_texture.c index 1614df63c98..eb6706c9dcd 100644 --- a/sr

[Mesa-dev] [PATCH 2/4] radeonsi: use maximum OFFCHIP_BUFFERING on Vega12

2018-03-26 Thread Marek Olšák
From: Marek Olšák --- src/gallium/drivers/radeonsi/si_pipe.c | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/radeonsi/si_pipe.c b/src/gallium/drivers/radeonsi/si_pipe.c index fa9ee43389a..1cc08c5feed 100644 --- a/src/gallium/drivers/radeonsi/si_pi

[Mesa-dev] [PATCH 1/4] ac/surface: set AddrSurfInfoIn.format = ADDR_FMT_8, add assertions

2018-03-26 Thread Marek Olšák
From: Marek Olšák Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105738 --- src/amd/common/ac_surface.c | 8 1 file changed, 8 insertions(+) diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index 12dfc0cb1f2..81882576baf 100644 --- a/src/amd/common/ac_surf

[Mesa-dev] [PATCH 1/4] ac/surface: set AddrSurfInfoIn.format = ADDR_FMT_8, add assertions

2018-03-26 Thread Marek Olšák
From: Marek Olšák Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105738 --- src/amd/common/ac_surface.c | 8 1 file changed, 8 insertions(+) diff --git a/src/amd/common/ac_surface.c b/src/amd/common/ac_surface.c index 12dfc0cb1f2..81882576baf 100644 --- a/src/amd/common/ac_surf

[Mesa-dev] [PATCH 3/4] i965: Drop unused alignment parameter from brw_bo_alloc().

2018-03-26 Thread Kenneth Graunke
brw_bo_alloc no longer uses this parameter, so there's no point. --- src/mesa/drivers/dri/i965/brw_blorp.c | 2 +- src/mesa/drivers/dri/i965/brw_bufmgr.c| 2 +- src/mesa/drivers/dri/i965/brw_bufmgr.h| 2 +- src/mesa/drivers/dri/i965/brw_performance_query.c | 5 +

[Mesa-dev] [PATCH 1/4] i965: Drop BO_ALLOC_BUSY in intel_miptree_create_for_bo().

2018-03-26 Thread Kenneth Graunke
intel_miptree_create_for_bo does not actually allocate a BO, so specifying allocation flags accomplishes nothing and is confusing. --- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c

[Mesa-dev] [PATCH 2/4] i965: Drop alignment parameter from bo_alloc_internal().

2018-03-26 Thread Kenneth Graunke
Buffers are always page aligned on 965+ hardware; I believe this extra parameter is a vestige from the Gen2-3 era. All callers pass 0, and in fact we assert that the alignment is 0 unless BO_ALLOC_BUSY is set (for some reason). We can just drop the parameter and set the value to 0 explicitly. ---

[Mesa-dev] [PATCH 4/4] i965: Drop unnecessary bo->align field.

2018-03-26 Thread Kenneth Graunke
bo->align is always 0; there's no need to waste 8 bytes storing it. Thanks to C99 initializers zeroing fields, we can completely drop the only read of the field altogether. --- src/mesa/drivers/dri/i965/brw_bufmgr.c| 2 -- src/mesa/drivers/dri/i965/brw_bufmgr.h| 7 --- src/mesa

Re: [Mesa-dev] [PATCH] glapi: add glBlendBarrier(), glPrimitiveBoundingBox() prototypes

2018-03-26 Thread Sinclair Yeh
Reviewed-by: Sinclair Yeh On Mon, Mar 26, 2018 at 04:56:22PM -0600, Brian Paul wrote: > in glapi_dispatch.c, as we have for many other GLES functions. > Fixes a cross-compile issue (missing prototype) when GLES support > is disabled. > --- > src/mapi/glapi/glapi_dispatch.c | 2 ++ > 1 file chang

Re: [Mesa-dev] [PATCH] nir: fix crash in loop unroll corner case

2018-03-26 Thread Jason Ekstrand
On Sun, Mar 25, 2018 at 6:32 PM, Timothy Arceri wrote: > When an if nesting inside anouther if is optimised away we can > end up with a loop terminator and following block that looks like > this: > > if ssa_596 { > block block_5: > /* preds: block_4 */ >

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 --- Comment #4 from Ilia Mirkin --- The shader compiler provides warnings: $ bin/glslparsertest foo.frag pass 1.30 Successfully compiled fragment shader foo.frag: 0:54(14): warning: `i' used uninitialized 0:58(39): warning: `i' used uninitializ

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 --- Comment #3 from Swyter --- Created attachment 138367 --> https://bugs.freedesktop.org/attachment.cgi?id=138367&action=edit glxinfo.txt -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for t

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

2018-03-26 Thread AppVeyor
Build mesa 7298 failed Commit 7d2079908d by Marek Olšák on 3/21/2018 8:10 PM: winsys/amdgpu: always allow GTT placements on APUs\n\nReviewed-by: Christian König Configure your notification preferences ___

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 --- Comment #2 from Swyter --- Created attachment 138366 --> https://bugs.freedesktop.org/attachment.cgi?id=138366&action=edit default-fixed.frag -- You are receiving this mail because: You are the QA Contact for the bug. You are the assigne

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 --- Comment #1 from Swyter --- Created attachment 138365 --> https://bugs.freedesktop.org/attachment.cgi?id=138365&action=edit default.vert -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for

Re: [Mesa-dev] Question about min_index/max_index calculation

2018-03-26 Thread Marek Olšák
On Mon, Mar 26, 2018 at 6:39 PM, Erico Nunes wrote: > Thanks all for the input. > > I don't have an in-depth knowledge of the hardware either, though as > far as we can see the hardware does expect that we pass min_index in > the command stream. max_index is used to calculate the sizes in other >

[Mesa-dev] [Bug 105755] Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105755 Bug ID: 105755 Summary: Mesa freezes when the GLSL shader contains a `for` loop with an uninitialized `i` index/counter variable Product: Mesa Version: unspecified Hardwar

Re: [Mesa-dev] [PATCH] glsl_types: fix build break with intel/msvc compiler

2018-03-26 Thread Roland Scheidegger
Looks nicer in any case. Reviewed-by: Roland Scheidegger Am 27.03.2018 um 00:49 schrieb Rob Clark: > The VECN() macro was taking advantage of a GCC specific feature that is > not available on lesser compilers, mostly for the purposes of avoiding a > macro that encoded a return statement. > > Bu

Re: [Mesa-dev] [PATCH] glsl: remove GCC construct from VECN macro

2018-03-26 Thread Roland Scheidegger
Am 27.03.2018 um 00:44 schrieb Rob Clark: > On Mon, Mar 26, 2018 at 6:38 PM, Rob Clark wrote: >> On Mon, Mar 26, 2018 at 6:07 PM, Roland Scheidegger >> wrote: >>> Am 26.03.2018 um 23:01 schrieb Rob Clark: correct me if I'm wrong, but I don't see how you could do the ## stuff to constru

[Mesa-dev] [PATCH] glapi: add glBlendBarrier(), glPrimitiveBoundingBox() prototypes

2018-03-26 Thread Brian Paul
in glapi_dispatch.c, as we have for many other GLES functions. Fixes a cross-compile issue (missing prototype) when GLES support is disabled. --- src/mapi/glapi/glapi_dispatch.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mapi/glapi/glapi_dispatch.c b/src/mapi/glapi/glapi_dispatch.c

Re: [Mesa-dev] [PATCH] glsl_types: fix build break with intel/msvc compiler

2018-03-26 Thread Timothy Arceri
Acked-by: Timothy Arceri On 27/03/18 09:49, Rob Clark wrote: The VECN() macro was taking advantage of a GCC specific feature that is not available on lesser compilers, mostly for the purposes of avoiding a macro that encoded a return statement. But as suggested by Ian, we could just have the m

[Mesa-dev] [PATCH] glsl_types: fix build break with intel/msvc compiler

2018-03-26 Thread Rob Clark
The VECN() macro was taking advantage of a GCC specific feature that is not available on lesser compilers, mostly for the purposes of avoiding a macro that encoded a return statement. But as suggested by Ian, we could just have the macro produce the entire method body and avoid the need for this.

Re: [Mesa-dev] [PATCH] glsl: remove GCC construct from VECN macro

2018-03-26 Thread Rob Clark
On Mon, Mar 26, 2018 at 6:38 PM, Rob Clark wrote: > On Mon, Mar 26, 2018 at 6:07 PM, Roland Scheidegger > wrote: >> Am 26.03.2018 um 23:01 schrieb Rob Clark: >>> correct me if I'm wrong, but I don't see how you could do the ## stuff >>> to construct the built-in type name with templates. So I t

Re: [Mesa-dev] Question about min_index/max_index calculation

2018-03-26 Thread Erico Nunes
Thanks all for the input. I don't have an in-depth knowledge of the hardware either, though as far as we can see the hardware does expect that we pass min_index in the command stream. max_index is used to calculate the sizes in other command stream fields (which is not the same as pipe_draw_info.c

Re: [Mesa-dev] [PATCH] glsl: remove GCC construct from VECN macro

2018-03-26 Thread Rob Clark
On Mon, Mar 26, 2018 at 6:07 PM, Roland Scheidegger wrote: > Am 26.03.2018 um 23:01 schrieb Rob Clark: >> correct me if I'm wrong, but I don't see how you could do the ## stuff >> to construct the built-in type name with templates. So I think the >> options are tons of copy/pasta code (ie. what w

Re: [Mesa-dev] [PATCH] glsl: remove GCC construct from VECN macro

2018-03-26 Thread Ian Romanick
On 03/26/2018 02:01 PM, Rob Clark wrote: > correct me if I'm wrong, but I don't see how you could do the ## stuff > to construct the built-in type name with templates. So I think the > options are tons of copy/pasta code (ie. what we had before) or > macros. That is true... I don't know why my ey

Re: [Mesa-dev] [PATCH] glsl: remove GCC construct from VECN macro

2018-03-26 Thread Roland Scheidegger
Am 26.03.2018 um 23:01 schrieb Rob Clark: > correct me if I'm wrong, but I don't see how you could do the ## stuff > to construct the built-in type name with templates. So I think the > options are tons of copy/pasta code (ie. what we had before) or > macros. > > I agree that could just construct

Re: [Mesa-dev] [PATCH] glsl: remove GCC construct from VECN macro

2018-03-26 Thread Rob Clark
correct me if I'm wrong, but I don't see how you could do the ## stuff to construct the built-in type name with templates. So I think the options are tons of copy/pasta code (ie. what we had before) or macros. I agree that could just construct the whole method with the macro.. I like that better

Re: [Mesa-dev] glsl: soft fp64 precursor patches

2018-03-26 Thread Dave Airlie
I split all the stuff that might interfere into this nice set of patches? They've gone through intel-ci fine. Anyone? if not I suppose I can review Elie's stuff and he can review mine :-) Dave. On 12 March 2018 at 15:14, Dave Airlie wrote: > I've been fixing up Elie's work and although the pro

Re: [Mesa-dev] [PATCH] glsl: remove GCC construct from VECN macro

2018-03-26 Thread Ian Romanick
On 03/26/2018 01:33 PM, Ian Romanick wrote: > As much as I'm not a fan of C++ templates, I don't see how this > preprocessor macro reinvention of that mechanism is an improvement. At least if we're going to do this, can we put the whole body of the function in the macro, as is done elsewhere? > O

Re: [Mesa-dev] [PATCH] glsl: remove GCC construct from VECN macro

2018-03-26 Thread Ian Romanick
As much as I'm not a fan of C++ templates, I don't see how this preprocessor macro reinvention of that mechanism is an improvement. On 03/26/2018 09:45 AM, Emil Velikov wrote: > From: Emil Velikov > > Update the macro to have the explic return. Using the current GCC > specific macro breaks other

[Mesa-dev] [Bug 104665] r600: computer shaders break Bioshock on barts (bisected)

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=104665 mirh changed: What|Removed |Added CC||m...@protonmail.ch -- You are receiving this ma

[Mesa-dev] [PATCH shaderdb] run: handling binding of attribute variable name (v2)

2018-03-26 Thread Dongwon Kim
Optional binding of variables can be processed before linking shader objects for creating shader program. It is activated by adding lines with a keyword "BindAttribLoc" followed by name and index as, "BindAttribLoc name_str1 " For example, [require] .. BindAttrbLoc vertex 1 BindAttrbLoc coor

Re: [Mesa-dev] [PATCH] glsl: remove GCC construct from VECN macro

2018-03-26 Thread Matt Turner
On Mon, Mar 26, 2018 at 9:45 AM, Emil Velikov wrote: > From: Emil Velikov > > Update the macro to have the explic return. Using the current GCC > specific macro breaks other compilers such as the Intel one or MSVC. > > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105740 > Fixes: f407edf

[Mesa-dev] [Bug 105371] r600_shader_from_tgsi - GPR limit exceeded - shader requires 360 registers

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105371 mirh changed: What|Removed |Added CC||m...@protonmail.ch -- You are receiving this ma

[Mesa-dev] [PATCH 2/2] autotools: Include intel/dev/meson.build in tarball

2018-03-26 Thread Dylan Baker
FixeS: 272bef0601a1bdb5292771aefc8d62fcbdf4c47f ("intel: Split gen_device_info out into libintel_dev") Signed-off-by: Dylan Baker --- src/intel/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/Makefile.am b/src/intel/Makefile.am index bfb7f5b9f08..2f96a68d992 10064

[Mesa-dev] [PATCH 1/2] autotools: include meson_get_version

2018-03-26 Thread Dylan Baker
Otherwise meson won't read the VERSION file and won't set a version. That means that pkg-config files will have version unset as well. Signed-off-by: Dylan Baker fixes: 3e9533d9b88d75d99632fa40e38cfed842d10842 ("meson: Add script to use VERSION file for getting version") --- Makefile.am |

Re: [Mesa-dev] [PATCH 02/11] i965: initialize SPIR-V capabilities

2018-03-26 Thread Jason Ekstrand
On March 26, 2018 07:53:44 Alejandro Piñeiro wrote: Ping. This is the only pending patch to review from this series. Although it is independent enough and I could submit to master the rest of the series, I would prefer to push all the series, and move to shape a second batch without pending

[Mesa-dev] [PATCH] glsl: remove GCC construct from VECN macro

2018-03-26 Thread Emil Velikov
From: Emil Velikov Update the macro to have the explic return. Using the current GCC specific macro breaks other compilers such as the Intel one or MSVC. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105740 Fixes: f407edf3407396379e16b0be74b8d3b85d2ad7f0 Cc: Rob Clark Cc: Timothy Arcer

Re: [Mesa-dev] [PATCH] gallium: Correct minor typo in header comments

2018-03-26 Thread Dylan Baker
Quoting Alyssa Rosenzweig (2018-03-26 08:56:53) > Signed-off-by: Alyssa Rosenzweig > --- > src/gallium/include/state_tracker/graw.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/src/gallium/include/state_tracker/graw.h > b/src/gallium/include/state_tracker/graw.h > in

Re: [Mesa-dev] [PATCH] glsl: fix infinite loop caused by bug in loop unrolling pass

2018-03-26 Thread Ian Romanick
On 03/25/2018 04:31 PM, Timothy Arceri wrote: > Just checking for 2 jumps is not enough to be sure we can do a > complex loop unroll. We need to make sure we also have also found > 2 loop terminators. > > Without this we were attempting to unroll a loop where the second > jump was nesed inside mul

[Mesa-dev] [PATCH] gallium: Correct minor typo in header comments

2018-03-26 Thread Alyssa Rosenzweig
Signed-off-by: Alyssa Rosenzweig --- src/gallium/include/state_tracker/graw.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/include/state_tracker/graw.h b/src/gallium/include/state_tracker/graw.h index 217fa31ba1..78ddf0a87f 100644 --- a/src/gallium/include/stat

Re: [Mesa-dev] [PATCH v1 0/7] Implement commont gralloc_handle_t in libdrm

2018-03-26 Thread Chih-Wei Huang
2018-03-22 16:23 GMT+08:00 Tomasz Figa : > Hi Chih-Wei, > > On Thu, Feb 22, 2018 at 2:53 PM, Chih-Wei Huang wrote: >> 2018-02-21 3:03 GMT+08:00 Rob Herring : >>> >>> Perhaps worth revisiting. Given we've failed to progress at all since >>> then may change opinions some. We already have to handle m

Re: [Mesa-dev] [PATCH mesa] meson/configure: detect endian.h instead of trying to guess when it's available

2018-03-26 Thread Khem Raj
On Wed, Mar 21, 2018 at 10:09 AM, Eric Engestrom wrote: > Cc: Maxin B. John > Cc: Khem Raj > Suggested-by: Jon Turney > Signed-off-by: Eric Engestrom > --- > configure.ac| 1 + > meson.build | 2 +- > src/util/u_endian.h | 2 +- > 3 files changed, 3 insertions(+), 2 deletions(

Re: [Mesa-dev] [PATCH v5 18/21] clover: Handle CL_PROGRAM_IL in clGetProgramInfo

2018-03-26 Thread Karol Herbst
Reviewed-by: Karol Herbst On Sun, Mar 25, 2018 at 8:02 PM, Pierre Moreau wrote: > Signed-off-by: Pierre Moreau > --- > src/gallium/state_trackers/clover/api/program.cpp | 7 +++ > 1 file changed, 7 insertions(+) > > diff --git a/src/gallium/state_trackers/clover/api/program.cpp > b/src/ga

Re: [Mesa-dev] [Mesa-stable] [PATCH 1/5] i965: Hard code scratch_ids_per_subslice for Cherryview

2018-03-26 Thread Juan A. Suarez Romero
On Wed, 2018-03-07 at 00:16 -0800, Jordan Justen wrote: > Ken suggested that we might be underallocating scratch space on HD > 400. Allocating scratch space as though there was actually 8 EUs > seems to help with a GPU hang seen on synmark CSDof. > FYI, in order to pick this commit for next 17.3

[Mesa-dev] [Bug 105737] st_tests_common.cpp:140:42: error: no matching function for call to 'tgsi_get_opcode_info'

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105737 Brian Paul changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [Mesa-dev] [PATCH] mesa/st/tests: Use tgsi opcode enum also in the test classes

2018-03-26 Thread Gert Wollny
Am Montag, den 26.03.2018, 08:46 -0600 schrieb Brian Paul: > Reviewed-by: Brian Paul I forgot to mention: I can't push, could you take care of this? Thanks, Gert > > Sorry for the breakage. > > -Brian > > On 03/26/2018 02:17 AM, Gert Wollny wrote: > > Fixes: ec478cf9c31c3775a21cd7b5b4b5cd

Re: [Mesa-dev] [PATCH 02/11] i965: initialize SPIR-V capabilities

2018-03-26 Thread Alejandro Piñeiro
Ping. This is the only pending patch to review from this series. Although it is independent enough and I could submit to master the rest of the series, I would prefer to push all the series, and move to shape a second batch without pending patches around. Thanks in advance. On 08/03/18 09:1

Re: [Mesa-dev] [PATCH] mesa/st/tests: Use tgsi opcode enum also in the test classes

2018-03-26 Thread Brian Paul
Reviewed-by: Brian Paul Sorry for the breakage. -Brian On 03/26/2018 02:17 AM, Gert Wollny wrote: Fixes: ec478cf9c31c3775a21cd7b5b4b5cdd9263bde9e st/mesa,tgsi: use enum tgsi_opcode Bugzilla: https://urldefense.proofpoint.com/v2/url?u=https-3A__bugs.freedesktop.org_show-5Fbug.cgi-3Fi

Re: [Mesa-dev] [PATCH] i965: Extend the negative 32-bit deltas to 64-bits

2018-03-26 Thread Sergii Romantsov
Hello, Emil. Thanks for involving. > Fixes: cee9f3890351 ("i965: Allow 48-bit addressing on Gen8+.") Actually that patch doesn't fix exactly cee9f3890351. Also I wrote earlier (probably, my e-mails may go into spam :)): "That issue is present even on mesa 13-0.0 and also solved with similar type-c

[Mesa-dev] [Bug 105740] glsl_types.cpp(524): error: a dynamically-initialized local static variable is not allowed inside of a statement expression

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105740 Roland Scheidegger changed: What|Removed |Added Severity|normal |critical Priority|medium

[Mesa-dev] [PATCH mesa] gbm: remove never-implemented function

2018-03-26 Thread Eric Engestrom
I assume this was implemented in a previous version of that commit, but was removed in the version that actually landed. Fixes: 8430af5ebe1ee8119e14 "Add support for swrast to the DRM EGL platform" Cc: Giovanni Campagna Cc: Emil Velikov Signed-off-by: Eric Engestrom --- src/gbm/gbm-symbols-che

[Mesa-dev] [PATCH v3] mesa: readpixels add support for GL_HALF_FLOAT

2018-03-26 Thread Lin Johnson
Ext_color_buffer_half_float is using type GL_HALF_FLOAT and data_type GL_FLOAT. This fix Android CTS test android.view.cts.PixelCopyTest v2: remove commtens of Ext_color_buffer_half_float. As Ext_color_buffer__float can use type GL_HALF_FLOAT Reviewed-by: Palli, Tapani Signed-off-by: Lin Johnso

Re: [Mesa-dev] [PATCH] i965: Extend the negative 32-bit deltas to 64-bits

2018-03-26 Thread Emil Velikov
On 26 March 2018 at 13:31, Chris Wilson wrote: > Quoting Sergii Romantsov (2018-03-26 13:16:24) >> Negative deltas are used to fake a range in a large buffer. >> See 900a5c91eeb3 >> "i965: Use negative relocation deltas to minimise vertex uploads" >> >> Gen8+ use 48-bit address relocations so need

[Mesa-dev] [PATCH v2] mesa: readpixels add support for GL_HALF_FLOAT

2018-03-26 Thread Lin Johnson
Ext_color_buffer_half_float is using type GL_HALF_FLOAT and data_type GL_FLOAT. This fix Android CTS test android.view.cts.PixelCopyTest v2: remove commtens of Ext_color_buffer_half_float. As Ext_color_buffer__float can use type GL_HALF_FLOAT Reviewed-by: Palli, Tapani Signed-off-by: Lin Johnso

Re: [Mesa-dev] [PATCH] i965: Extend the negative 32-bit deltas to 64-bits

2018-03-26 Thread Chris Wilson
Quoting Sergii Romantsov (2018-03-26 14:11:26) > Hello, Chris. Thank you for reviewing patch. > Do you mean changing just only emit_reloc() parameter type or all the > preceding > callers too? If you insist, but you don't have to. int32_t on the parameter is enough to document and correct the typ

Re: [Mesa-dev] Removing GRALLOC_MODULE_PERFORM_GET_DRM_FD

2018-03-26 Thread Emil Velikov
On 26 March 2018 at 14:08, Tomasz Figa wrote: > On Mon, Mar 26, 2018 at 9:45 PM, Robert Foss > wrote: >> Hey, >> >> On 03/23/2018 06:21 PM, Emil Velikov wrote: >>> >>> On 23 March 2018 at 16:20, Tomasz Figa wrote: On Sat, Mar 24, 2018 at 12:55 AM, Emil Velikov wrote: > >

Re: [Mesa-dev] [PATCH] i965: Extend the negative 32-bit deltas to 64-bits

2018-03-26 Thread Sergii Romantsov
Hello, Chris. Thank you for reviewing patch. Do you mean changing just only emit_reloc() parameter type or all the preceding callers too? Also, please, explain what you mean about patch cee9f3890351? That issue is present even on mesa 13-0.0 and also solved with similar type-conversion fix. Rega

Re: [Mesa-dev] Removing GRALLOC_MODULE_PERFORM_GET_DRM_FD

2018-03-26 Thread Tomasz Figa
On Mon, Mar 26, 2018 at 9:45 PM, Robert Foss wrote: > Hey, > > On 03/23/2018 06:21 PM, Emil Velikov wrote: >> >> On 23 March 2018 at 16:20, Tomasz Figa wrote: >>> >>> On Sat, Mar 24, 2018 at 12:55 AM, Emil Velikov >>> wrote: On 23 March 2018 at 13:15, Tomasz Figa wrote: > >>>

Re: [Mesa-dev] Removing GRALLOC_MODULE_PERFORM_GET_DRM_FD

2018-03-26 Thread Robert Foss
Hey, On 03/23/2018 06:21 PM, Emil Velikov wrote: On 23 March 2018 at 16:20, Tomasz Figa wrote: On Sat, Mar 24, 2018 at 12:55 AM, Emil Velikov wrote: On 23 March 2018 at 13:15, Tomasz Figa wrote: Perhaps we could try to use drmOpenWithType() [2]. We could have one property that would be p

Re: [Mesa-dev] [PATCH] i965: Extend the negative 32-bit deltas to 64-bits

2018-03-26 Thread Chris Wilson
Quoting Sergii Romantsov (2018-03-26 13:16:24) > Negative deltas are used to fake a range in a large buffer. > See 900a5c91eeb3 > "i965: Use negative relocation deltas to minimise vertex uploads" > > Gen8+ use 48-bit address relocations so need to extend the sign Note that 48-bit relocations were

Re: [Mesa-dev] [PATCH] i965: Extend the negative 32-bit deltas to 64-bits

2018-03-26 Thread Sergii Romantsov
Hello, Stuart. Could You, please, test this patch? On Mon, Mar 26, 2018 at 3:16 PM, Sergii Romantsov < sergii.romant...@gmail.com> wrote: > Negative deltas are used to fake a range in a large buffer. > See 900a5c91eeb3 > "i965: Use negative relocation deltas to minimise vertex uploads" > > Gen8+

[Mesa-dev] [PATCH] i965: Extend the negative 32-bit deltas to 64-bits

2018-03-26 Thread Sergii Romantsov
Negative deltas are used to fake a range in a large buffer. See 900a5c91eeb3 "i965: Use negative relocation deltas to minimise vertex uploads" Gen8+ use 48-bit address relocations so need to extend the sign to 64-bit return value. Without it we have higher bits zeroed and missing the negavive valu

[Mesa-dev] [Bug 105442] Hang when running nine ff lighting shader with radeonsi

2018-03-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105442 --- Comment #2 from i...@yahoo.com --- Can you do a bisect between Mesa-17.2 and Mesa-17.3, using the same LLVM-5.0.1 ? -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.___

Re: [Mesa-dev] [PATCH] glsl: fix infinite loop caused by bug in loop unrolling pass

2018-03-26 Thread Gert Wollny
This fixes the bug for me, thanks, Tested-by: Gert Wollny Am Montag, den 26.03.2018, 10:31 +1100 schrieb Timothy Arceri: > Just checking for 2 jumps is not enough to be sure we can do a > complex loop unroll. We need to make sure we also have also found > 2 loop terminators. > > Without this we

[Mesa-dev] [PATCH v2 02/13] mesa/st: glsl_to_tgsi: Split arrays who's elements are only accessed directly

2018-03-26 Thread Gert Wollny
Array who's elements are only accessed directly are replaced by the according number of temporary registers. By doing so the otherwise reserved register range becomes subject to further optimizations like copy propagation and register merging. Thanks to the resulting reduced register pressure this

  1   2   >