[Mesa-dev] [PATCH mesa 3/9] radv: Add KHR_display extension to radv [v4]

2018-06-11 Thread Keith Packard
This adds support for the KHR_display extension to the radv Vulkan driver. The driver now attempts to open the master DRM node when the KHR_display extension is requested so that the common winsys code can perform the necessary operations. v2: * Simplify addition of

[Mesa-dev] [PATCH mesa 2/9] anv: Add KHR_display extension to anv [v5]

2018-06-11 Thread Keith Packard
This adds support for the KHR_display extension to the anv Vulkan driver. The driver now attempts to open the master DRM node when the KHR_display extension is requested so that the common winsys code can perform the necessary operations. v2: Make sure primary fd is usable When

[Mesa-dev] [PATCH mesa 7/9] vulkan: Add EXT_acquire_xlib_display [v3]

2018-06-11 Thread Keith Packard
This extension adds the ability to borrow an X RandR output for temporary use directly by a Vulkan application. For DRM, we use the Linux resource leasing mechanism. v2: Clean up xlib_lease detection * Use separate temporary '_xlib_lease' variable to hold the option

[Mesa-dev] [PATCH mesa 6/9] radv: Add EXT_direct_mode_display to radv driver

2018-06-11 Thread Keith Packard
Add support for the EXT_direct_mode_display extension. This just provides the vkReleaseDisplayEXT function. Signed-off-by: Keith Packard --- src/amd/vulkan/radv_extensions.py | 1 + src/amd/vulkan/radv_wsi_display.c | 11 +++ 2 files changed, 12 insertions(+) diff --git

[Mesa-dev] [PATCH mesa 4/9] vulkan: Add EXT_direct_mode_display [v2]

2018-06-11 Thread Keith Packard
Add support for the EXT_direct_mode_display extension. This just provides the vkReleaseDisplayEXT function. v2: Adopt Jason Ekstrand's coding conventions Declare variables at first use, eliminate extra whitespace between types and names. Wrap lines to 80 columns.

[Mesa-dev] [PATCH mesa 8/9] anv: Add EXT_acquire_xlib_display to anv driver [v3]

2018-06-11 Thread Keith Packard
This extension adds the ability to borrow an X RandR output for temporary use directly by a Vulkan application to the anv driver. v2: Simplify addition of VK_USE_PLATFORM_XLIB_XRANDR_KHR to vulkan_wsi_args Suggested-by: Eric Engestrom v3: Add extension to list

[Mesa-dev] [Bug 106881] glUniform4fv does not work

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106881 --- Comment #3 from Tapani Pälli --- IMO this looks like a shader cache issue that got fixed by following commit. Please pull the latest Mesa and test again. --- 8< --- commit e266b320590ebbeadf7c98b0b493d89886534ccb Author: Jordan Justen

[Mesa-dev] [PATCH mesa 1/9] vulkan: Add KHR_display extension using DRM [v8]

2018-06-11 Thread Keith Packard
This adds support for the KHR_display extension support to the vulkan WSI layer. Driver support will be added separately. v2: * fix double ;; in wsi_common_display.c * Move mode list from wsi_display to wsi_display_connector * Fix scope for wsi_display_mode

[Mesa-dev] [PATCH mesa 0/0] Vulkan: Add DRM lease support

2018-06-11 Thread Keith Packard
Here's an updated patch series for DRM lease support using KHR_display and other standard Vulkan extensions. This series incorporates review from Eric Engestrom and Jason Ekstrom. Thanks to both of them! -keith ___ mesa-dev mailing list

[Mesa-dev] [PATCH mesa 9/9] radv: Add EXT_acquire_xlib_display to radv driver [v2]

2018-06-11 Thread Keith Packard
This extension adds the ability to borrow an X RandR output for temporary use directly by a Vulkan application to the radv driver. v2: Simplify addition of VK_USE_PLATFORM_XLIB_XRANDR_KHR to vulkan_wsi_args Suggested-by: Eric Engestrom Signed-off-by: Keith Packard ---

Re: [Mesa-dev] [PATCH mesa] add project README

2018-06-11 Thread Jason Ekstrand
On Mon, Jun 11, 2018 at 9:21 AM, Dylan Baker wrote: > Quoting Eric Engestrom (2018-06-11 02:10:37) > > On Friday, 2018-06-08 10:14:58 -0700, Dylan Baker wrote: > > > Quoting Jason Ekstrand (2018-06-08 10:04:50) > > > > On Fri, Jun 8, 2018 at 9:27 AM, Eric Engestrom < > eric.engest...@intel.com>

