[Mesa-dev] [Bug 78581] OpenCL: clBuildProgram prints error messages directly rather than storing them

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78581 Vedran Miletić changed: What|Removed |Added Resolution|WONTFIX |WORKSFORME

[Mesa-dev] [Bug 78581] OpenCL: clBuildProgram prints error messages directly rather than storing them

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=78581 Vedran Miletić changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 100218] [Clover] Handle -g passed as a compile option

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100218 --- Comment #1 from Aaron Watry --- Just thought I'd chime in here. I don't necessary try to use '-g' when compiling cl kernels/programs in clover, but I have been poking at getting some programs working that relying on the

[Mesa-dev] [Bug 90121] All OpenCL samples are failing with clGetPlatformID on Clover with Bonaire

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90121 Vedran Miletić changed: What|Removed |Added Summary|All OpenCL samples are |All OpenCL samples

[Mesa-dev] [Bug 91869] [PATCH] ralloc: atexit(3) handlers used in dlopened libraries

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=91869 Vedran Miletić changed: What|Removed |Added Resolution|--- |FIXED

Re: [Mesa-dev] [PATCH] r600_shader.c: fix indentation

2017-03-22 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, Mar 22, 2017 at 4:58 PM, Julien Isorce wrote: > Introduced by ad13bd2e51a5dc01b0f8a0eb927022f0deac0a0c > > Signed-off-by: Julien Isorce > --- > src/gallium/drivers/r600/r600_shader.c | 8

[Mesa-dev] [Bug 93977] Clover does not respect alignment of pointer arguments

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=93977 Vedran Miletić changed: What|Removed |Added CC||ved...@miletic.net

[Mesa-dev] [Bug 93977] Clover does not respect alignment of pointer arguments

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=93977 Vedran Miletić changed: What|Removed |Added Blocks||99553 --- Comment

[Mesa-dev] [Bug 94040] clGetPlatformIDs causes futex race condition

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94040 Vedran Miletić changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 94503] OpenCL kernel segfaults during compilation on Clover RadeonSI with Pitcairn GPU

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94503 Vedran Miletić changed: What|Removed |Added Blocks||99553

Re: [Mesa-dev] [PATCH] r600_shader.c: fix indentation

2017-03-22 Thread Nayan Deshmukh
Reviewed-by: Nayan Deshmukh On Wed, Mar 22, 2017 at 9:28 PM, Julien Isorce wrote: > Introduced by ad13bd2e51a5dc01b0f8a0eb927022f0deac0a0c > > Signed-off-by: Julien Isorce > --- > src/gallium/drivers/r600/r600_shader.c |

[Mesa-dev] [Bug 97542] mesa-12.0.1 with llvm-3.9.0_rc3 - src/gallium/state_trackers/clover/llvm/invocation.cpp:212:75: error: no matching function for call to clang::CompilerInvocation::setLangDefault

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=97542 Vedran Miletić changed: What|Removed |Added Status|REOPENED|RESOLVED

[Mesa-dev] [Bug 99014] clover is broken for Oland in 12.0.4

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99014 --- Comment #10 from Vedran Miletić --- Igor, can you test 12.0.6? -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the bug.___

[Mesa-dev] [Bug 90032] build fails, undefined reference to llvm:RTDyldMemoryManager

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=90032 Vedran Miletić changed: What|Removed |Added Status|NEW |RESOLVED

[Mesa-dev] [Bug 100218] [Clover] Handle -g passed as a compile option

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100218 Vedran Miletić changed: What|Removed |Added Blocks||99553 Referenced

[Mesa-dev] [Bug 96897] clpeak OpenCL benchmark hangs during compilation on Clover RadeonSI

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=96897 Vedran Miletić changed: What|Removed |Added Summary|[opencl] clpeak hangs |clpeak OpenCL

Re: [Mesa-dev] [PATCH] anv/blorp: sample input attachments with resolves on BDW

