[Mesa-dev] [Bug 99638] Mesa opengles Peppa Pig and openggles2 smurfs on Radeon PowerPC and PPC64

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99638 --- Comment #6 from intermedi...@hotmail.com --- Just tested on Ubuntu Mate 16.10 in software resterized mode Mesa 17 rc2 ... color issue is present there too. -- You are receiving this mail because: You are the QA Contact for the bug.

Re: [Mesa-dev] [PATCH 2/2] i965: Get rid of mark_surface_used()

2017-02-07 Thread Iago Toral
On Tue, 2017-02-07 at 15:03 -0800, Jason Ekstrand wrote: > The mark_surface_used function exists for a micro-optimization that > shrinks the binding table if some of the entries are > unused.  However, > we already create binding tables based on num_textures, num_ubos, > etc., > so the only case wh

[Mesa-dev] [PATCH] android: radeonsi: fix sid_table.h generated header include path

2017-02-07 Thread Mauro Rossi
generated-sources-dir-for macro replaces intermediates-dir-for and LOCAL_MODULE_CLASS is defined as required by new macro, in order to avoid the following building error: external/mesa/src/gallium/drivers/radeonsi/si_debug.c:29:10: fatal error: 'sid_tables.h' file not found ^ 1 error gen

Re: [Mesa-dev] [PATCH 1/2] i965: Make assign_common_binding_table_offsets return void

2017-02-07 Thread Iago Toral
This patch is missing to actually change the implementation in brw_shader.cpp to not return a uint32_t result. With that fixed, this patch is: Reviewed-by: Iago Toral Quiroga On Tue, 2017-02-07 at 15:03 -0800, Jason Ekstrand wrote: > It doesn't really matter what order the binding table entries

Re: [Mesa-dev] [PATCH V2 1/2] mesa: use PRId64/PRIu64 when printing 64-bit ints

2017-02-07 Thread Iago Toral
Both patches are: Reviewed-by: Iago Toral Quiroga On Wed, 2017-02-08 at 12:35 +1100, Timothy Arceri wrote: > V2: actually use PRIu64 > --- >  src/mesa/main/uniform_query.cpp | 4 ++-- >  1 file changed, 2 insertions(+), 2 deletions(-) > > diff --git a/src/mesa/main/uniform_query.cpp > b/src/mesa

[Mesa-dev] [Bug 97967] glsl/tests/cache-test regression

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97967 Timothy Arceri changed: What|Removed |Added Attachment #129405|0 |1 is obsolete|

[Mesa-dev] [Bug 97967] glsl/tests/cache-test regression

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97967 Timothy Arceri changed: What|Removed |Added Attachment #129404|0 |1 is obsolete|

[Mesa-dev] [Bug 97967] glsl/tests/cache-test regression

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97967 --- Comment #16 from Timothy Arceri --- Created attachment 129404 --> https://bugs.freedesktop.org/attachment.cgi?id=129404&action=edit Possible fix Does this patch help? -- You are receiving this mail because: You are the QA Contact for the

[Mesa-dev] [PATCH] EGL/Android: Add EGL_EXT_buffer_age extension

2017-02-07 Thread Xiaosong Wei
This patch implements the EGL_EXT_buffer_age extension for Android. https://www.khronos.org/registry/EGL/extensions/EXT/EGL_EXT_buffer_age.txt --- src/egl/drivers/dri2/egl_dri2.h | 9 ++ src/egl/drivers/dri2/platform_android.c | 51 - 2 files changed, 5

[Mesa-dev] [Bug 99010] --disable-gallium-llvm no longer recognized

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99010 --- Comment #20 from Jonathan Gray --- (In reply to Emil Velikov from comment #19) > Gents do give this series a try > > https://patchwork.freedesktop.org/series/19269/ With the patch series I can build Mesa without setting LLVM_CONFIG=no in th

Re: [Mesa-dev] [PATCH 35/40] util/disk_cache: allow drivers to pass a directory structure

2017-02-07 Thread Aaron Watry
On Tue, Feb 7, 2017 at 3:43 PM, Timothy Arceri wrote: > On Wed, 8 Feb 2017 08:29:29 +1100 > Timothy Arceri wrote: > > > On Tue, 7 Feb 2017 11:40:12 -0600 > > Aaron Watry wrote: > > > > > On Mon, Feb 6, 2017 at 9:42 PM, Timothy Arceri > > > wrote: > > > > > > > In order to avoid costly fallback

Re: [Mesa-dev] [PATCH] configure: add blurb about what the LIBDRM_*_REQUIRED stuff means

2017-02-07 Thread Chad Versace
On Tue 07 Feb 2017, Ilia Mirkin wrote: > Signed-off-by: Ilia Mirkin > Reviewed-by: Emil Velikov > --- > configure.ac | 9 - > 1 file changed, 8 insertions(+), 1 deletion(-) Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.f

Re: [Mesa-dev] [PATCH] mesa/uniform: fix strict aliasing issues with int64 code.