[Mesa-dev] [PATCH] radv: update the ZRANGE_PRECISION value for the TC-compat bug

2018-06-11 Thread Samuel Pitoiset
On GFX8+, there is a bug that affects TC-compatible depth surfaces when the ZRange is not reset after LateZ kills pixels. The workaround is to always set DB_Z_INFO.ZRANGE_PRECISION to match the last fast clear value. Because the value is set to 1 by default, we only need to update it when

[Mesa-dev] [PATCH v2 4/6] meson: Add support for ppc assembly/optimizations

2018-06-11 Thread Dylan Baker
v2: - Use -mpower8-vector in compiler test for altivec - rename altivec option to power8 - reword power8 option description to be more clear, originally I had made it a boolean, but replaced it with an auto option. Signed-off-by: Dylan Baker --- meson.build | 31

[Mesa-dev] [PATCH v2 5/6] meson: Make use of optional modules

2018-06-11 Thread Dylan Baker
meson 0.43 gained support for optional modules, which clover wold like to use. Since we require 0.44.1 now we can rely on them being available for clover. compile tested only. Signed-off-by: Dylan Baker --- meson.build | 15 --- 1 file changed, 12 insertions(+), 3 deletions(-)

[Mesa-dev] [PATCH v2 6/6] meson: remove a bunch of out of date TODO's

2018-06-11 Thread Dylan Baker
Some of these are done already, some of them are things we're not going to do, like have a toggle for GLX_TLS. v2: - Don't remove USE_MGL_NAMESPACE or with_glx_direct Signed-off-by: Dylan Baker --- meson.build | 8 src/egl/meson.build | 2 -- src/gbm/meson.build | 2 -- 3

Re: [Mesa-dev] [PATCH mesa] add project README

2018-06-11 Thread Eric Engestrom
On Monday, 2018-06-11 09:42:08 -0700, Jason Ekstrand wrote: > On Mon, Jun 11, 2018 at 9:21 AM, Dylan Baker wrote: > > > Quoting Eric Engestrom (2018-06-11 02:10:37) > > > On Friday, 2018-06-08 10:14:58 -0700, Dylan Baker wrote: > > > > Quoting Jason Ekstrand (2018-06-08 10:04:50) > > > > > On

Re: [Mesa-dev] [PATCH v2 1/6] meson: move cc and cpp definitions to top of main meson.build

2018-06-11 Thread Matt Turner
Series looks good to me. Compile tested on ppc64 and ppc64le and confirmed that the POWER8 intrinsics are enabled only on ppc64le. Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

[Mesa-dev] [PATCH v2 2/6] meson: Set include dirs for asm

2018-06-11 Thread Dylan Baker
v2: - split this from the next patch - Only include x86-64 and not x86 when buiding x86_64 Signed-off-by: Dylan Baker --- src/mesa/meson.build | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/mesa/meson.build b/src/mesa/meson.build index

[Mesa-dev] [PATCH v2 3/6] meson: Add support for SPARC assembly

2018-06-11 Thread Dylan Baker
Not tested at all (not even compiled), just a blind port from autotools. Signed-off-by: Dylan Baker --- meson.build| 5 + src/mapi/glapi/meson.build | 3 ++- src/mesa/meson.build | 8 +++- 3 files changed, 14 insertions(+), 2 deletions(-) diff --git a/meson.build

[Mesa-dev] [PATCH v2 1/6] meson: move cc and cpp definitions to top of main meson.build

2018-06-11 Thread Dylan Baker
This just makes using cc and cpp easier. v2: - Add this patch to fix altivec --- meson.build | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meson.build b/meson.build index 160bbfa30ba..16866d77ed3 100644 --- a/meson.build +++ b/meson.build @@ -29,6 +29,9 @@ project(

[Mesa-dev] [Bug 106810] ProgramBinary does not switch program correctly when using transform feedback

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106810 Jordan Justen changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Mesa-dev] [Bug 106877] The game Rise of the Tomb Raider lead to GPU hang when I try in same place jump into the hole.

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106877 --- Comment #3 from Bas Nieuwenhuizen --- Any indication to devs trying to get to the same spot for testing, what level this is? -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the

[Mesa-dev] [PATCH] mesa/st/nir: fix driver_location for arrays of image/sampler

2018-06-11 Thread Rob Clark
We can have arrays of images or samplers. But I forgot to handle that case long ago. Suprised no one complained yet. Signed-off-by: Rob Clark --- src/mesa/state_tracker/st_glsl_to_nir.cpp | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git

[Mesa-dev] [Bug 106893] Potential mem leak with radv

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106893 Bug ID: 106893 Summary: Potential mem leak with radv Product: Mesa Version: git Hardware: Other OS: All Status: NEW Severity: normal Priority:

Re: [Mesa-dev] [PATCH mesa 01/21] vulkan: Add KHR_display extension using DRM [v4]

2018-06-11 Thread Keith Packard
Eric Engestrom writes: > I just pushed it; your `if (result != VK_SUCCESS)` should now just be > `goto fail;` :) Yup, I've update my drm-lease branch to match. -- -keith signature.asc Description: PGP signature ___ mesa-dev mailing list

[Mesa-dev] RFC about anv change that should be applicable to radv

2018-06-11 Thread Mauro Rossi
Hi Bas, commit [1] removed a check on 'supported' attribute in src/intel/vulkan/anv_entrypoints_gen.py Should the check on 'supported' attribute be removed also in src/amd/vulkan/radv_entrypoints_gen.py ? Thanks for your feedback Mauro [1]

[Mesa-dev] [PATCH] intel/compiler: Properly consider UBO loads that cross 32B boundaries.

2018-06-11 Thread Kenneth Graunke
The UBO push analysis pass incorrectly assumed that all values would fit within a 32B chunk, and only recorded a bit for the 32B chunk containing the starting offset. For example, if a UBO contained the following, tightly packed: vec4 a; // [0, 16) float b; // [16, 20) vec4 c; // [20,

[Mesa-dev] [Bug 106836] Out of bounds array access in FindProcIndex

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106836 Yogish Kulkarni changed: What|Removed |Added CC||kyle.brenne...@gmail.com --- Comment

[Mesa-dev] [PATCH] mesa: enable EXT_render_snorm extension

2018-06-11 Thread Tapani Pälli
Patch sets additional formats renderable and enables the extension when OpenGL ES 3.1 is supported. Signed-off-by: Tapani Pälli --- src/mesa/main/extensions_table.h | 1 + src/mesa/main/fbobject.c | 20 +++- src/mesa/main/glformats.c| 9 + 3 files

Re: [Mesa-dev] [PATCH mesa] add project README

2018-06-11 Thread Eric Engestrom
On Friday, 2018-06-08 10:14:58 -0700, Dylan Baker wrote: > Quoting Jason Ekstrand (2018-06-08 10:04:50) > > On Fri, Jun 8, 2018 at 9:27 AM, Eric Engestrom > > wrote: > > > > On Friday, 2018-06-08 09:06:06 -0700, Jason Ekstrand wrote: > > > On Fri, Jun 8, 2018 at 8:57 AM, Eric Engestrom

[Mesa-dev] [Bug 106877] The game Rise of the Tomb Raider lead to GPU hang when I try in same place jump into the hole.

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106877 Samuel Pitoiset changed: What|Removed |Added Component|Drivers/Gallium/radeonsi|Drivers/Vulkan/radeon QA

[Mesa-dev] [Bug 106595] [RADV] Rendering distortions only when MSAA is enabled

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106595 --- Comment #11 from Samuel Pitoiset --- You have to grab and build renderdoc from https://github.com/baldurk/renderdoc Then, you can do "export ENABLE_VULKAN_RENDERDOC_CAPTURE=1", start the game and uses F12 for capturing a trace. -- You

[Mesa-dev] [Bug 106877] The game Rise of the Tomb Raider lead to GPU hang when I try in same place jump into the hole.

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106877 --- Comment #2 from Samuel Pitoiset --- Can you try to reproduce the issue with latest mesa trunk? -- You are receiving this mail because: You are the assignee for the bug. You are the QA Contact for the

[Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v3)

2018-06-11 Thread Gert Wollny
This warning is misleading: When a struct is partially initialized without assigning to the structure members by name, then the remaining fields will be zeroed out, and this warning will be issued (if enabled). If, on the other hand, the partial initialization is done by assigning to named

[Mesa-dev] [PATCH 24/24] gallium/aux/os: Fix warning/handle failure to read from /proc/self/cmdline

2018-06-11 Thread Gert Wollny
Handle the failure to read from /proc/self/cmdline by printing an error message and fix the -Wsign-compare warning: In file included from ./util/u_memory.h:39:0, from os/os_process.c:31: os/os_process.c: In function 'os_get_command_line': os/os_process.c:140:16: warning:

Re: [Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v2)

2018-06-11 Thread Gert Wollny
Am Freitag, den 08.06.2018, 16:28 +0100 schrieb Emil Velikov: > On 8 June 2018 at 12:02, Gert Wollny wrote: > > From: Gert Wollny > > > > This warning is misleading: When a struct is partially initialized > > without > > assigning to the struture members by name, then the un-initialized > >

Re: [Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v3)

2018-06-11 Thread Eric Engestrom
On Monday, 2018-06-11 11:33:20 +0200, Gert Wollny wrote: > This warning is misleading: When a struct is partially initialized without > assigning to the structure members by name, then the remaining fields > will be zeroed out, and this warning will be issued (if enabled). If, on the > other hand,

[Mesa-dev] [PATCH] nv50/ir: fix TargetNVC0::insnCanLoadOffset()

2018-06-11 Thread Rhys Perry
Previously, TargetNVC0::insnCanLoadOffset() returned whether the offset could be set to a specific value. The IndirectPropagation pass expected it to return whether the offset could be increased. Signed-off-by: Rhys Perry --- src/gallium/drivers/nouveau/codegen/nv50_ir_target_nvc0.cpp | 1 + 1

[Mesa-dev] [PATCH 0/6] Fix Various Compilation Issues With Bindless

2018-06-11 Thread Rhys Perry
Ping to those who seem appropriate for this patch in case it was forgotten or missed. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 7/8] radeonsi: always put persistent buffers into GTT on radeon

2018-06-11 Thread Michel Dänzer
On 2018-06-09 05:16 AM, Marek Olšák wrote: > From: Marek Olšák > > This improves performance for certain games. > > Cc: 18.1 > --- > src/gallium/drivers/radeonsi/si_buffer.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) > > diff --git a/src/gallium/drivers/radeonsi/si_buffer.c

[Mesa-dev] [Bug 106881] glUniform4fv does not work

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106881 xinghua changed: What|Removed |Added Assignee|intel-3d-bugs@lists.freedes |mesa-dev@lists.freedesktop.

Re: [Mesa-dev] [PATCH] wayland/egl: initialize window surface size to window size

2018-06-11 Thread Pekka Paalanen
On Tue, 05 Jun 2018 19:22:47 +0200 "Juan A. Suarez Romero" wrote: > On Tue, 2018-06-05 at 12:41 +0100, Daniel Stone wrote: > > Hi Juan, > > > > On 5 June 2018 at 09:51, Juan A. Suarez Romero wrote: > > > > > On Mon, 2018-06-04 at 13:22 +0100, Daniel Stone wrote: > > > > Yes, that's

[Mesa-dev] [Bug 106881] glUniform4fv does not work

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106881 --- Comment #1 from Lionel Landwerlin --- This test passes on Firefox, could this be a chrome bug? -- You are receiving this mail because: You are the QA Contact for the bug. You are the assignee for the

[Mesa-dev] [Bug 106881] glUniform4fv does not work

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106881 Lionel Landwerlin changed: What|Removed |Added Status|NEW |NEEDINFO --- Comment #2 from

[Mesa-dev] [Bug 106836] Out of bounds array access in FindProcIndex

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106836 Eric Engestrom changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

[Mesa-dev] [PATCH] nv50/ir: handle SHLADD in IndirectPropagation

2018-06-11 Thread Rhys Perry
An alternative solution to the problem fixed in 0bd83d0 ("nv50/ir: move LateAlgebraicOpt to the very end"). Should be useful in the future and seems to make dolphin ubershaders a bit smaller. total instructions in shared programs : 226722 -> 226464 (-0.11%) total gprs used in shared programs:

[Mesa-dev] [PATCH mesa] i965: fix resource leak

2018-06-11 Thread Eric Engestrom
From: Eric Engestrom v2: intel_miptree_release() already takes care of the planes, no need to hand-code the loop (Lionel) Coverity ID: 1436909 Cc: Lionel Landwerlin Fixes: 3352f2d746d3959b22ca4 "i965: Create multiple miptrees for planar YUV images" Signed-off-by: Eric Engestrom ---

[Mesa-dev] [PATCH mesa v2] i965: fix resource leak

2018-06-11 Thread Eric Engestrom
From: Eric Engestrom v2: intel_miptree_release() already takes care of the planes, no need to hand-code the loop (Lionel) Coverity ID: 1436909 Cc: Lionel Landwerlin Fixes: 3352f2d746d3959b22ca4 "i965: Create multiple miptrees for planar YUV images" Signed-off-by: Eric Engestrom ---

Re: [Mesa-dev] [PATCH mesa 2/3] include: sync khrplatform.h from Khronos