2017-03-22 Thread Jason Ekstrand
On Wed, Mar 22, 2017 at 7:38 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > On Tue, 2017-03-21 at 16:34 +0100, Samuel Iglesias Gonsálvez wrote: > > > > On 21/03/17 16:14, Jason Ekstrand wrote: > > > On Tue, Mar 21, 2017 at 7:23 AM, Samuel Iglesias Gonsálvez > > >

[Mesa-dev] [PATCH] r600_shader.c: fix indentation

2017-03-22 Thread Julien Isorce
Introduced by ad13bd2e51a5dc01b0f8a0eb927022f0deac0a0c Signed-off-by: Julien Isorce --- src/gallium/drivers/r600/r600_shader.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/gallium/drivers/r600/r600_shader.c

[Mesa-dev] [PATCH mesa] docs/submittingpatches: add mention about legal disclaimers

2017-03-22 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- docs/submittingpatches.html | 10 ++ 1 file changed, 10 insertions(+) diff --git a/docs/submittingpatches.html b/docs/submittingpatches.html index 7910ae98f7..5310b1d8c1 100644 --- a/docs/submittingpatches.html +++

Re: [Mesa-dev] [PATCH] ac, gallium: fix building with LLVM >= r298393

2017-03-22 Thread Kai Wasserbäch
Already on list by Marek Vedran Miletić wrote on 22.03.2017 16:01: > AttributeSet got renamed to AttributeList. > > Signed-off-by: Vedran Miletić > --- > src/amd/common/ac_llvm_helper.cpp | 10 -- >

Re: [Mesa-dev] [PATCH] android: rename Intel Vulkan library to match desktop one

2017-03-22 Thread Tapani Pälli
On 03/22/2017 05:43 PM, Emil Velikov wrote: On 21 March 2017 at 08:04, Tapani Pälli wrote: Original naming was following Vulkan HAL naming scheme for no good purpose and we need same binary name for build-id code. Signed-off-by: Tapani Pälli

Re: [Mesa-dev] [PATCH] anv: remove spec quote from anv_EnumeratePhysicalDevices

2017-03-22 Thread Emil Velikov
On 15 February 2017 at 16:25, Emil Velikov wrote: > From: Emil Velikov > > The VK_SUCCESS/VK_INCOMPLETE pattern is quite common. > > Signed-off-by: Emil Velikov > --- > Based on top of the drmGetDevice2 series

Re: [Mesa-dev] [PATCH 19/23] nir: Return progress from nir_convert_from_ssa().

2017-03-22 Thread Jason Ekstrand
LGTM Reviewed-by: Jason Ekstrand On Wed, Mar 22, 2017 at 8:43 AM, Matt Turner wrote: > --- > src/compiler/nir/nir.h | 2 +- > src/compiler/nir/nir_from_ssa.c | 21 ++--- > 2 files changed, 15 insertions(+), 8 deletions(-) >

Re: [Mesa-dev] [PATCH] android: rename Intel Vulkan library to match desktop one

2017-03-22 Thread Emil Velikov
On 21 March 2017 at 08:04, Tapani Pälli wrote: > Original naming was following Vulkan HAL naming scheme for no good > purpose and we need same binary name for build-id code. > > Signed-off-by: Tapani Pälli Afaict there is nothing specific that

[Mesa-dev] [PATCH 19/23] nir: Return progress from nir_convert_from_ssa().

2017-03-22 Thread Matt Turner
--- src/compiler/nir/nir.h | 2 +- src/compiler/nir/nir_from_ssa.c | 21 ++--- 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/compiler/nir/nir.h b/src/compiler/nir/nir.h index db47699..0a127cd 100644 --- a/src/compiler/nir/nir.h +++

Re: [Mesa-dev] [PATCH] egl: Fix for not setting EGL_BAD_ALLOC on try to create multiple window surfaces on single window v2.