2017-02-07 Thread Timothy Arceri
On Wed, 2017-02-08 at 11:21 +1000, Dave Airlie wrote: > From: Dave Airlie > > This fixes these like the double version does. > > Signed-off-by: Dave Airlie > --- >  src/mesa/main/uniform_query.cpp | 38 ++- > --- >  1 file changed, 26 insertions(+), 12 deletions(-

[Mesa-dev] [PATCH V2 1/2] mesa: use PRId64/PRIu64 when printing 64-bit ints

2017-02-07 Thread Timothy Arceri
V2: actually use PRIu64 --- src/mesa/main/uniform_query.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 418cfc9..9da53a7 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_quer

[Mesa-dev] [PATCH 2/2] mesa: fix some strict-aliasing issues with int64

2017-02-07 Thread Timothy Arceri
--- src/mesa/main/uniform_query.cpp | 14 ++ 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 9da53a7..98711df 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -56

[Mesa-dev] [PATCH] mesa/st: fix strict aliasing issue in int64 code.

2017-02-07 Thread Dave Airlie
From: Dave Airlie This fixes the int64 code same as the double code. Signed-off-by: Dave Airlie --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/mesa/state_tracker/st_glsl_to_tgsi.cpp b/src/mesa/state_tracker/st_glsl_

[Mesa-dev] [PATCH] mesa/uniform: fix strict aliasing issues with int64 code.

2017-02-07 Thread Dave Airlie
From: Dave Airlie This fixes these like the double version does. Signed-off-by: Dave Airlie --- src/mesa/main/uniform_query.cpp | 38 ++ 1 file changed, 26 insertions(+), 12 deletions(-) diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_q

Re: [Mesa-dev] [PATCH 15/17] configure.ac: remove dummy radeon_gallium_llvm_check()

2017-02-07 Thread Tobias Droste
Reviewed-by: Tobias Droste Am Dienstag, 7. Februar 2017, 22:44:57 CET schrieb Emil Velikov: > From: Emil Velikov > > The extra function brings no added benefit as of earlier commit which > made llvm_require_version (as called by radeon_llvm_check) require LLVM > (--enable-gallium-llvm). > > Fi

Re: [Mesa-dev] [PATCH 13/17] configure.ac: disable enable_gallium_llvm in the !x86 case

2017-02-07 Thread Tobias Droste
Reviewed-by: Tobias Droste Am Dienstag, 7. Februar 2017, 22:44:55 CET schrieb Emil Velikov: > From: Emil Velikov > > Already implicitly handled throughout, but keep it clear and disable > gallium-llvm. This change should be a no-op. > > Cc: Tobias Droste > Signed-off-by: Emil Velikov > --- >

Re: [Mesa-dev] [PATCH 07/17] configure.ac: Rework MESA_LLVM and LLVM detection

2017-02-07 Thread Tobias Droste
Reviewed-by: Tobias Droste Am Dienstag, 7. Februar 2017, 22:44:49 CET schrieb Emil Velikov: > From: Tobias Droste > > Set FOUND_LLVM only when LLVM is present (checking for exact version/etc > is deferred) and use enable-gallium-llvm to indicate the global LLVM > status. > > Renaming the latte

Re: [Mesa-dev] [PATCH 06/17] configure.ac: Remove artificial --enable-gallium-llvm dependency

2017-02-07 Thread Tobias Droste
Does this cause problems if someone builds just intel classic drivers without LLVM installed? I think without --disable-llvm you would get an error that LLVM is required for gallium even though nothing actually requires it in that configuration. Or am I missing something? I think you have to c

Re: [Mesa-dev] [PATCH 05/17] configure.ac: Mandate --enable-gallium-llvm when checking LLVM version

2017-02-07 Thread Tobias Droste
Small comment below. Either way: Reviewed-by: Tobias Droste Am Dienstag, 7. Februar 2017, 22:44:47 CET schrieb Emil Velikov: > From: Emil Velikov > > With this change we effectively require --enable-gallium-llvm when > building RADV. This should be perfectly safe since the gallium radeonsi > d

[Mesa-dev] [Bug 98263] [radv] The Talos Principle fails to launch with "Fatal error: Cannot set display mode."

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98263 Michel Dänzer changed: What|Removed |Added Status|REOPENED|RESOLVED Resolution|---

[Mesa-dev] [Bug 77449] Tracker bug for all bugs related to Steam titles

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=77449 Bug 77449 depends on bug 98263, which changed state. Bug 98263 Summary: [radv] The Talos Principle fails to launch with "Fatal error: Cannot set display mode." https://bugs.freedesktop.org/show_bug.cgi?id=98263 What|Removed

[Mesa-dev] [PATCH] mesa: use PRId64/PRIu64 when printing 64-bit ints

2017-02-07 Thread Timothy Arceri
--- src/mesa/main/uniform_query.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/main/uniform_query.cpp b/src/mesa/main/uniform_query.cpp index 418cfc9..575f1cb 100644 --- a/src/mesa/main/uniform_query.cpp +++ b/src/mesa/main/uniform_query.cpp @@ -563,10 +563,10

Re: [Mesa-dev] [PATCH 04/17] configure.ac: Rename the gallium_require_llvm helper

2017-02-07 Thread Tobias Droste
Reviewed-by: Tobias Droste Am Dienstag, 7. Februar 2017, 22:44:46 CET schrieb Emil Velikov: > From: Emil Velikov > > Drop the gallium prefix since we're about it use it throughout the > configure. > > Note we do want to check for enable_gallium_llvm check since (as > explicitly requested) the

Re: [Mesa-dev] [PATCH 1/5] anv: Disable stencil writes when both write masks are zero

2017-02-07 Thread Jason Ekstrand
On Tue, Feb 7, 2017 at 3:14 PM, Jason Ekstrand wrote: > Here's the new commit message: > > Vulkan doesn't have a stencilWriteEnable bit like it does for depth. > Instead, you have a stencil mask. Since the stencil mask is handled as > dynamic state, we have to handle it later during

Re: [Mesa-dev] [PATCH 02/17] configure.ac: move AC_ARG_ENABLE([gallium-llvm] hunk further up

2017-02-07 Thread Tobias Droste
Reviewed-by: Tobias Droste Am Dienstag, 7. Februar 2017, 22:44:44 CET schrieb Emil Velikov: > From: Emil Velikov > > With next commits we'll require --enable-gallium-llvm (en route to a > greater good later on) for RADV. The latter is required to ensure that > as otherwise we'll fail to build.

Re: [Mesa-dev] [PATCH 01/17] configure.ac: remove unused AC_SUBST([MESA_LLVM])

2017-02-07 Thread Tobias Droste
Reviewed-by: Tobias Droste Am Dienstag, 7. Februar 2017, 22:44:43 CET schrieb Emil Velikov: > From: Emil Velikov > > Signed-off-by: Emil Velikov > --- > configure.ac | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/configure.ac b/configure.ac > index a6ceee95a3..d9170770eb 100644 > --

Re: [Mesa-dev] Time to merge threaded GL dispatch? (aka glthread)

2017-02-07 Thread Marek Olšák
On Feb 7, 2017 11:55 PM, "Matt Turner" wrote: On Tue, Feb 7, 2017 at 10:56 AM, Marek Olšák wrote: > On Tue, Feb 7, 2017 at 2:57 AM, Kenneth Graunke wrote: >> On Monday, February 6, 2017 8:54:40 PM PST Marek Olšák wrote: >>> On Mon, Feb 6, 2017 at 8:20 PM, Ernst Sjöstrand wrote: >>> > FYI glmar

[Mesa-dev] www.mesa3d.org moving to freedesktop.org

2017-02-07 Thread Brian Paul
Just FYI: I'm working with the fd.o admins to move the mesa3d.org website from SourceForge to freedesktop.org. You may see "Unable to verify server identity" warnings in your browser for a bit... Eventually, the pages on www.mesa3d.org should get automatically updated from git check-ins to the do

Re: [Mesa-dev] [PATCH] intel/blorp: do not return const data by get_px_size_sa()

2017-02-07 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Tue, Feb 7, 2017 at 3:24 PM, Emil Velikov wrote: > From: Emil Velikov > > Not much point in the const qualifier since we provide a copy to the > user. Resolves the following -Wignored-qualifiers warning. > > src/intel/blorp/blorp_blit.c:1857:8: warning: 'const' t

Re: [Mesa-dev] GLSL IR & TGSI on-disk shader cache

2017-02-07 Thread Timothy Arceri
On Tue, 2017-02-07 at 23:58 +0100, Matt Turner wrote: > On Tue, Feb 7, 2017 at 4:42 AM, Timothy Arceri > wrote: > > This series adds support for a GLSL IR level and TGSI (OpenGL/st) > > level caches. > > > > There are a few small bug fixes and a little bit of restructuring > > to the GLSL IR patc

[Mesa-dev] [PATCH] intel/blorp: do not return const data by get_px_size_sa()

2017-02-07 Thread Emil Velikov
From: Emil Velikov Not much point in the const qualifier since we provide a copy to the user. Resolves the following -Wignored-qualifiers warning. src/intel/blorp/blorp_blit.c:1857:8: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] v2: keep const qualifier of

Re: [Mesa-dev] [PATCH] radv: handle dcc in explicit image resolve path. (v2)

2017-02-07 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Feb 8, 2017, at 00:20, Dave Airlie wrote: > From: Dave Airlie > > We need to initialize dcc like we do in the subpass path. > > v2: fix initial/final layouts > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/radv_meta_resolve.c | 11 --- > 1 f

[Mesa-dev] [PATCH] radv: handle dcc in explicit image resolve path. (v2)

2017-02-07 Thread Dave Airlie
From: Dave Airlie We need to initialize dcc like we do in the subpass path. v2: fix initial/final layouts Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_meta_resolve.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/amd/vulkan/radv_meta_resolve.c b/src/

Re: [Mesa-dev] [PATCH] intel/blorp: do not return const data by get_px_size_sa()

2017-02-07 Thread Jason Ekstrand
On Tue, Feb 7, 2017 at 3:19 PM, Jason Ekstrand wrote: > On Tue, Feb 7, 2017 at 1:26 PM, Emil Velikov > wrote: > >> From: Emil Velikov >> >> Not much point in the const qualifier since we provide a copy to the >> user. Resolves the following -Wignored-qualifiers warning. >> >> src/intel/blorp/bl

[Mesa-dev] [PATCH] configure: add blurb about what the LIBDRM_*_REQUIRED stuff means

2017-02-07 Thread Ilia Mirkin
Signed-off-by: Ilia Mirkin Reviewed-by: Emil Velikov --- configure.ac | 9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 7cb2c40..7bf3680 100644 --- a/configure.ac +++ b/configure.ac @@ -66,7 +66,12 @@ AC_SUBST([OSMESA_VERSION]) OPENCL_

Re: [Mesa-dev] [PATCH] intel/blorp: do not return const data by get_px_size_sa()

2017-02-07 Thread Jason Ekstrand
On Tue, Feb 7, 2017 at 1:26 PM, Emil Velikov wrote: > From: Emil Velikov > > Not much point in the const qualifier since we provide a copy to the > user. Resolves the following -Wignored-qualifiers warning. > > src/intel/blorp/blorp_blit.c:1857:8: warning: 'const' type qualifier on > return type

Re: [Mesa-dev] [PATCH 1/5] anv: Disable stencil writes when both write masks are zero

2017-02-07 Thread Jason Ekstrand
Here's the new commit message: Vulkan doesn't have a stencilWriteEnable bit like it does for depth. Instead, you have a stencil mask. Since the stencil mask is handled as dynamic state, we have to handle it later during command buffer construction. This helps Dota2 by a couple pe

[Mesa-dev] [PATCH 2/2] i965: Get rid of mark_surface_used()

2017-02-07 Thread Jason Ekstrand
The mark_surface_used function exists for a micro-optimization that shrinks the binding table if some of the entries are unused. However, we already create binding tables based on num_textures, num_ubos, etc., so the only case where this is actually able to eliminate something is if the back-end o

[Mesa-dev] [PATCH 1/2] i965: Make assign_common_binding_table_offsets return void

2017-02-07 Thread Jason Ekstrand
It doesn't really matter what order the binding table entries are in so there's no real utility to returning the final offset from assign_common_binding_table_offsets. The only functional change in this patch is that framebuffer fetch surfaces are now right after render targets rather than at the

[Mesa-dev] [Bug 98471] [TRACKER] Mesa 13.0 release tracker

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98471 Matt Turner changed: What|Removed |Added Depends on|97967 | Referenced Bugs: https://bugs.freedeskt

[Mesa-dev] [Bug 99517] [TRACKER] Mesa 17.0 release tracker

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99517 Matt Turner changed: What|Removed |Added Depends on||97967 Referenced Bugs: https://bugs.free

[Mesa-dev] [Bug 97967] glsl/tests/cache-test regression

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97967 Matt Turner changed: What|Removed |Added Blocks|98471 |99517 Referenced Bugs: https://bugs.free

Re: [Mesa-dev] GLSL IR & TGSI on-disk shader cache

2017-02-07 Thread Matt Turner
On Tue, Feb 7, 2017 at 4:42 AM, Timothy Arceri wrote: > This series adds support for a GLSL IR level and TGSI (OpenGL/st) > level caches. > > There are a few small bug fixes and a little bit of restructuring > to the GLSL IR patches to make things work for Gallium drivers vs > just i965 previously

Re: [Mesa-dev] Time to merge threaded GL dispatch? (aka glthread)

2017-02-07 Thread Matt Turner
On Tue, Feb 7, 2017 at 10:56 AM, Marek Olšák wrote: > On Tue, Feb 7, 2017 at 2:57 AM, Kenneth Graunke wrote: >> On Monday, February 6, 2017 8:54:40 PM PST Marek Olšák wrote: >>> On Mon, Feb 6, 2017 at 8:20 PM, Ernst Sjöstrand wrote: >>> > FYI glmark2 segfaults with mesa_glthread=true. Expected t

[Mesa-dev] [Bug 99010] --disable-gallium-llvm no longer recognized

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99010 --- Comment #19 from Emil Velikov --- Gents do give this series a try https://patchwork.freedesktop.org/series/19269/ -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the bug.

[Mesa-dev] [PATCH 14/17] configure.ac: correctly manage llvm auto-detection

2017-02-07 Thread Emil Velikov
From: Emil Velikov Earlier refactoring commits changed from one, dare I say it, broken behaviour to another. Namely: Before, as you explicitly --enable-gallium-llvm your selection was ignored when llvm-config was not present/detected. Today, the "auto" heuristics enables gallium llvm regardless

[Mesa-dev] [PATCH 10/17] configure.ac: don't use == with test

2017-02-07 Thread Emil Velikov
From: Emil Velikov Although it works, it's not the correct thing to do. v2: Rebase Signed-off-by: Emil Velikov Reviewed-by: Tobias Droste (v1) --- configure.ac | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 1b28eb3b3b..23e8a34da1 100

[Mesa-dev] [PATCH 08/17] configure.ac: Only define HAVE_LLVM if LLVM is used

2017-02-07 Thread Emil Velikov
From: Tobias Droste Make sure that HAVE_LLVM compiler define is only set if LLVM is actually used. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=99010 Cc: "17.0" Signed-off-by: Tobias Droste v2 [Emil] fold within the existing conditional Reviewed-by: Emil Velikov --- configure.ac |

[Mesa-dev] [PATCH 09/17] configure.ac: remove unused LLVM variables

2017-02-07 Thread Emil Velikov
From: Emil Velikov LLVM_BINDIR is completely unused while others such as LLVM_LIBDIR are used only internally. In the latter case there's no need to AC_SUBST it. Signed-off-by: Emil Velikov Reviewed-by: Tobias Droste --- configure.ac | 5 - 1 file changed, 5 deletions(-) diff --git a/con

[Mesa-dev] [PATCH 17/17] st/nine: update configure options in the README

2017-02-07 Thread Emil Velikov
From: Emil Velikov Cc: Axel Davy Signed-off-by: Emil Velikov --- Axel, others - can someone skimg through the file and double-check that those are still valid ? --- src/gallium/state_trackers/nine/README | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/state_tr

[Mesa-dev] [PATCH 13/17] configure.ac: disable enable_gallium_llvm in the !x86 case

2017-02-07 Thread Emil Velikov
From: Emil Velikov Already implicitly handled throughout, but keep it clear and disable gallium-llvm. This change should be a no-op. Cc: Tobias Droste Signed-off-by: Emil Velikov --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index 469a09e286.

[Mesa-dev] [PATCH 16/17] configure.ac: supersede --enable-gallium-llvm over --enable-llvm

2017-02-07 Thread Emil Velikov
From: Emil Velikov Currently we have extra (somewhat questionable) modularity, such that one could build some parts with LLVM while others w/o. That is extremely fragile, error prone and requires quite noticable amount of code throughout. Thus lets deprecate the gallium toggle in faviour of the

[Mesa-dev] [PATCH 11/17] Revert "configure.ac: Create correct LLVM_VERSION_INT with minor >= 10"

2017-02-07 Thread Emil Velikov
As stated in [1] by the LLVM devs, the new versioning scheme will not deploy any minor version (i.e. it will always be zero). As such the patch should not be needed. This reverts commit 0e9a5be7e74fa2a9bd2a634ef60822bd6600ca1d. [1] http://blog.llvm.org/2016/12/llvms-new-versioning-scheme.html Rev

[Mesa-dev] [PATCH 12/17] configure.ac: set LLVM_{C, CXX, LD}FLAGS only as needed

2017-02-07 Thread Emil Velikov
From: Emil Velikov Earlier refactoring commits started setting the above regardless if LLVM is used or not. Move them to the respective section to restore the original functionality. Since we require the preprocessor flags (includes in particular) for the header version parsing keep those as-is.

[Mesa-dev] [PATCH 15/17] configure.ac: remove dummy radeon_gallium_llvm_check()

2017-02-07 Thread Emil Velikov
From: Emil Velikov The extra function brings no added benefit as of earlier commit which made llvm_require_version (as called by radeon_llvm_check) require LLVM (--enable-gallium-llvm). Fixes: 5f966a96af7 "configure.ac: Mandate --enable-gallium-llvm when checking LLVM version" Cc: Tobias Droste

[Mesa-dev] [PATCH 07/17] configure.ac: Rework MESA_LLVM and LLVM detection

2017-02-07 Thread Emil Velikov
From: Tobias Droste Set FOUND_LLVM only when LLVM is present (checking for exact version/etc is deferred) and use enable-gallium-llvm to indicate the global LLVM status. Renaming the latter is not appropriate for stable patches, so we'll address it with a later commit. Loosely based on work by

[Mesa-dev] [PATCH 05/17] configure.ac: Mandate --enable-gallium-llvm when checking LLVM version

2017-02-07 Thread Emil Velikov
From: Emil Velikov With this change we effectively require --enable-gallium-llvm when building RADV. This should be perfectly safe since the gallium radeonsi driver already explicitly requires it. The "gallium" part in --enable-gallium-llvm is about to be removed soon (not in stable) but until t

[Mesa-dev] [PATCH 04/17] configure.ac: Rename the gallium_require_llvm helper

2017-02-07 Thread Emil Velikov
From: Emil Velikov Drop the gallium prefix since we're about it use it throughout the configure. Note we do want to check for enable_gallium_llvm check since (as explicitly requested) the toggle should mean --enable-llvm. We cannot do the latter for stable so it will come with later patch. Cc:

[Mesa-dev] [PATCH 06/17] configure.ac: Remove artificial --enable-gallium-llvm dependency

2017-02-07 Thread Emil Velikov
From: Emil Velikov ... of non-empty --with-gallium-drivers. Since we effectively made --enable-gallium-llvm mean --enable-llvm with earlier commits, we need to remove the, now artificial, requirement. Otherwise we'll error (as below) when building RADV. configure: error: --enable-gallium-llvm

[Mesa-dev] [PATCH 01/17] configure.ac: remove unused AC_SUBST([MESA_LLVM])

2017-02-07 Thread Emil Velikov
From: Emil Velikov Signed-off-by: Emil Velikov --- configure.ac | 1 - 1 file changed, 1 deletion(-) diff --git a/configure.ac b/configure.ac index a6ceee95a3..d9170770eb 100644 --- a/configure.ac +++ b/configure.ac @@ -1021,7 +1021,6 @@ radeon_llvm_check() { llvm_set_environment_variables

[Mesa-dev] [PATCH 00/17] LLVM fixes, round 999

2017-02-07 Thread Emil Velikov
Hi all, Here is hopefully the final round of LLVM build fixes which should address both Jose and Dave's concerns to not touch any source code. In return the configure.ac changes ended up be twice as large, but overall fine. Considering that most of those must land in stable. In gist -> enable-

[Mesa-dev] [PATCH 02/17] configure.ac: move AC_ARG_ENABLE([gallium-llvm] hunk further up

2017-02-07 Thread Emil Velikov
From: Emil Velikov With next commits we'll require --enable-gallium-llvm (en route to a greater good later on) for RADV. The latter is required to ensure that as otherwise we'll fail to build. Cc: Dave Airlie CC: Tobias Droste Cc: "17.0" Signed-off-by: Emil Velikov --- configure.ac | 36 +++

[Mesa-dev] [PATCH 03/17] configure.ac: Don't check LLVM version in require_llvm

2017-02-07 Thread Emil Velikov
From: Tobias Droste This is actually not needed because the version is checked later. Around line 2380 if test "x$enable_gallium_llvm" == "xyes"; then llvm_check_version_for $LLVM_REQUIRED_GALLIUM "gallium" llvm_add_default_components "gallium" fi Cc: "17.0" Cc: Tobias Droste Signed-o

[Mesa-dev] [PATCH] wayland-drm: update use of struct wl_resource to avoid deprecated struct definition

2017-02-07 Thread Micah Fedke
Signed-off-by: Micah Fedke --- src/egl/wayland/wayland-drm/wayland-drm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/egl/wayland/wayland-drm/wayland-drm.c b/src/egl/wayland/wayland-drm/wayland-drm.c index 4fc12521d2..5c2bb0369e 100644 --- a/src/egl/wayland/wayla

Re: [Mesa-dev] [PATCH 1/5] anv: Disable stencil writes when both write masks are zero

2017-02-07 Thread Nanley Chery
On Tue, Feb 07, 2017 at 12:25:18PM -0800, Jason Ekstrand wrote: > On Tue, Feb 7, 2017 at 12:13 PM, Nanley Chery wrote: > > > On Wed, Feb 01, 2017 at 08:07:22PM -0800, Jason Ekstrand wrote: > > > The only mechanism Vulkan provides for disabling stencil writes is to set > > > > This isn't the only

Re: [Mesa-dev] Time to merge threaded GL dispatch? (aka glthread)

2017-02-07 Thread Timothy Arceri
On Tue, 2017-02-07 at 10:56 +0100, Marek Olšák wrote: > On Tue, Feb 7, 2017 at 2:57 AM, Kenneth Graunke g> wrote: > > On Monday, February 6, 2017 8:54:40 PM PST Marek Olšák wrote: > > > On Mon, Feb 6, 2017 at 8:20 PM, Ernst Sjöstrand > > > wrote: > > > > FYI glmark2 segfaults with mesa_glthread=t

Re: [Mesa-dev] [PATCH] radv: handle dcc in explicit image resolve path.

2017-02-07 Thread Bas Nieuwenhuizen
On Tue, Feb 7, 2017, at 23:05, Dave Airlie wrote: > From: Dave Airlie > > We need to initialize dcc like we do in the subpass path. > > Signed-off-by: Dave Airlie > --- > src/amd/vulkan/radv_meta_resolve.c | 5 - > 1 file changed, 4 insertions(+), 1 deletion(-) > > diff --git a/src/amd/

[Mesa-dev] [PATCH] radv: handle dcc in explicit image resolve path.

2017-02-07 Thread Dave Airlie
From: Dave Airlie We need to initialize dcc like we do in the subpass path. Signed-off-by: Dave Airlie --- src/amd/vulkan/radv_meta_resolve.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/amd/vulkan/radv_meta_resolve.c b/src/amd/vulkan/radv_meta_resolve.c index 6

Re: [Mesa-dev] [PATCH 1/5] gallium/u_inlines: fix member access within null pointer

2017-02-07 Thread Brian Paul
Yeah, it would never make sense to pass NULL as the first argument to any of the _reference() functions. Would putting an assert(ptr) at the start of pipe_surface_reference(), for example, silence the UBSAN warning? -Brian On 02/07/2017 02:45 PM, Roland Scheidegger wrote: I'm not quite sur

Re: [Mesa-dev] [PATCH 1/5] gallium/u_inlines: fix member access within null pointer

2017-02-07 Thread Roland Scheidegger
I'm not quite sure there's really a bug here? As far as I can tell, these functions are architected specifically to look like that - they do not actually dereference potential null pointers, but only take the address in the end. This change seems to add some overhead. Roland Am 07.02.2017 um 19

Re: [Mesa-dev] [PATCH 35/40] util/disk_cache: allow drivers to pass a directory structure

2017-02-07 Thread Timothy Arceri
On Wed, 8 Feb 2017 08:29:29 +1100 Timothy Arceri wrote: > On Tue, 7 Feb 2017 11:40:12 -0600 > Aaron Watry wrote: > > > On Mon, Feb 6, 2017 at 9:42 PM, Timothy Arceri > > wrote: > > > > > In order to avoid costly fallback recompiles when cache items are > > > created with an old version of Mes

[Mesa-dev] [Bug 98263] [radv] The Talos Principle fails to launch with "Fatal error: Cannot set display mode."

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=98263 --- Comment #8 from Rene Lindsay --- The "No DRI3 support" is only relevant when the desktop is running on Intel, but also gets displayed whenever NVidia is used, regardless of whether DRI3 was enabled or not. Maybe this message should be muted

[Mesa-dev] [PATCH] r600g/sb: Fix memory leak by reworking uses list

2017-02-07 Thread Heiko Przybyl
When fixing the stalls on evergreen I introduced leaking of the useinfo structure(s). Sorry. Instead of allocating a new object to hold 3 values where only one is actually used, rework the list to just store the node pointer. Thus no allocating and deallocation is needed. Since use_info and use_kin

Re: [Mesa-dev] GLSL IR & TGSI on-disk shader cache

2017-02-07 Thread Timothy Arceri
On Tue, 7 Feb 2017 16:54:31 +0100 Marek Olšák wrote: > On Tue, Feb 7, 2017 at 4:42 AM, Timothy Arceri > wrote: > > Without the radeonsi patch min fps still goes up around 4 fps in > > the Shadow of Mordor benchmark (although the stalls are still > > very noticeable). > > I don't fully underst

Re: [Mesa-dev] [PATCH 35/40] util/disk_cache: allow drivers to pass a directory structure

2017-02-07 Thread Timothy Arceri
On Tue, 7 Feb 2017 11:40:12 -0600 Aaron Watry wrote: > On Mon, Feb 6, 2017 at 9:42 PM, Timothy Arceri > wrote: > > > In order to avoid costly fallback recompiles when cache items are > > created with an old version of Mesa or for a different gpu on the > > same system we want to create director

[Mesa-dev] [PATCH] intel/blorp: do not return const data by get_px_size_sa()

2017-02-07 Thread Emil Velikov
From: Emil Velikov Not much point in the const qualifier since we provide a copy to the user. Resolves the following -Wignored-qualifiers warning. src/intel/blorp/blorp_blit.c:1857:8: warning: 'const' type qualifier on return type has no effect [-Wignored-qualifiers] Cc: Jason Ekstrand Signed-

Re: [Mesa-dev] [PATCH 1/5] anv: Disable stencil writes when both write masks are zero

2017-02-07 Thread Jason Ekstrand
On Tue, Feb 7, 2017 at 12:13 PM, Nanley Chery wrote: > On Wed, Feb 01, 2017 at 08:07:22PM -0800, Jason Ekstrand wrote: > > The only mechanism Vulkan provides for disabling stencil writes is to set > > This isn't the only mechanism for explicitly disabling stencil writes. > Stencil writes can also

Re: [Mesa-dev] [PATCH 1/5] anv: Disable stencil writes when both write masks are zero

2017-02-07 Thread Nanley Chery
On Wed, Feb 01, 2017 at 08:07:22PM -0800, Jason Ekstrand wrote: > The only mechanism Vulkan provides for disabling stencil writes is to set This isn't the only mechanism for explicitly disabling stencil writes. Stencil writes can also be disabled by disabling stencil testing (as can be seen in thi

Re: [Mesa-dev] [PATCH] [RFC] radv: enable transfer queues on CIK using SDMA engine.

2017-02-07 Thread Fredrik Höglund
On Tuesday 07 February 2017, Dave Airlie wrote: > From: Dave Airlie > > This enables a transfer queue using the SDMA engine on > CIK/VI/Polaris GPUs. > > TODO: > decide what to do with HW limitations from radeonsi > (fail to record?) > add linear bounds check to the buffer->image copies > > dEQ

Re: [Mesa-dev] [PATCH] isl: annotate isl_get_interleaved_msaa_px_size_sa return value as const

2017-02-07 Thread Jason Ekstrand
On Tue, Feb 7, 2017 at 10:42 AM, Emil Velikov wrote: > On 7 February 2017 at 16:11, Jason Ekstrand wrote: > > How does it make any sense to declare const on the return type of a > function > > that doesn't return a pointer??? It's not returning by reference, it's > > returning a copy so const o

Re: [Mesa-dev] [PATCH] isl: annotate isl_get_interleaved_msaa_px_size_sa return value as const

2017-02-07 Thread Emil Velikov
On 7 February 2017 at 16:11, Jason Ekstrand wrote: > How does it make any sense to declare const on the return type of a function > that doesn't return a pointer??? It's not returning by reference, it's > returning a copy so const on the return type of the function means nothing. > Seems like you

[Mesa-dev] [PATCH 3/5] st/mesa: fix member access within null pointer

2017-02-07 Thread Bartosz Tomczyk
--- src/mesa/state_tracker/st_manager.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mesa/state_tracker/st_manager.c b/src/mesa/state_tracker/st_manager.c index c3d8286b5a..ad69ca6eb5 100644 --- a/src/mesa/state_tracker/st_manager.c +++ b/src/mesa/state_tracker/st_manag

[Mesa-dev] [PATCH 2/5] util/list: fix member access within null pointer

2017-02-07 Thread Bartosz Tomczyk
--- configure.ac| 3 +++ src/util/list.h | 9 + 2 files changed, 12 insertions(+) diff --git a/configure.ac b/configure.ac index a6ceee95a3..87f635c1a3 100644 --- a/configure.ac +++ b/configure.ac @@ -415,6 +415,9 @@ AC_C_BIGENDIAN( little_endian=no ) +dnl Chek for typeof suppo

[Mesa-dev] [PATCH 1/5] gallium/u_inlines: fix member access within null pointer

2017-02-07 Thread Bartosz Tomczyk
--- src/gallium/auxiliary/util/u_inlines.h | 65 -- 1 file changed, 39 insertions(+), 26 deletions(-) diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h index b7b8313583..3bb3bcd6e0 100644 --- a/src/gallium/auxiliary/util/

[Mesa-dev] [PATCH 5/5] gallium/radeon: fix member access within null pointer

2017-02-07 Thread Bartosz Tomczyk
--- src/gallium/drivers/radeon/r600_pipe_common.c | 13 +++-- src/gallium/drivers/radeon/r600_pipe_common.h | 3 ++- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/src/gallium/drivers/radeon/r600_pipe_common.c b/src/gallium/drivers/radeon/r600_pipe_common.c index 95a6a486

[Mesa-dev] [PATCH 0/5] Fix member access within null pointer reported by UBSAN

2017-02-07 Thread Bartosz Tomczyk
Series fix various null pointer derefeneces repored by UBSAN. Found by running piglit tests. Bartosz Tomczyk (5): gallium/u_inlines: fix member access within null pointer util/list: fix member access within null pointer st/mesa: fix member access within null pointer gallium/auxiliary: fix

[Mesa-dev] [PATCH 4/5] gallium/auxiliary: fix member access within null pointer

2017-02-07 Thread Bartosz Tomczyk
--- src/gallium/auxiliary/pipebuffer/pb_buffer.h | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/src/gallium/auxiliary/pipebuffer/pb_buffer.h b/src/gallium/auxiliary/pipebuffer/pb_buffer.h index 33c23068c2..12c9ca779a 100644 --- a/src/gallium/auxiliary/pipebuffer/pb

Re: [Mesa-dev] [PATCH 35/40] util/disk_cache: allow drivers to pass a directory structure

2017-02-07 Thread Aaron Watry
On Mon, Feb 6, 2017 at 9:42 PM, Timothy Arceri wrote: > In order to avoid costly fallback recompiles when cache items are > created with an old version of Mesa or for a different gpu on the > same system we want to create directories that look like this: > > ./{MESA_VERSION_STRING}/{GPU_ID} > > F

Re: [Mesa-dev] [PATCH 00/10] swr: update rasterizer

2017-02-07 Thread Cherniak, Bruce
Reviewed-by: Bruce Cherniak > On Feb 6, 2017, at 6:40 PM, Tim Rowley wrote: > > Highlights include more avx512 work and fixes for llvm>=3.8. > > Tim Rowley (10): > swr: [rasterizer core] Frontend SIMD16 WIP > swr: [rasterizer jitter] Adjust jitter header includes > swr: [rasterizer jitter]

[Mesa-dev] [Bug 99638] Mesa opengles Peppa Pig and openggles2 smurfs on Radeon PowerPC and PPC64

2017-02-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99638 --- Comment #5 from intermedi...@hotmail.com --- Created attachment 129396 --> https://bugs.freedesktop.org/attachment.cgi?id=129396&action=edit all blue weston Weston blue -- You are receiving this mail because: You are the QA Contact for t

Re: [Mesa-dev] [PATCH v2] glsl: fix heap-use-after-free in ast_declarator_list::hir()

2017-02-07 Thread Bartosz Tomczyk
Patch is: Tested-by: Bartosz Tomczyk I can confirm it fix use-after-free issue. On Tue, Feb 7, 2017 at 1:47 PM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > The get_variable_being_redeclared() function can free 'var' because > a re-declaration of an unsized array variable can esta

Re: [Mesa-dev] [PATCH] isl: annotate isl_get_interleaved_msaa_px_size_sa return value as const

2017-02-07 Thread Jason Ekstrand
How does it make any sense to declare const on the return type of a function that doesn't return a pointer??? It's not returning by reference, it's returning a copy so const on the return type of the function means nothing. On Tue, Feb 7, 2017 at 4:54 AM, Emil Velikov wrote: > Already used as s

Re: [Mesa-dev] Time to merge threaded GL dispatch? (aka glthread)

2017-02-07 Thread James Legg
Hi Gregory, On Tue, 2017-02-07 at 16:04 +0100, Gregory Hainaut wrote: > > Hi, > > > > On Mon, 2017-02-06 at 13:43 +0100, Jan Ziak wrote: > > > Shadow of Mordor benchmark: 30 FPS w/o glthread -> 20 FPS with > > > glthread > > >  > > > > For what it is worth, all the Feral games have a dispatch th

Re: [Mesa-dev] GLSL IR & TGSI on-disk shader cache

2017-02-07 Thread Marek Olšák
On Tue, Feb 7, 2017 at 4:42 AM, Timothy Arceri wrote: > Without the radeonsi patch min fps still goes up around 4 fps in > the Shadow of Mordor benchmark (although the stalls are still > very noticeable). I don't fully understand this. Can you elaborate on that? There are 4 tests that can be don

Re: [Mesa-dev] Time to merge threaded GL dispatch? (aka glthread)

2017-02-07 Thread Gregory Hainaut
> > Hi, > > On Mon, 2017-02-06 at 13:43 +0100, Jan Ziak wrote: > >* Shadow of Mordor benchmark: 30 FPS w/o glthread -> 20 FPS with > *>* glthread > *> > For what it is worth, all the Feral games have a dispatch thread that > primarily calls GL functions. > > James > > Hello James, Did you have th

[Mesa-dev] [PATCH] winsys/intel: remove unused winsys - ilo was its only user

2017-02-07 Thread Emil Velikov
From: Emil Velikov Cc: Edward O'Callaghan Signed-off-by: Emil Velikov --- src/gallium/winsys/intel/drm/Android.mk | 36 -- src/gallium/winsys/intel/drm/Makefile.am| 34 -- src/gallium/winsys/intel/drm/Makefile.sources | 3 - src/gallium/winsys/intel/drm/intel_drm_public.h

Re: [Mesa-dev] [PATCH] r600/sb: Fix memory leak

2017-02-07 Thread Bartosz Tomczyk
Hi Nicolai, Will you push it, if I change it as described in last mail ? On Mon, Jan 30, 2017 at 3:31 PM, Bartosz Tomczyk < bartosz.tomczy...@gmail.com> wrote: > It did not change anything, as we are not dereferencing iterator after > delete. > > I think changing: > delete *it; > uses.erase(it);

  1   2   >