Re: [Mesa-dev] [PATCH] gallivm: abort when trying to use non-existing intrinsic

2018-12-20 Thread Jose Fonseca
On 21/12/2018 01:42, srol...@vmware.com wrote: From: Roland Scheidegger Whenever llvm removes an intrinsic (we're using), we're hitting segfaults due to llvm doing calls to address 0 in the jitted code instead. However, Jose figured out we can actually detect this with LLVMGetIntrinsicID(), so

Re: [Mesa-dev] [PATCH] gallivm: don't use pavg.b intrinsic on llvm >= 6.0

2018-12-20 Thread Jose Fonseca
On 21/12/2018 00:25, srol...@vmware.com wrote: From: Roland Scheidegger This intrinsic disppeared with llvm 6.0, using it ends up in segfaults (due to llvm issuing call to NULL address in the jited shaders). Add code doing the same thing as the autoupgrade code in llvm so it can be matched and

Re: [Mesa-dev] [PATCH] llvmpipe: Always return some fence in flush (v2)

2018-12-20 Thread Tomasz Figa
Hi everyone, On Fri, Dec 14, 2018 at 5:17 PM Tomasz Figa wrote: > > If there is no last fence, due to no rendering happening yet, just > create a new signaled fence and return it, to match the expectations of > the EGL sync fence API. > > Fixes random "Could not create sync fence 0x3003" assertio

Re: [Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2018-12-20 Thread Stuart Young
Sorry. Copy-paste decided to send a msg rather than paste into it. On Fri, 21 Dec 2018 at 17:36, Stuart Young wrote: > On Fri, 21 Dec 2018 at 04:18, Eero Tamminen > wrote: > >> On 20.12.2018 4.40, Stuart Young wrote: >> > Could this be reduced this from an error to a warning, with the >> > comm

Re: [Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2018-12-20 Thread Stuart Young
On Fri, 21 Dec 2018 at 04:18, Eero Tamminen wrote: > On 20.12.2018 4.40, Stuart Young wrote: > > Could this be reduced this from an error to a warning, with the > > command-line option suppressing the warning? > > > > Perhaps as well as producing the warning, the build could sleep for say > > 30

[Mesa-dev] [PATCH] gallivm: abort when trying to use non-existing intrinsic

2018-12-20 Thread sroland
From: Roland Scheidegger Whenever llvm removes an intrinsic (we're using), we're hitting segfaults due to llvm doing calls to address 0 in the jitted code instead. However, Jose figured out we can actually detect this with LLVMGetIntrinsicID(), so use this to abort, so we don't have to wonder wha

[Mesa-dev] [Bug 109107] gallium/st/va: change va max_profiles when using Radeon VCN Hardware

2018-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109107 --- Comment #1 from zhoulei --- More details: In function VASupportedProfiles::GetSupportedVAProfiles, https://github.com/chromium/chromium/blob/master/media/gpu/vaapi/vaapi_wrapper.cc#L571 const int max_profiles = vaMaxNumProfiles(va_display_

Re: [Mesa-dev] [PATCH] gallivm: use llvm jit code for decoding s3tc

2018-12-20 Thread Roland Scheidegger
Ahh great find! I tried it out and it works, if it's not an intrinsic it will return 0, otherwise some number (no idea how they are enumerated, but who cares). Roland Am 21.12.18 um 00:56 schrieb Jose Fonseca: > There's an function -- LLVMGetIntrinsicID -- I wonder if we can use it > to trap uns

[Mesa-dev] [PATCH] gallivm: don't use pavg.b intrinsic on llvm >= 6.0

2018-12-20 Thread sroland
From: Roland Scheidegger This intrinsic disppeared with llvm 6.0, using it ends up in segfaults (due to llvm issuing call to NULL address in the jited shaders). Add code doing the same thing as the autoupgrade code in llvm so it can be matched and replaced back with a pavgb. While here, also imp

Re: [Mesa-dev] [PATCH] gallivm: use llvm jit code for decoding s3tc

2018-12-20 Thread Jose Fonseca
There's an function -- LLVMGetIntrinsicID -- I wonder if we can use it to trap unsupported intrinsics? Jose On 20/12/2018 22:09, Roland Scheidegger wrote: Am 20.12.18 um 16:56 schrieb Michel Dänzer: On 2018-12-19 4:51 a.m., srol...@vmware.com wrote: From: Roland Scheidegger This is (much)

[Mesa-dev] MR: anv: don't do partial resolve on layer > 0

2018-12-20 Thread Lionel Landwerlin
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/40 A couple of bugs have been reported on multisampled & multilayered surfaces in Anv. After having found what I thought was a workaround, it turned out to be an actual fix. Please visit the URL above for a full explanation. I also wrot

[Mesa-dev] MR: i965: Enable software support for ARB_gpu_shader_fp64/ARB_gpu_shader_int64

2018-12-20 Thread Matt Turner
https://gitlab.freedesktop.org/mesa/mesa/merge_requests/39 Some upcoming Intel platforms do not have 64-bit type support. This series implements support for ARB_gpu_shader_fp64 and ARB_gpu_shader_int64 via software implementations. To do this we add a .glsl file containing GLSL implementations of

Re: [Mesa-dev] [PATCH] gallivm: use llvm jit code for decoding s3tc

2018-12-20 Thread Roland Scheidegger
Am 20.12.18 um 16:56 schrieb Michel Dänzer: > On 2018-12-19 4:51 a.m., srol...@vmware.com wrote: >> From: Roland Scheidegger >> >> This is (much) faster than using the util fallback. >> (Note that there's two methods here, one would use a cache, similar to >> the existing code (although the cache

[Mesa-dev] [PATCH] st/nine: Enable debug info if NDEBUG is not set

2018-12-20 Thread Axel Davy
We want to have debug info as well if using meson's debugoptimized when ndebug is off. Signed-off-by: Axel Davy --- src/gallium/state_trackers/nine/basetexture9.c | 6 +++--- src/gallium/state_trackers/nine/basetexture9.h | 2 +- src/gallium/state_trackers/nine/nine_debug.h | 10 +-

Re: [Mesa-dev] [PATCH 1/2] vc4: Wire up core pipe_debug_callback

2018-12-20 Thread Rhys Kidd
Awesome, thanks! Apologies that I was unable to get around to looking at your feedback in the intervening period of time. On Thu, Dec 20, 2018 at 2:34 PM Eric Anholt wrote: > Eric Anholt writes: > > > [ Unknown signature status ] > > Rhys Kidd writes: > > > >> Signed-off-by: Rhys Kidd > > > >

Re: [Mesa-dev] [PATCH] EGL/mesa: Initial write up fot MESA_query_driver

2018-12-20 Thread Rob Clark
On Sat, Dec 15, 2018 at 12:27 PM Veluri Mithun wrote: > > Hi Everyone, > > we can obtain DRM device file from eglQueryDeviceStringEXT fun of > EGL_EXT_device_query extension. But, how to retrieve name, configs from that? > > Can we get the name of the matched driver for a particular display from

Re: [Mesa-dev] [PATCH 1/2] vc4: Wire up core pipe_debug_callback

2018-12-20 Thread Eric Anholt
Eric Anholt writes: > [ Unknown signature status ] > Rhys Kidd writes: > >> Signed-off-by: Rhys Kidd > > Does this actually do anything for us, though? Shouldn't we be hooking > up our perf_debug() calls to it? I hooked up perf_debug(), extended the commit messages, and pushed. signature.as

[Mesa-dev] [PATCH] radv: allow secondary command buffers to inherit unknown framebuffers

2018-12-20 Thread Rhys Perry
Fixes: f4e499ec79 ('radv: add initial non-conformant radv vulkan driver') Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107986 Signed-off-by: Rhys Perry --- src/amd/vulkan/radv_cmd_buffer.c | 59 ++-- src/amd/vulkan/radv_meta_clear.c | 8 + src/amd/vulkan

[Mesa-dev] [Bug 107594] [PATCH] fix crosscompilling with meson

2018-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=107594 Dylan Baker changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Mesa-dev] [Bug 109071] meson --wipe results in Exception: "FileNotFoundError: [Errno 2] No such file or directory"

2018-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=109071 Dylan Baker changed: What|Removed |Added Resolution|--- |FIXED Status|NEW

Re: [Mesa-dev] [PATCH] WIP: meson: allow building DRI loaders without a DRI driver

2018-12-20 Thread Dylan Baker
Quoting Emil Velikov (2018-12-20 03:07:43) > On Tue, 18 Dec 2018 at 21:53, Dylan Baker wrote: > > > > Quoting Emil Velikov (2018-12-18 03:09:55) > > > On Mon, 17 Dec 2018 at 22:27, Matt Turner wrote: > > > > > > > > On Mon, Dec 17, 2018 at 2:12 PM Emil Velikov > > > > wrote: > > > > > Additiona

Re: [Mesa-dev] [PATCH] autotools: Deprecate the use of autotools

2018-12-20 Thread Eero Tamminen
Hi, On 20.12.2018 4.40, Stuart Young wrote: Could this be reduced this from an error to a warning, with the command-line option suppressing the warning? Perhaps as well as producing the warning, the build could sleep for say 30 seconds after producing the warning message. This would be notice

Re: [Mesa-dev] [PATCH] radv: compute optimal VM alignment for imported buffers

2018-12-20 Thread Samuel Pitoiset
On 12/20/18 3:30 PM, Bas Nieuwenhuizen wrote: Happy to have this patch, but all descriptions and comments say this is an optimization Can we get some comment that this avoids hangs? Pushed with a comment. Thanks! Otherwise Reviewed-by: Bas Nieuwenhuizen On Thu, Dec 20, 2018 at 3:2

[Mesa-dev] [Bug 35268] initial-exec TLS model breaks dlopen'ed libGL

2018-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=35268 --- Comment #30 from Rich Felker --- Given the lack of response on this issue, I think when I get some time to focus on it again I'll just prepare a patch removing all of the asm dispatch stubs. As noted before, they have no benefits at all on x

Re: [Mesa-dev] [PATCH] gallivm: use llvm jit code for decoding s3tc

2018-12-20 Thread Michel Dänzer
On 2018-12-19 4:51 a.m., srol...@vmware.com wrote: > From: Roland Scheidegger > > This is (much) faster than using the util fallback. > (Note that there's two methods here, one would use a cache, similar to > the existing code (although the cache was disabled), except the block > decode is done w

Re: [Mesa-dev] [Mesa-stable] [PATCH] intel/compiler: move nir_lower_bool_to_int32 before nir_lower_locals_to_regs

2018-12-20 Thread Juan A. Suarez Romero
On Wed, 2018-12-19 at 09:15 +0100, Iago Toral Quiroga wrote: > The former expects to see SSA-only things, but the latter injects registers. > > The assertions in the lowering where not seeing this because they asserted > on the bit_size values only, not on the is_ssa field, so add that assertion >

[Mesa-dev] [PATCH] pci_ids: add new VegaM pci id

2018-12-20 Thread Alex Deucher
Signed-off-by: Alex Deucher Cc: mesa-sta...@lists.freedesktop.org --- include/pci_ids/radeonsi_pci_ids.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/pci_ids/radeonsi_pci_ids.h b/include/pci_ids/radeonsi_pci_ids.h index a2bc9213207..75ac7761bb4 100644 --- a/include/pci_ids/radeons

Re: [Mesa-dev] [PATCH] radv: compute optimal VM alignment for imported buffers

2018-12-20 Thread Bas Nieuwenhuizen
Happy to have this patch, but all descriptions and comments say this is an optimization Can we get some comment that this avoids hangs? Otherwise Reviewed-by: Bas Nieuwenhuizen On Thu, Dec 20, 2018 at 3:23 PM Samuel Pitoiset wrote: > > This fixes GPU hangs on GFX9 with > dEQP-VK.memory.e

[Mesa-dev] [PATCH] radv: compute optimal VM alignment for imported buffers

2018-12-20 Thread Samuel Pitoiset
This fixes GPU hangs on GFX9 with dEQP-VK.memory.external_memory_host.bind_image_memory_and_render.with_zero_offset.* Copied from RadeonSI. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/winsys/amdgpu/radv_amdgpu_bo.c | 28 ++- 1 file changed, 27 insertions(+), 1 deletion(-)

Re: [Mesa-dev] [PATCH v2] radv: Work around non-renderable 128bpp compressed 3d textures on GFX9.

2018-12-20 Thread Samuel Pitoiset
On 12/20/18 10:13 AM, Bas Nieuwenhuizen wrote: Exactly what title says, the new addrlib does not allow the above with certain dimensions that the CTS seems to hit. Work around it by not allowing the app to render to it via compat with other 128bpp formats and do not render to it ourselves duri

Re: [Mesa-dev] [PATCH 06/16] nir: improve convert_yuv_to_rgb when fuse_ffma=true

2018-12-20 Thread Jonathan marek
On 12/20/2018 01:28 AM, Nils Wallménius wrote: Den ons 19 dec. 2018 17:44 skrev Jonathan Marek : When ffma is available, we can use a different arrangement of constants to get a better result. On freedreno/ir3, this reduces the YUV->RGB to 7 scalar ffma. On freedreno/a2xx, it will allow YUV->R

[Mesa-dev] [Bug 108967] DRM : eglCreatePbufferSurface failed with error EGL_BAD_MATCH

2018-12-20 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=108967 --- Comment #7 from Vishwanath Chandapur --- Hi, Qtwebegine has already has support of EGL_KHR_surfaceless_context. And also when we enabled more debug logs we found mesa driver is failing with below error.when this error occurs we see black s

Re: [Mesa-dev] [PATCH 03/18] glx: meson: build src/glx only with -Dglx=dri

2018-12-20 Thread Emil Velikov
On Tue, 18 Dec 2018 at 21:52, Dylan Baker wrote: > > Quoting Emil Velikov (2018-12-18 02:33:56) > > On Mon, 17 Dec 2018 at 19:44, Dylan Baker wrote: > > > > > > Quoting Emil Velikov (2018-12-17 10:58:11) > > > > On Fri, 14 Dec 2018 at 17:13, Dylan Baker wrote: > > > > > > > > > > Quoting Emil Ve

Re: [Mesa-dev] [PATCH] radv: fix subpass image transitions with multiviews

2018-12-20 Thread Samuel Pitoiset
On 12/20/18 12:18 PM, Bas Nieuwenhuizen wrote: Is not ideal but will have to do for now Yes, this can be improved. Reviewed-by: Bas Nieuwenhuizen On Thu, Dec 20, 2018 at 12:01 PM Samuel Pitoiset wrote: The driver needs to decompress all image layers if a fast depth/color clear has bee

Re: [Mesa-dev] [PATCH] radv: fix subpass image transitions with multiviews

2018-12-20 Thread Bas Nieuwenhuizen
Is not ideal but will have to do for now Reviewed-by: Bas Nieuwenhuizen On Thu, Dec 20, 2018 at 12:01 PM Samuel Pitoiset wrote: > > The driver needs to decompress all image layers if a fast > depth/color clear has been performed. > > Signed-off-by: Samuel Pitoiset > --- > src/amd/vulkan/radv_

Re: [Mesa-dev] [PATCH] WIP: meson: allow building DRI loaders without a DRI driver

2018-12-20 Thread Emil Velikov
On Tue, 18 Dec 2018 at 21:53, Dylan Baker wrote: > > Quoting Emil Velikov (2018-12-18 03:09:55) > > On Mon, 17 Dec 2018 at 22:27, Matt Turner wrote: > > > > > > On Mon, Dec 17, 2018 at 2:12 PM Emil Velikov > > > wrote: > > > > Additionally, distributions build latest loader and use it with DRI1

Re: [Mesa-dev] [PATCH v2 13/24] mapi/new: don't print info we don't need for ES1/ES2

2018-12-20 Thread Emil Velikov
On Tue, 18 Dec 2018 at 14:23, Kyle Brenneman wrote: > On 12/14/2018 07:04 AM, Emil Velikov wrote: > > -print(generate_public_stubs(functions)) > > +if target in "gldispatch": > This should be an "==", not "in". The in operator would do a substring > search. Thanks Kyle, fixed locally. If

[Mesa-dev] [PATCH] radv: fix subpass image transitions with multiviews

2018-12-20 Thread Samuel Pitoiset
The driver needs to decompress all image layers if a fast depth/color clear has been performed. Signed-off-by: Samuel Pitoiset --- src/amd/vulkan/radv_cmd_buffer.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c

Re: [Mesa-dev] [PATCH] amd/surface: fix setting of ADDR2_SURFACE_FLAGS::color

2018-12-20 Thread Marek Olšák
On Thu, Dec 20, 2018, 4:05 AM Bas Nieuwenhuizen On Thu, Dec 20, 2018 at 9:00 AM Marek Olšák wrote: > > > > I prefer Nicolai's patch because it's shorter and doesn't need driver > changes. > > > > Reviewed-by: Marek Olšák > > This patch still needs driver changes because radv will render to a > c

[Mesa-dev] [PATCH v2 2/3] egl: introduce a log level getter function

2018-12-20 Thread Silvestrs Timofejevs
Being able to retrieve the log level can be useful to enable/disable debug code. The alternative, which is calling 'getenv' function every time to retrieve the log level, is more "expensive". Signed-off-by: Silvestrs Timofejevs --- src/egl/main/egllog.c | 9 + src/egl/main/egllog.h | 4 +

[Mesa-dev] [PATCH v2 3/3] egl: add config debug printout (v2)

2018-12-20 Thread Silvestrs Timofejevs
Feature to print out EGL returned configs for debug purposes. 'eglChooseConfig' and 'eglGetConfigs' debug information printout is enabled when the log level equals '_EGL_DEBUG'. The configs are printed, and if any of them are "chosen" they are marked with their index in the chosen configs array.

[Mesa-dev] debug feature to dump "get configs" and "chosen configs" (v2)

2018-12-20 Thread Silvestrs Timofejevs
This patch series provides an easy way to see what configs have been returned by the 'eglGetConfigs' and 'eglChooseConfig' functions, and give an overview of config attributes. v2: a) refactor the code in line with Eric's comments b) rename function _snprintfStrcat, split it out and put into

[Mesa-dev] [PATCH v2 1/3] util: introduce the util_strnappend function

2018-12-20 Thread Silvestrs Timofejevs
This function is similar to strncat, but unlike strncat it allows to concatenate the buffer with a formatted string. The alternative would be to have an intermediate string that is formated first, and then appended via strncat. Signed-off-by: Silvestrs Timofejevs --- src/util/u_string.h | 16 +++

Re: [Mesa-dev] [PATCH 2/2] egl: add config debug printout

2018-12-20 Thread Eric Engestrom
On Thursday, 2018-12-20 08:30:53 +, Silvestrs Timofejevs wrote: > Eric, thank you for reviewing my patch. I have expanded little bit > on some of your comments bellow. I will be sending fallow up V2 of the patch > shortly. > On Thu, Dec 06, 2018 at 11:00:25AM +, Eric Engestrom wrote: [...]

Re: [Mesa-dev] [PATCH 2/5] ac/nir: restrict fmask lookup to image load intrinsics

2018-12-20 Thread Bas Nieuwenhuizen
On Tue, Dec 18, 2018, 9:57 PM Samuel Pitoiset We don't ever want to do the fmask lookup on a atomic or > store, the fmask should have been decompressed if the > surface has been moved to IMAGE_LAYOUT. > Clarify the description to be a *storage* image layout? > > Original patch by Dave Airlie. >

[Mesa-dev] MR: Add extension EXT_sRGB_write_control (v7)

2018-12-20 Thread Gert Wollny
Hello all, With the last (minor) update I moved the series to an MR: https://gitlab.freedesktop.org/mesa/mesa/merge_requests/14 There are only one minor change from the series last posted here v7: use _mesa_has_EXT_framebuffer_sRGB instead of testing the extension flag directly. v6: - rename

Re: [Mesa-dev] [PATCH] radv: drop the amdgpu-skip-threshold=1 workaround for LLVM 8

2018-12-20 Thread Bas Nieuwenhuizen
Reviewed-by: Bas Nieuwenhuizen On Wed, Dec 19, 2018, 6:13 PM Samuel Pitoiset This workaround has been introduced by 135e4d434f6 for fixing > DXVK GPU hangs with many games. It is no longer needed since > LLVM r345718. > > Signed-off-by: Samuel Pitoiset > --- > src/amd/vulkan/radv_shader.c | 12

[Mesa-dev] [PATCH v2] radv: Work around non-renderable 128bpp compressed 3d textures on GFX9.

2018-12-20 Thread Bas Nieuwenhuizen
Exactly what title says, the new addrlib does not allow the above with certain dimensions that the CTS seems to hit. Work around it by not allowing the app to render to it via compat with other 128bpp formats and do not render to it ourselves during copies. Fixes: 776b9113656 "amd/addrlib: update

Re: [Mesa-dev] [PATCH] amd/surface: fix setting of ADDR2_SURFACE_FLAGS::color

2018-12-20 Thread Bas Nieuwenhuizen
On Thu, Dec 20, 2018 at 9:00 AM Marek Olšák wrote: > > I prefer Nicolai's patch because it's shorter and doesn't need driver changes. > > Reviewed-by: Marek Olšák This patch still needs driver changes because radv will render to a compressed surface as r32g32b32a32, so allocating a non-renderabl

Re: [Mesa-dev] [PATCH 2/2] egl: add config debug printout

2018-12-20 Thread Silvestrs Timofejevs
Eric, thank you for reviewing my patch. I have expanded little bit on some of your comments bellow. I will be sending fallow up V2 of the patch shortly. On Thu, Dec 06, 2018 at 11:00:25AM +, Eric Engestrom wrote: > On Friday, 2018-11-09 18:04:12 +, Silvestrs Timofejevs wrote: > > Feature to

Re: [Mesa-dev] [PATCH] ac/nir: remove the bitfield_extract workaround for LLVM 8

2018-12-20 Thread Marek Olšák
Reviewed-by: Marek Olšák Marek On Wed, Dec 19, 2018 at 11:50 AM Samuel Pitoiset wrote: > This workaround has been introduced by 3d41757788a and it > is no longer needed since LLVM r346422. > > Signed-off-by: Samuel Pitoiset > --- > src/amd/common/ac_nir_to_llvm.c | 24 +++

Re: [Mesa-dev] [PATCH] amd/surface: fix setting of ADDR2_SURFACE_FLAGS::color

2018-12-20 Thread Marek Olšák
I prefer Nicolai's patch because it's shorter and doesn't need driver changes. Reviewed-by: Marek Olšák Marek On Tue, Dec 18, 2018 at 12:50 PM Haehnle, Nicolai wrote: > On 18.12.18 18:36, Bas Nieuwenhuizen wrote: > > Hi Nicolai, > > > > I happened to be writing something similar which also fi