2017-03-22 Thread Eric Engestrom
Hi Adrian, Thanks for this patch! I have only had a quick look at the logic itself, but it looks correct. Inline are a few comments to address before we can merge this patch. I also recommend reading our guidelines on submitting patches: https://mesa3d.org/submittingpatches.html > Subject:

[Mesa-dev] [PATCH] ac, gallium: fix building with LLVM >= r298393

2017-03-22 Thread Vedran Miletić
AttributeSet got renamed to AttributeList. Signed-off-by: Vedran Miletić --- src/amd/common/ac_llvm_helper.cpp | 10 -- src/gallium/auxiliary/gallivm/lp_bld_misc.cpp | 8 +++- 2 files changed, 15 insertions(+), 3 deletions(-) diff --git

Re: [Mesa-dev] [PATCH] anv/blorp: sample input attachments with resolves on BDW

2017-03-22 Thread Samuel Iglesias Gonsálvez
On Tue, 2017-03-21 at 16:34 +0100, Samuel Iglesias Gonsálvez wrote: > > On 21/03/17 16:14, Jason Ekstrand wrote: > > On Tue, Mar 21, 2017 at 7:23 AM, Samuel Iglesias Gonsálvez > > > wrote: > > > > Input attachments are clear-color aware on

[Mesa-dev] [Bug 99956] build_id.c:36:20: error: unknown type name 'Elf_Nhdr'

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=99956 --- Comment #3 from Emil Velikov --- Quick search showed the following handy website. In there you can see that things "broke" between FreeBSD 10 and 11 - former has Elf_Nhdr while latter does not. Not sure how to

[Mesa-dev] [Bug 94273] Clover on RadeonSI OpenCL segfault during testing of clBLAS

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=94273 Vedran Miletić changed: What|Removed |Added Summary|OpenCL segfault during |Clover on RadeonSI

Re: [Mesa-dev] [PATCH] glsl: Link glsl_compiler with CLOCK_LIB.