2018-06-11 Thread Eric Engestrom
NAK'ing my own patch, this is causing the symbols to no longer be exported; I'll look at this, but for now let's just ignore this patch :) On Sunday, 2018-06-10 09:35:52 +0100, Eric Engestrom wrote: > Signed-off-by: Eric Engestrom > --- > include/KHR/khrplatform.h | 20 >

Re: [Mesa-dev] [PATCH mesa v2] i965: fix resource leak

2018-06-11 Thread Lionel Landwerlin
On 11/06/18 14:22, Eric Engestrom wrote: From: Eric Engestrom v2: intel_miptree_release() already takes care of the planes, no need to hand-code the loop (Lionel) Coverity ID: 1436909 Cc: Lionel Landwerlin Fixes: 3352f2d746d3959b22ca4 "i965: Create multiple miptrees for planar YUV

Re: [Mesa-dev] [PATCH 7/8] radeonsi: always put persistent buffers into GTT on radeon

2018-06-11 Thread Marek Olšák
On Mon, Jun 11, 2018 at 6:54 AM, Michel Dänzer wrote: > On 2018-06-09 05:16 AM, Marek Olšák wrote: > > From: Marek Olšák > > > > This improves performance for certain games. > > > > Cc: 18.1 > > --- > > src/gallium/drivers/radeonsi/si_buffer.c | 6 +- > > 1 file changed, 5 insertions(+),

Re: [Mesa-dev] [PATCH 0/6] Fix Various Compilation Issues With Bindless

2018-06-11 Thread Marek Olšák
The series is OK with me, even though radeonsi can't support the new opcodes. Marek On Mon, Jun 11, 2018 at 6:24 AM, Rhys Perry wrote: > Ping to those who seem appropriate for this patch in case it was forgotten > or missed. > ___ mesa-dev mailing

[Mesa-dev] [PATCH] nir: add pass to move load_const

2018-06-11 Thread Rob Clark
Run this pass late (after opt loop) to move load_const instructions back into the basic blocks which use the result, in cases where a load_const is only consumed in a single block. This helps reduce register usage in cases where the backend driver cannot lower the load_const to a uniform. v2:

[Mesa-dev] [Bug 106843] Cannot build osmesa with GLES support using Scons and MSVC

2018-06-11 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106843 Alex Granni changed: What|Removed |Added CC||jfons...@vmware.com -- You are

Re: [Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v3)

2018-06-11 Thread Gert Wollny
Am Montag, den 11.06.2018, 11:05 +0100 schrieb Eric Engestrom: > On Monday, 2018-06-11 11:33:20 +0200, Gert Wollny wrote: > > This warning is misleading: When a struct is partially initialized > > without > > assigning to the structure members by name, then the remaining > > fields > > will be

Re: [Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v3)

2018-06-11 Thread Dylan Baker
Quoting Gert Wollny (2018-06-11 09:05:52) > Am Montag, den 11.06.2018, 11:05 +0100 schrieb Eric Engestrom: > > On Monday, 2018-06-11 11:33:20 +0200, Gert Wollny wrote: > > > This warning is misleading: When a struct is partially initialized > > > without > > > assigning to the structure members by

Re: [Mesa-dev] [PATCH mesa] add project README

2018-06-11 Thread Dylan Baker
Quoting Eric Engestrom (2018-06-11 02:10:37) > On Friday, 2018-06-08 10:14:58 -0700, Dylan Baker wrote: > > Quoting Jason Ekstrand (2018-06-08 10:04:50) > > > On Fri, Jun 8, 2018 at 9:27 AM, Eric Engestrom > > > wrote: > > > > > > On Friday, 2018-06-08 09:06:06 -0700, Jason Ekstrand wrote: >

[Mesa-dev] [PATCH 01/24] configure.ac: Add CFLAG -Wno-missing-field-initializers (v4)

2018-06-11 Thread Gert Wollny
This warning is misleading: When a struct is partially initialized without assigning to the structure members by name, then the remaining fields will be zeroed out, and this warning will be issued (if enabled). If, on the other hand, the partial initialization is done by assigning to named

Re: [Mesa-dev] [PATCH 4/4] meson: remove a bunch of out of date TODO's

2018-06-11 Thread Dylan Baker
Quoting Eric Anholt (2018-06-08 11:29:41) > Dylan Baker writes: > > > [ Unknown signature status ] > > Quoting Eric Anholt (2018-06-07 14:29:19) > >> Dylan Baker writes: > >> > >> > Some of these are done already, some of them are things we're not going > >> > to do, like have a toggle for

<    1   2