[Mesa-dev] [PATCH 1/4] glxinfo/wglinfo: remove print_shader_limits() code

2018-03-05 Thread Brian Paul
And add queries of GL 2.0 limits. All the VS, FS, GS limits which were reported with print_shader_limits() are also covered by the GL 2.0 and 3.2 queries. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105285 --- src/xdemos/glinfo_common.c | 89

[Mesa-dev] [PATCH 3/4] glxinfo/wglinfo: print (110) instead of empty line

2018-03-05 Thread Brian Paul
The GL_SHADING_LANGUAGE_VERSION query returns an empty string for GLSL 1.10. Instead of printing an empty line, print (110). Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105285 --- src/xdemos/glinfo_common.c | 11 +-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git

[Mesa-dev] [PATCH 2/4] glxinfo/wglinfo: fix VP/FP strings, indentation

2018-03-05 Thread Brian Paul
Print extensions string instead of program target. Use less indentation to match other sections. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=105285 --- src/xdemos/glinfo_common.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/xdemos/glinfo_common.c

[Mesa-dev] [PATCH 4/4] glxinfo/wglinfo: improve GL_ARB_imaging query code

2018-03-05 Thread Brian Paul
Print GL_MAX_CONVOLUTION_WIDTH, HEIGHT on separate lines. Print GL_MAX_COLOR_MATRIX_STACK_DEPTH in same section. --- src/xdemos/glinfo_common.c | 13 - 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/xdemos/glinfo_common.c b/src/xdemos/glinfo_common.c index

[Mesa-dev] [Bug 105285] Mesa-utils -8.4 - glxinfo report has a blank value in GL_NUM_SHADING_LANGUAGE_VERSIONS subsection and also the aligniment below 4.3 seems not correct

2018-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105285 --- Comment #5 from Brian Paul --- What program is that in your screenshots? How does it relate to glxinfo -l? With my NVIDIA GPU, I see GL_ARB_imaging both in the core and compat profiles. I've got a few new patches for