2017-03-22 Thread Emil Velikov
On 22 March 2017 at 09:08, Timothy Arceri wrote: > On 22/03/17 10:31, Vinson Lee wrote: >> >> Fix linking error with build. >> >> CXXLD glsl_compiler >> glsl/.libs/libstandalone.a(lt16-libmesautil_la-u_queue.o): In function >> `u_thread_get_time_nano': >>

[Mesa-dev] [PATCH] egl: Fix for not setting EGL_BAD_ALLOC on try to create multiple window surfaces on single window v2.

2017-03-22 Thread Adrian Pielech
According to the EGL 1.5 spec, section 3.5.1, page 34,35 eglCreateWindowSurface should return EGL_BAD_ALLOC if there is already surface for given window. Similarly it is written in EGL 1.4 spec, section 3.5.1, page 29. I apologize for small mistakes on earlier message... Signed-off-by: Adrian

Re: [Mesa-dev] [PATCH] anv/image: Return early when unbinding an image

2017-03-22 Thread Iago Toral
On Tue, 2017-03-21 at 17:17 -0700, Jason Ekstrand wrote: > Found by inspection. > > Cc: "17.0 13.0" > --- >  src/intel/vulkan/anv_image.c | 9 + >  1 file changed, 5 insertions(+), 4 deletions(-) > > diff --git a/src/intel/vulkan/anv_image.c >

[Mesa-dev] [PATCH] egl: Fix for not setting EGL_BAD_ALLOC on try to create multiple window surfaces on single window.

2017-03-22 Thread Adrian Pielech
According to the EGL 1.5 spec, section 3.5.1, page 34,35 eglCreateWindowSurface should return EGL_BAD_ALLOC if there is already created surface for given window. Similarly it is written in EGL 1.4 spec, section 3.5.1, page 29. Signed-off-by: Adrian Pielech --- src/egl/main/eglapi.c | 89

Re: [Mesa-dev] [PATCH] util/sha1: harmonize _mesa_sha1_* wrappers

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 12:40, Emil Velikov wrote: On 22 March 2017 at 10:57, Nicolai Hähnle wrote: On 22.03.2017 00:43, Grazvydas Ignotas wrote: Rather than using 3 different ways to wrap _mesa_sha1_*() to SHA1*() functions (a macro, prototype with implementation in .c and an

Re: [Mesa-dev] [PATCH v2 2/5] intel: Move tools/decoder.[ch] to common/gen_decoder.[ch].

2017-03-22 Thread Emil Velikov
n 21 March 2017 at 20:58, Kenneth Graunke wrote: > On Tuesday, March 21, 2017 4:40:26 AM PDT Emil Velikov wrote: >> On 21 March 2017 at 11:14, Emil Velikov wrote: >> > On 20 March 2017 at 22:04, Kenneth Graunke wrote: >> >>

Re: [Mesa-dev] [PATCH 1/2] anv: automake: use the local headers over any system provided ones

2017-03-22 Thread Emil Velikov
On 21 March 2017 at 18:58, Grazvydas Ignotas wrote: > On Tue, Mar 21, 2017 at 2:05 PM, Emil Velikov > wrote: >> On 20 March 2017 at 21:51, Jason Ekstrand wrote: >>> On Mon, Mar 20, 2017 at 8:18 AM, Emil Velikov

Re: [Mesa-dev] [PATCH] util/sha1: harmonize _mesa_sha1_* wrappers

2017-03-22 Thread Emil Velikov
On 22 March 2017 at 10:57, Nicolai Hähnle wrote: > On 22.03.2017 00:43, Grazvydas Ignotas wrote: >> >> Rather than using 3 different ways to wrap _mesa_sha1_*() to SHA1*() >> functions (a macro, prototype with implementation in .c and an inline >> function), make all 3 inline

Re: [Mesa-dev] [PATCH v2] anv: add support for allocating more than 1 block of memory

2017-03-22 Thread Juan A. Suarez Romero
On Wed, 2017-03-15 at 13:05 +0100, Juan A. Suarez Romero wrote: > Current Anv allocator assign memory in terms of a fixed block size. > > But there can be cases where this block is not enough for a memory > request, and thus several blocks must be assigned in a row. > > This commit adds support

[Mesa-dev] [Bug 100316] Linking GLSL 1.30 shaders with invariant and deprecated variables triggers an 'mismatching invariant qualifiers' error

2017-03-22 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100316 Bug ID: 100316 Summary: Linking GLSL 1.30 shaders with invariant and deprecated variables triggers an 'mismatching invariant qualifiers' error Product: Mesa

Re: [Mesa-dev] [PATCH] anv/device: Move push descriptor query handling

2017-03-22 Thread Lionel Landwerlin
Thanks! Reviewed-by: Lionel Landwerlin On 21/03/17 21:37, Jason Ekstrand wrote: The query is a properties query so it needs to be handled in GetPhysicalDeviceProperties2, not GetPhysicalDeviceFeatures2. Cc: Lionel Landwerlin ---

Re: [Mesa-dev] [PATCH 00/18] Good bye pragma once

2017-03-22 Thread Edward O'Callaghan
Reviewed-by: Edward O'Callaghan Thanks for getting rid of them Emil. On 03/21/2017 03:12 AM, Emil Velikov wrote: > Hi all, > > We have a strange mix of pragma once vs ifndef guards in-tree. > > Since the former is less common, and concluded as the 'wrong' way, >

Re: [Mesa-dev] [PATCH 00/18] Good bye pragma once

2017-03-22 Thread Juha-Pekka Heikkila
On 20.03.2017 18:12, Emil Velikov wrote: Hi all, We have a strange mix of pragma once vs ifndef guards in-tree. Since the former is less common, and concluded as the 'wrong' way, I've went ahead and purged them. As a since side effect I also fixed all the headers in the respective folders

Re: [Mesa-dev] [PATCH] util/sha1: harmonize _mesa_sha1_* wrappers

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 00:43, Grazvydas Ignotas wrote: Rather than using 3 different ways to wrap _mesa_sha1_*() to SHA1*() functions (a macro, prototype with implementation in .c and an inline function), make all 3 inline functions. Signed-off-by: Grazvydas Ignotas Reviewed-by:

Re: [Mesa-dev] [PATCH] st/mesa: EGLImageTarget error handling

2017-03-22 Thread Nicolai Hähnle
Hi Philipp, On 22.03.2017 11:00, Philipp Zabel wrote: On Wed, 2017-03-22 at 07:58 +0100, Nicolai Hähnle wrote: On 21.03.2017 17:51, Philipp Zabel wrote: Stop trying to specify texture or renderbuffer objects for unsupported EGL images. Generate the error codes specified in the OES_EGL_image

Re: [Mesa-dev] [PATCH V3] util/rand_xor: add function to seed rand

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 09:45, Timothy Arceri wrote: On 22/03/17 19:44, Timothy Arceri wrote: V2: pass the seed to the seed function so that we can isolate its uses. Stop leaking fd when urandom couldn't be read. V3: add basic randomised seed support for non-linux platforms. I should note that

Re: [Mesa-dev] [PATCH V3 3/3] util/disk_cache: write cache entry keys to file header

2017-03-22 Thread Grazvydas Ignotas
On Wed, Mar 22, 2017 at 10:56 AM, Timothy Arceri wrote: > This can be used to deal with key hash collisions from different > versions (should we find that to actually happen) and to find > which mesa version produced the cache entry. > > V2: use blob created at cache

Re: [Mesa-dev] [PATCH] radv: Invalidate L2 for TRANSFER_WRITE barriers

2017-03-22 Thread Bas Nieuwenhuizen
On Tue, Mar 21, 2017 at 1:02 PM, Alex Smith wrote: > CP DMA and PKT3_WRITE_DATA (in CmdUpdateBuffer) don't (currently) write > through L2. Therefore, to make these writes visible to later accesses > we must invalidate L2 rather than just writing it back, to avoid the

Re: [Mesa-dev] [PATCH] st/mesa: EGLImageTarget error handling

2017-03-22 Thread Philipp Zabel
Hi Nicolai, thank you for the comments. On Wed, 2017-03-22 at 07:58 +0100, Nicolai Hähnle wrote: > On 21.03.2017 17:51, Philipp Zabel wrote: > > Stop trying to specify texture or renderbuffer objects for unsupported > > EGL images. Generate the error codes specified in the OES_EGL_image > >

[Mesa-dev] [PATCH] anv/query: handle out of host memory without crashing in compute_query_result()

2017-03-22 Thread Iago Toral Quiroga
We don't need to make the caller (CmdCopyQueryPoolResults) aware of the problem since compute_query_result() only emits state. The caller is also expected to hit OOM in this scenario right after calling this function, but it is already handling it safely. Fixes:

Re: [Mesa-dev] [PATCH] glsl: Link glsl_compiler with CLOCK_LIB.

2017-03-22 Thread Timothy Arceri
On 22/03/17 10:31, Vinson Lee wrote: Fix linking error with build. CXXLD glsl_compiler glsl/.libs/libstandalone.a(lt16-libmesautil_la-u_queue.o): In function `u_thread_get_time_nano': src/util/../../src/util/u_thread.h:84: undefined reference to `clock_gettime' Maybe mention the

[Mesa-dev] [PATCH V3 3/3] util/disk_cache: write cache entry keys to file header

2017-03-22 Thread Timothy Arceri
This can be used to deal with key hash collisions from different versions (should we find that to actually happen) and to find which mesa version produced the cache entry. V2: use blob created at cache creation. v3: remove left over var from v1. --- src/util/disk_cache.c | 50

[Mesa-dev] [PATCH v4 2/3] util/disk_cache: hash pointer size and gpu name into cache keys

2017-03-22 Thread Timothy Arceri
From: Grazvydas Ignotas This allows to get rid of the arch and gpu name directories. v2: (Timothy Arceri) don't use an opaque data type to store pointer size and gpu name. v3: (Timothy Arceri) use blob to store driver keys just make sure to store null terminator for

Re: [Mesa-dev] [PATCH V3] util/rand_xor: add function to seed rand

2017-03-22 Thread Timothy Arceri
On 22/03/17 19:44, Timothy Arceri wrote: V2: pass the seed to the seed function so that we can isolate its uses. Stop leaking fd when urandom couldn't be read. V3: add basic randomised seed support for non-linux platforms. I should note that this is untested.

[Mesa-dev] [PATCH V3] util/rand_xor: add function to seed rand

2017-03-22 Thread Timothy Arceri
V2: pass the seed to the seed function so that we can isolate its uses. Stop leaking fd when urandom couldn't be read. V3: add basic randomised seed support for non-linux platforms. --- src/gallium/drivers/radeon/r600_test_dma.c | 3 +- src/util/rand_xor.c| 65

Re: [Mesa-dev] [RFC libdrm 0/2] Replace the build system with meson

2017-03-22 Thread Jani Nikula
On Tue, 21 Mar 2017, Dylan Baker wrote: > Quoting Jani Nikula (2017-03-21 07:44:55) >> How does meson handle build file backwards compatibility between meson >> versions? I don't intend to flame, but I've found for some reason many >> python projects don't seem to take this

Re: [Mesa-dev] [llvm] r298336 - Fix evaluation of LLVM_DEFINITIONS

2017-03-22 Thread Michel Dänzer
Hi Serge, On 21/03/17 01:03 PM, Serge Pavlov via llvm-commits wrote: > Author: sepavloff > Date: Mon Mar 20 23:03:24 2017 > New Revision: 298336 > > URL: http://llvm.org/viewvc/llvm-project?rev=298336=rev > Log: > Fix evaluation of LLVM_DEFINITIONS This change broke the build of at least

Re: [Mesa-dev] [PATCH 063/140] amd: resolve remaining definition conflicts with gfx9d.h

2017-03-22 Thread Nicolai Hähnle
On 21.03.2017 17:39, Marek Olšák wrote: On Tue, Mar 21, 2017 at 4:50 PM, Marek Olšák wrote: On Tue, Mar 21, 2017 at 10:03 AM, Nicolai Hähnle wrote: On 20.03.2017 23:43, Marek Olšák wrote: From: Marek Olšák Add _GFX6 and _GFX9

Re: [Mesa-dev] [PATCH V2 2/3] util/rand_xor: add function to seed rand

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 00:59, Timothy Arceri wrote: V2: pass the seed to the seed function so that we can isolate its uses. Stop leaking fd when urandom couldn't be read. --- src/gallium/drivers/radeon/r600_test_dma.c | 3 +- src/util/rand_xor.c| 57

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

2017-03-22 Thread Michel Dänzer
On 21/03/17 03:32 AM, Constantine Kharlamov wrote: > I resend it, my prev. rebase was apparently sent through Thunderbird, > which even with plain text having set managed to screw this up. It's > the last drop, I better off return to KMail. FWIW, the Toggle Word Wrap extension

Re: [Mesa-dev] [PATCH V3 2/3] util/disk_cache: hash pointer size and gpu name into cache keys

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 08:34, Timothy Arceri wrote: On 22/03/17 18:17, Nicolai Hähnle wrote: On 22.03.2017 04:45, Timothy Arceri wrote: From: Grazvydas Ignotas This allows to get rid of the arch and gpu name directories. v2: (Timothy Arceri) don't use an opaque data type to

Re: [Mesa-dev] [PATCH V3 2/3] util/disk_cache: hash pointer size and gpu name into cache keys

