[Mesa-dev] [PATCH] st/mesa: fix handling of vertex array double inputs

2017-08-26 Thread Ilia Mirkin
The is_double_vertex_input needs to be set for arrays of doubles as well. Fixes KHR-GL45.enhanced_layouts.varying_array_locations Signed-off-by: Ilia Mirkin Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/state_tracker/st_glsl_to_tgsi.cpp | 2 +- 1 file changed, 1

[Mesa-dev] [PATCH] glsl: fix counting of vertex shader output slots used by explicit vars

2017-08-26 Thread Ilia Mirkin
The argument to count_attribute_slots should only be set to true for vertex inputs, not for all vertex shader varyings. Fixes KHR-GL45.enhanced_layouts.varying_locations Signed-off-by: Ilia Mirkin Cc: mesa-sta...@lists.freedesktop.org ---

Re: [Mesa-dev] [PATCH 1/2] util: add stringbuf library

2017-08-26 Thread Thomas Helland
Plowed through it a couple times, and it looks solid to me. After thinking through it a couple times it seems like this should be more performant than my modification of Vladislav's original implementation. Would be nice to see a performance comparison though. I'll try to get some numbers up for

Re: [Mesa-dev] [PATCH 0/2] glsl: avoid quadratic behavior during preprocessing

2017-08-26 Thread Thomas Helland
Hi, I haven't looked to closely into this series yet. Just thought I'd point out this series I wrote back in May, in case you didn't see it, or remembered it. I haven't gotten around to finishing it (whats left is porting the tests to gtest). The implementation should be fine though; I've put it

Re: [Mesa-dev] [PATCH 12/47] i965/fs: Add brw_reg_type_from_bit_size utility method

2017-08-26 Thread Jason Ekstrand
On Thu, Aug 24, 2017 at 6:54 AM, Alejandro Piñeiro wrote: > Returns the brw_type for a given ssa.bit_size, and a reference type. > So if bit_size is 64, and the reference type is BRW_REGISTER_TYPE_F, > it returns BRW_REGISTER_TYPE_DF. The same applies if bit_size is 32 >

Re: [Mesa-dev] [PATCH] util: move string_to_uint_map to glsl

2017-08-26 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Fri, Aug 25, 2017 at 7:10 PM, Jason Ekstrand wrote: > Ack. Not a review though. > > > > On August 25, 2017 6:38:46 PM Emil Velikov > wrote: > > From: Emil Velikov

Re: [Mesa-dev] [PATCH] util: only use SCHED_IDLE in pthread_setschedparam() when it's defined

2017-08-26 Thread Jose Fonseca
On 26/08/17 16:09, srol...@vmware.com wrote: From: Roland Scheidegger Fixes build error when it's not. --- src/util/u_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/u_queue.c b/src/util/u_queue.c index 49361c3..449da7d 100644 ---

[Mesa-dev] [PATCH] util: only use SCHED_IDLE in pthread_setschedparam() when it's defined

2017-08-26 Thread sroland
From: Roland Scheidegger Fixes build error when it's not. --- src/util/u_queue.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/u_queue.c b/src/util/u_queue.c index 49361c3..449da7d 100644 --- a/src/util/u_queue.c +++ b/src/util/u_queue.c @@

Re: [Mesa-dev] TGSI 16-bit support

2017-08-26 Thread Nicolai Hähnle
On 26.08.2017 00:46, Timothy Arceri wrote: On 26/08/17 00:50, Nicolai Hähnle wrote: On 25.08.2017 13:58, Marek Olšák wrote: Nicolai, Have you thought about switching to NIR for radeonsi completely to get 16-bit support? We need NIR support anyway for spirv, right? Would be it be easier

Re: [Mesa-dev] [PATCH] st/query: init result data with 0

2017-08-26 Thread Ilia Mirkin
On Sat, Aug 26, 2017 at 3:49 AM, Karol Herbst wrote: > On Sat, Aug 26, 2017 at 3:36 AM, Ilia Mirkin wrote: >> On Fri, Aug 25, 2017 at 8:23 PM, Karol Herbst wrote: >>> On Sat, Aug 26, 2017 at 1:38 AM, Ilia Mirkin

[Mesa-dev] [PATCH 1/2] util: add stringbuf library

2017-08-26 Thread Nicolai Hähnle
From: Nicolai Hähnle For building long strings by successive append operations. --- src/util/Makefile.sources | 2 + src/util/stringbuf.c | 185 ++ src/util/stringbuf.h | 97 3 files

[Mesa-dev] [PATCH 2/2] glsl: use stringbuf in the preprocessor