[Mesa-dev] [Bug 100259] [EGL] [GBM] undefined reference to `gbm_bo_create_with_modifiers'

2018-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100259 --- Comment #21 from Roman Gilg --- I have run into the same problem when trying to compile mesa master on KDE Neon (Ubuntu 16.04) in the gallium dri targets. What I noticed: in the build directory at

[Mesa-dev] [PATCH] vulkan: do not expose surface/swapchain extensions on Android

2018-03-05 Thread Tapani Pälli
On Android surface/swapchain extensions are implemented by the loader. Patch modifies both anv and radv extension scripts disabling currently exposed ones. See also earlier commit 9f763c1f9b. Signed-off-by: Tapani Pälli --- src/amd/vulkan/radv_extensions.py | 4 ++--

[Mesa-dev] [PATCH] gallium: work around libtool relink issue for libdrm

2018-03-05 Thread Roman Gilg
This is similar to commit 90633079. libtool links first to system directories instead of custom locations of libdrm on relinking. Since a more recent libdrm version than the one provided by the system is often needed when compiling mesa, make sure this works by putting libdrm in front. See also:

Re: [Mesa-dev] [PATCH] gallium/aux/hud: Avoid possible buffer overflow

2018-03-05 Thread Marek Olšák
Pushed, thanks! Marek On Wed, Feb 28, 2018 at 8:50 AM, Gert Wollny wrote: > Limit the length of acceptable cpu names for use in hud_get_num_cpufreq > in order to avoid a buffer overflow later in add_object when this name > is copied into cpufreq_info::name. > > Bugzilla:

[Mesa-dev] [Bug 105344] Installation bug by video card modules conflict (nvidia GTX 950 M)

2018-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105344 --- Comment #3 from Yuri Gelsleichter --- Dear all, As the https://nouveau.freedesktop.org/wiki/Bugs/ I boot without any modeset lines. The graphics did not show up. But terminal yes. So run: "log_buf_len=1M" then

Re: [Mesa-dev] [PATCH v2] mesa: add glsl version query (v4)

2018-03-05 Thread Brian Paul
On 03/05/2018 06:14 AM, Emil Velikov wrote: On 13 February 2018 at 20:27, Brian Paul wrote: On 02/13/2018 11:10 AM, Vadym Shovkoplias wrote: Add support for GL_NUM_SHADING_LANGUAGE_VERSIONS and glGetStringi for GL_SHADING_LANGUAGE_VERSION v2: - Combine similar

Re: [Mesa-dev] [PATCH v3] clover: Allow overriding platform/device version numbers

2018-03-05 Thread Emil Velikov
On 4 March 2018 at 15:13, Aaron Watry wrote: > Useful for testing API, builtin library, and device completeness of > not-yet-supported versions. > > Signed-off-by: Aaron Watry > (v1) Reviewed-by: Pierre Moreau > (v2) Reviewed-by:

Re: [Mesa-dev] [Mesa-stable] [PATCH v2] anv: Don't expose VK_KHX_multiview on android.

2018-03-05 Thread Emil Velikov
On 5 March 2018 at 12:07, Tapani Pälli wrote: > > > On 03/05/2018 01:46 PM, Emil Velikov wrote: >> >> Hi Tapani, >> >> On 5 March 2018 at 08:57, Tapani Pälli wrote: >>> >>> Just like commit 2ffe395 does for radv. >>> >>> Fixes following dEQP test

Re: [Mesa-dev] [PATCH] travis: keep meson version below 0.45.0

2018-03-05 Thread Eric Engestrom
On Monday, 2018-03-05 17:25:36 +0200, Andres Gomez wrote: > Recently Meson upgraded to 0.45.0 and it needs python 3.5+, which is > not available in Trusty. I was looking at this issue right now, thanks for beating me to it :) Reviewed-by: Eric Engestrom > > Cc: Eric

[Mesa-dev] [Bug 105344] Installation bug by video card modules conflict (nvidia GTX 950 M)

2018-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105344 --- Comment #2 from Emil Velikov --- To elaborate a bit on what Ilia said: - using foo.modeset=0 - disables the graphics driver foo - nomodeset is equivalent to nouveau.modeset=0 i915.modeset=0 nvidia-drm.modeset=0

Re: [Mesa-dev] [PATCH] travis: keep meson version below 0.45.0

2018-03-05 Thread Emil Velikov
On 5 March 2018 at 15:25, Andres Gomez wrote: > Recently Meson upgraded to 0.45.0 and it needs python 3.5+, which is > not available in Trusty. > > Cc: Eric Engestrom > Cc: Dylan Baker > Cc: Emil Velikov

[Mesa-dev] [PATCH] travis: keep meson version below 0.45.0

2018-03-05 Thread Andres Gomez
Recently Meson upgraded to 0.45.0 and it needs python 3.5+, which is not available in Trusty. Cc: Eric Engestrom Cc: Dylan Baker Cc: Emil Velikov Cc: Jon Turney Signed-off-by: Andres Gomez

Re: [Mesa-dev] [PATCH 05/29] intel/isl: Add a helper for inverting swizzles

2018-03-05 Thread Jason Ekstrand
On March 5, 2018 00:50:26 "Pohjolainen, Topi" wrote: On Sun, Mar 04, 2018 at 07:10:01AM -0600, Jason Ekstrand wrote: On March 3, 2018 10:50:43 "Pohjolainen, Topi" wrote: >On Thu, Mar 01, 2018 at 03:04:14PM -0800, Jason Ekstrand

Re: [Mesa-dev] [Mesa-stable] [PATCH] [RFC] gallivm: Use new LLVM fast-math-flags API

2018-03-05 Thread Emil Velikov
On 3 March 2018 at 15:40, Marek Olšák wrote: > On Fri, Mar 2, 2018 at 1:38 PM, Emil Velikov wrote: >> Hi Alex, >> >> On 28 February 2018 at 15:25, Alex Smith wrote: >>> Hi, >>> >>> Could this (commit

Re: [Mesa-dev] [PATCH] dri_util: fallback to core with drivers not supporting compat for 3.1

2018-03-05 Thread Emil Velikov
Hi Andres, On 2 March 2018 at 22:55, Andres Gomez wrote: > 2599b92eb97 changed Mesa's behavior to allow Compatiblity profile with > 3.1, and fail when the driver doesn't implement it, if the Core > profile is not requested by applications. > > Formerly, when requesting a 3.1

Re: [Mesa-dev] [PATCH mesa] gbm: give a name to rgba fields

2018-03-05 Thread Daniel Stone
On 5 March 2018 at 14:40, Eric Engestrom wrote: > Note: `gbm_dri_visuals_table` doesn't need any modification, as the > channel order doesn't change, so `rgba_mask = { r, g, b, a }` still > works. Yeah, this is a very definite and obvious improvement. Thanks Eric!

[Mesa-dev] [PATCH mesa] gbm: give a name to rgba fields

2018-03-05 Thread Eric Engestrom
Signed-off-by: Eric Engestrom --- Note: `gbm_dri_visuals_table` doesn't need any modification, as the channel order doesn't change, so `rgba_mask = { r, g, b, a }` still works. --- src/egl/drivers/dri2/platform_drm.c | 16

[Mesa-dev] [Bug 105344] Installation bug by video card modules conflict (nvidia GTX 950 M)

2018-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105344 --- Comment #1 from Ilia Mirkin --- Unfortunately there is no actionable information. nouveau.modeset=0 disables nouveau nomodeset disables all kms drivers We'd need to see a log of what happens when nouveau is not

[Mesa-dev] [Bug 105344] Installation bug by video card modules conflict (nvidia GTX 950 M)

2018-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=105344 Bug ID: 105344 Summary: Installation bug by video card modules conflict (nvidia GTX 950 M) Product: Mesa Version: unspecified Hardware: x86-64 (AMD64) OS:

Re: [Mesa-dev] [PATCH v2] mesa: add glsl version query (v4)

2018-03-05 Thread Emil Velikov
On 13 February 2018 at 20:27, Brian Paul wrote: > On 02/13/2018 11:10 AM, Vadym Shovkoplias wrote: >> >> Add support for GL_NUM_SHADING_LANGUAGE_VERSIONS >> and glGetStringi for GL_SHADING_LANGUAGE_VERSION >> >> v2: >>- Combine similar functionality into >>

Re: [Mesa-dev] [PATCH] dri_util: when overriding, always reset the core version

2018-03-05 Thread Tapani Pälli
Hi; On 03/02/2018 03:25 PM, Andres Gomez wrote: This way we won't fail when validating just because we may have a non overriden core version that is lower than the requested one, even when the compat version is high enough. Do I understand correctly that this happens because when version

Re: [Mesa-dev] [PATCH] anv/entrypoints: VkGetDeviceProcAddr returns NULL for core instance commands

2018-03-05 Thread Emil Velikov
Hi Iago, Top level questions: I think this and the original commit should go to stable right? The dispatch in 17.3 is very different making, yet 18.0 should be perfectly fine. Mildly related - anv is missing a special case for following three extensions. Should we port those over from radv?

Re: [Mesa-dev] [Mesa-stable] [PATCH v2] anv: Don't expose VK_KHX_multiview on android.

2018-03-05 Thread Tapani Pälli
On 03/05/2018 01:46 PM, Emil Velikov wrote: Hi Tapani, On 5 March 2018 at 08:57, Tapani Pälli wrote: Just like commit 2ffe395 does for radv. Fixes following dEQP test on i965: dEQP-VK.api.info.android.no_unknown_extensions v2: make it !ANDROID since this

Re: [Mesa-dev] [PATCH] spirv: fix OpSConvert when the source is unsigned

2018-03-05 Thread Samuel Iglesias Gonsálvez
Please ignore this patch. I am going to send a v2 of it, together with a fix for OpUConvert. Thanks, Sam On 05/03/18 11:18, Samuel Iglesias Gonsálvez wrote: > OpSConvert interprets the MSB of the unsigned value as the sign bit and > extends it to the new type. If we want to preserve the value,

Re: [Mesa-dev] [Mesa-stable] [PATCH v2] anv: Don't expose VK_KHX_multiview on android.

2018-03-05 Thread Emil Velikov
Hi Tapani, On 5 March 2018 at 08:57, Tapani Pälli wrote: > Just like commit 2ffe395 does for radv. > > Fixes following dEQP test on i965: >dEQP-VK.api.info.android.no_unknown_extensions > > v2: make it !ANDROID since this extension is not about >

Re: [Mesa-dev] [Mesa-stable] [PATCH] [RFC] gallivm: Use new LLVM fast-math-flags API

2018-03-05 Thread Michel Dänzer
On 2018-03-05 09:51 AM, Alex Smith wrote: > Hi Emil, > > On 2 March 2018 at 18:38, Emil Velikov > wrote: > > Hi Alex, > > On 28 February 2018 at 15:25, Alex Smith >

[Mesa-dev] [PATCH] anv/entrypoints: VkGetDeviceProcAddr returns NULL for core instance commands

2018-03-05 Thread Iago Toral Quiroga
af5f2322d0c64 addressed this for extension commands, but the spec mandates this behavior also for core API commands. From the Vulkan spec, Table 2. vkGetDeviceProcAddr behavior: device pnamereturn -- (..)

[Mesa-dev] [PATCH] spirv: fix OpSConvert when the source is unsigned

2018-03-05 Thread Samuel Iglesias Gonsálvez
OpSConvert interprets the MSB of the unsigned value as the sign bit and extends it to the new type. If we want to preserve the value, we need to use OpUConvert opcode. Signed-off-by: Samuel Iglesias Gonsálvez --- src/compiler/spirv/vtn_alu.c | 19 ++- 1

Re: [Mesa-dev] [PATCH] disk cache: Link with -latomic if necessary

2018-03-05 Thread Eric Engestrom
On Sunday, 2018-03-04 00:20:16 +, Mike Lothian wrote: > Hi > > Sorry to be a pain again > > I've just tested this with clang and the 32bit build still fails without > -latomic This fix was for meson, and you're using make here; does it work if you build using meson? First thing is to figure

Re: [Mesa-dev] [PATCH RFC] radeonsi: Disable IEEE_MODE.

2018-03-05 Thread Eric Engestrom
On Saturday, 2018-03-03 18:35:02 -0500, Jan Vesely wrote: > Neither GL nor CL nor SPIRV needs the IEEE handling of sNaNs. > > Signed-off-by: Jan Vesely > --- > This is the 3rd way to handle broken fmin/fmax in clover CL. > It can be worked around in libclc (to not use >

Re: [Mesa-dev] [PATCH] radv: Increase maxDescriptorSet{Uniform, Storage}BuffersDynamic limits

2018-03-05 Thread Alex Smith
I just checked what Rise of the Tomb Raider is using. Maximum it hits for uniform buffers is 15, and 6 for storage buffers. The highest combined total is 15. Alex On 2 March 2018 at 20:11, Bas Nieuwenhuizen wrote: > Hi Alex, > > How many do you need of either type? >

Re: [Mesa-dev] [PATCH v2] anv: Don't expose VK_KHX_multiview on android.

2018-03-05 Thread Samuel Iglesias Gonsálvez
Reviewed-by: Samuel Iglesias Gonsálvez On 05/03/18 09:57, Tapani Pälli wrote: > Just like commit 2ffe395 does for radv. > > Fixes following dEQP test on i965: >dEQP-VK.api.info.android.no_unknown_extensions > > v2: make it !ANDROID since this extension is not about >

[Mesa-dev] [PATCH v2] anv: Don't expose VK_KHX_multiview on android.

2018-03-05 Thread Tapani Pälli
Just like commit 2ffe395 does for radv. Fixes following dEQP test on i965: dEQP-VK.api.info.android.no_unknown_extensions v2: make it !ANDROID since this extension is not about surfaces/swapchain CC: 18.0 Signed-off-by: Tapani Pälli

Re: [Mesa-dev] [Mesa-stable] [PATCH] [RFC] gallivm: Use new LLVM fast-math-flags API

2018-03-05 Thread Alex Smith
Hi Emil, On 2 March 2018 at 18:38, Emil Velikov wrote: > Hi Alex, > > On 28 February 2018 at 15:25, Alex Smith > wrote: > > Hi, > > > > Could this (commit 5d61fa4e68b7eb6d481a37efdbb35fdce675a6ad on master) > be > > backported to the 17.3

Re: [Mesa-dev] [PATCH 05/29] intel/isl: Add a helper for inverting swizzles

2018-03-05 Thread Pohjolainen, Topi
On Sun, Mar 04, 2018 at 07:10:01AM -0600, Jason Ekstrand wrote: > On March 3, 2018 10:50:43 "Pohjolainen, Topi" > wrote: > > >On Thu, Mar 01, 2018 at 03:04:14PM -0800, Jason Ekstrand wrote: > >>On Thu, Mar 1, 2018 at 6:49 AM, Pohjolainen, Topi < >

[Mesa-dev] [Bug 100430] [radv] graphical glitches on dolphin emulator

2018-03-05 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=100430 --- Comment #16 from jdr...@gmail.com --- On Arch, with mesa 17.3.6, I still have the same glitches with vulkan *On mariokart, the intro is dark (instead of white in all other games) *On mariokart, there's a white square on the left top part of

[Mesa-dev] [PATCH] anv: Don't expose VK_KHX_multiview on android.

2018-03-05 Thread Tapani Pälli
Just like commit 2ffe395 does for radv. Fixes following dEQP test on i965: dEQP-VK.api.info.android.no_unknown_extensions CC: 18.0 Signed-off-by: Tapani Pälli --- src/intel/vulkan/anv_extensions.py | 2 +- 1 file changed, 1

<    1   2