2017-03-22 Thread Timothy Arceri
On 22/03/17 18:17, Nicolai Hähnle wrote: On 22.03.2017 04:45, Timothy Arceri wrote: From: Grazvydas Ignotas This allows to get rid of the arch and gpu name directories. v2: (Timothy Arceri) don't use an opaque data type to store pointer size and gpu name. v3:

Re: [Mesa-dev] [PATCH V2 3/3] util/disk_cache: write cache entry keys to file header

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 04:45, Timothy Arceri wrote: This can be used to deal with key hash collisions from different versions (should we find that to actually happen) and to find which mesa version produced the cache entry. V2: use blob created add cache creation. Typo: at ---

Re: [Mesa-dev] [PATCH V4 1/3] util/disk_cache: hash timestamps into the cache keys

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 04:45, Timothy Arceri wrote: From: Grazvydas Ignotas Instead of using a directory, hash the timestamps into the cache keys themselves. Since there is no more timestamp directory, there is no more need for deleting the cache of other mesa versions and we rely on

Re: [Mesa-dev] [PATCH V3 2/3] util/disk_cache: hash pointer size and gpu name into cache keys

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 04:45, Timothy Arceri wrote: From: Grazvydas Ignotas This allows to get rid of the arch and gpu name directories. v2: (Timothy Arceri) don't use an opaque data type to store pointer size and gpu name. v3: (Timothy Arceri) use blob to store driver keys

Re: [Mesa-dev] [PATCH V2 3/3] util/disk_cache: use rand_xorshift128plus() to get our random int

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 01:48, Grazvydas Ignotas wrote: On Wed, Mar 22, 2017 at 1:59 AM, Timothy Arceri wrote: Otherwise for apps that don't seed the regular rand() we will always remove old cache entries from the same dirs. V2: assume bits returned by rand are independent

Re: [Mesa-dev] [PATCH V2 3/3] util/disk_cache: use rand_xorshift128plus() to get our random int

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 00:59, Timothy Arceri wrote: Otherwise for apps that don't seed the regular rand() we will always remove old cache entries from the same dirs. V2: assume bits returned by rand are independent uniformly distributed bits and grab our hex value without taking the modulus of the

Re: [Mesa-dev] [PATCH V2 2/3] util/rand_xor: add function to seed rand

2017-03-22 Thread Nicolai Hähnle
On 22.03.2017 05:52, Jonathan Gray wrote: If a proper PRNG like arc4random backed by a syscall like getentropy were used this would already handle reseeding on fork and fd exhaustion. And look people have already gone out of their way to provide fallbacks for these interfaces.

Re: [Mesa-dev] [PATCH 2/3] ac: fix build with LLVM 5.0svn

2017-03-22 Thread Nicolai Hähnle
On 21.03.2017 23:18, Marek Olšák wrote: From: Marek Olšák --- src/amd/common/ac_llvm_helper.cpp | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/amd/common/ac_llvm_helper.cpp b/src/amd/common/ac_llvm_helper.cpp index 4f03103..83ad7ff 100644

Re: [Mesa-dev] [PATCH] st/mesa: EGLImageTarget error handling

2017-03-22 Thread Nicolai Hähnle
On 21.03.2017 17:51, Philipp Zabel wrote: Stop trying to specify texture or renderbuffer objects for unsupported EGL images. Generate the error codes specified in the OES_EGL_image extension. Signed-off-by: Philipp Zabel --- EGLImageTargetTexture2D and

Re: [Mesa-dev] [PATCH 3/3] configure.ac: adjust strip_unwanted_llvm_flags to fix build with LLVM 5.0svn

2017-03-22 Thread Michel Dänzer
On 22/03/17 07:40 AM, Marek Olšák wrote: > This looks like a bug in LLVM. Not sure if Mesa should do anything about it: I don't think we should (assuming we even could). I'm bisecting this right now and will raise it with the author of the breaking LLVM change and on the llvm-commits mailing

<    1   2