2017-08-26 Thread Nicolai Hähnle
From: Nicolai Hähnle --- src/compiler/glsl/glcpp/glcpp-parse.y | 99 ++- src/compiler/glsl/glcpp/glcpp.h | 7 ++- src/compiler/glsl/glcpp/pp.c | 45 +++- 3 files changed, 59 insertions(+), 92 deletions(-)

[Mesa-dev] [PATCH 0/2] glsl: avoid quadratic behavior during preprocessing

2017-08-26 Thread Nicolai Hähnle
Hi all, The GLSL preprocessor operates by successively appending preprocessed pieces to a string via ralloc_str_append and friends. Each of these functions calls realloc() every time it is used, which is potentially quadratic behavior. This doesn't seem to be a problem usually because the system

[Mesa-dev] Question about implementing viewport transfer and const load in nir

2017-08-26 Thread Qiang Yu
Hi guys, When working on lima gp compiler, I come across two problems about inserting extra uniform and instructions in nir for the driver and don't know where's the right place to do it. So I'd like to hear your opinion and if there's other driver already did so. 1. viewport transfer lima gp

Re: [Mesa-dev] [PATCH 00/47] WIP: fp64 support for r600g

2017-08-26 Thread Marc Dietrich
Am Freitag, 25. August 2017, 11:25:02 CEST schrieb Marc Dietrich: > Am Donnerstag, 24. August 2017, 16:39:58 CEST schrieben Sie: > > On 24 August 2017 at 15:26, Marc Dietrich wrote: > > > Hi Elie, > > > > > > Am Mittwoch, 23. August 2017, 13:07:30 CEST schrieb Elie Tournier: > >

[Mesa-dev] [Bug 101851] [regression] libEGL_common.a undefined reference to '__gxx_personality_v0'

2017-08-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101851 --- Comment #8 from James Harvey --- Hi Emil, I applied your patch against mesa-17.2.0_rc5 on gentoo, it fixed the build failure for me. I did a quick test with eglgears on both X11 and wayland and didn't see any

[Mesa-dev] [Bug 101851] [regression] libEGL_common.a undefined reference to '__gxx_personality_v0'

2017-08-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=101851 --- Comment #7 from Emil Velikov --- (In reply to Steve Arnold from comment #6) > I think one of the main problems is libtool failing to pass flags specified > by the user; note in the previous comment #5 it fails to

Re: [Mesa-dev] [PATCH 1/2] util: inline u_vector.c within the header

2017-08-26 Thread Emil Velikov
On 25 August 2017 at 21:20, Emil Velikov wrote: > From: Emil Velikov > > Inlining the implementation does not cause additional overhead in > terms of build time while the binary is increased only marginally (~1k) > > At the same time the

[Mesa-dev] [PATCH] gallium/docs: fix a typo

2017-08-26 Thread Gwan-gyeong Mun
Signed-off-by: Mun Gwan-gyeong --- src/gallium/docs/source/context.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/docs/source/context.rst b/src/gallium/docs/source/context.rst index 7002802248..6ac45819a6 100644 ---

[Mesa-dev] [Bug 102318] Mesa3D Scons build - LLVM 5.0 not supported

2017-08-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102318 Alex Granni changed: What|Removed |Added CC|

[Mesa-dev] [Bug 102318] Mesa3D Scons build - LLVM 5.0 not supported

2017-08-26 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=102318 Alex Granni changed: What|Removed |Added CC|

Re: [Mesa-dev] [PATCH] st/query: init result data with 0

2017-08-26 Thread Karol Herbst
On Sat, Aug 26, 2017 at 3:36 AM, Ilia Mirkin wrote: > On Fri, Aug 25, 2017 at 8:23 PM, Karol Herbst wrote: >> On Sat, Aug 26, 2017 at 1:38 AM, Ilia Mirkin wrote: >>> On Fri, Aug 25, 2017 at 7:37 PM, Karol Herbst

Re: [Mesa-dev] [PATCH] intel/compiler: Cast reg types explicitly

2017-08-26 Thread Pohjolainen, Topi
On Sat, Aug 26, 2017 at 02:21:44AM -0400, Matt Turner wrote: > Kind of a stupid false-positive as far as Coverity goes, but > > Reviewed-by: Matt Turner Yeah, I had mixed feelings writing the patch. Thanks! ___ mesa-dev mailing

Re: [Mesa-dev] [PATCH] intel/compiler: Cast reg types explicitly

2017-08-26 Thread Matt Turner
Kind of a stupid false-positive as far as Coverity goes, but Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev