Re: [Mesa-dev] [PATCH] vulkan/wsi: Only use LINEAR modifier for prime if supported.

2018-05-07 Thread Abel García Dorta
Hi, I sent a similar patch yesterday with: + if (chain->has_dri3_modifiers && + image->base.drm_modifier != DRM_FORMAT_MOD_INVALID) { but was rejected by bas and never got into the mail list... If the jason's patch is going to be the good patch I would like to have some aknowlegment in th

[Mesa-dev] [PATCH] anv: ignore pColorBlendState if all color attachments of the subpass are unused

2018-05-07 Thread Samuel Iglesias Gonsálvez
According to Vulkan spec: "pColorBlendState is a pointer to an instance of the VkPipelineColorBlendStateCreateInfo structure, and is ignored if the pipeline has rasterization disabled or if the subpass of the render pass the pipeline is created against does not use any color attachments

Re: [Mesa-dev] [PATCH] mesa: fix error handling in get_framebuffer_parameteriv

2018-05-07 Thread Tapani Pälli
Hi; On 05/05/2018 01:27 AM, Rhys Perry wrote: CC: These changes look correct to me and it looks cleaner with the common validate function. Do you know some app or test that got fixed by these changes? Signed-off-by: Rhys Perry --- src/mesa/main/fbobject.c | 72

[Mesa-dev] [PATCH] virgl: clear render state before submitting clear command

2018-05-07 Thread Gert Wollny
Virgl/virglrenderer implements the gallium clear command via a call to glClear. However, gallium clear does not take render states like e.g. RASTERIZER_DISCARD into account, but glClear does, and gallium st_Clear does not updated the latest rendering state on the host. Hence, in order to properly e

Re: [Mesa-dev] [PATCH 04/17] i965/miptree: Initialize the indirect clear color to zero

2018-05-07 Thread Pohjolainen, Topi
On Thu, May 03, 2018 at 12:03:51PM -0700, Nanley Chery wrote: > The indirect clear color isn't correctly tracked in > intel_miptree::fast_clear_color. The initial value of ::fast_clear_color > is zero, while that of the indirect clear color is undefined or > non-zero. > > Topi Pohjolainen discover

Re: [Mesa-dev] [PATCH 03/17] i965/miptree: Move init_mcs into alloc_aux_buffer

2018-05-07 Thread Pohjolainen, Topi
On Fri, May 04, 2018 at 11:04:40AM -0700, Nanley Chery wrote: > On Fri, May 04, 2018 at 10:00:32AM -0700, Nanley Chery wrote: > > On Fri, May 04, 2018 at 09:42:34AM -0700, Nanley Chery wrote: > > > On Thu, May 03, 2018 at 12:03:50PM -0700, Nanley Chery wrote: > > > > Add infrastructure for initiali

Re: [Mesa-dev] [PATCH] st/vdpau: allow progressive video surface with interop

2018-05-07 Thread Christian König
Am 02.05.2018 um 16:51 schrieb Leo Liu: mpv now interop with video surface instead of output surface previously, so it fails with "vlVdpVideoSurfaceDMABuf", this's fine for Mesa GL, since the code path will fall back to "vlVdpVideoSurfaceGallium", but this's not the case for others Signed-off-by

Re: [Mesa-dev] [PATCH] intel/genxml: Fix a few invalid field widths

2018-05-07 Thread Chris Wilson
Quoting Lionel Landwerlin (2018-05-06 15:12:12) > Reviewed-by: Lionel Landwerlin Thank you for the reviews, pushed. -Chris ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v3 02/13] mesa/st: glsl_to_tgsi: Split arrays who's elements are only accessed directly

2018-05-07 Thread Nicolai Hähnle
On 01.05.2018 18:13, Gert Wollny wrote: Am Dienstag, den 01.05.2018, 11:57 +0200 schrieb Nicolai Hähnle: So the GLSL transforms don't already do this? Interesting... anyway, seems a nice improvement, When I first sent this patch stand-alone there were some comments about this: https://patc

[Mesa-dev] [ANNOUNCE] mesa 18.0.3

2018-05-07 Thread Juan A. Suarez Romero
Mesa 18.0.3 is now available. The is a fairly small release consisting of patches to fix leaks in RADV and Winsys, fix deadlock in internal queue, fix issues with ANV allocator, fix blit setup for YUV LoadImage, and some other patches. Andres Rodriguez (1): radv/winsys: fix leaking resou

[Mesa-dev] [PATCH] configure.ac: rework -latomic check

2018-05-07 Thread Thomas Petazzoni
The configure.ac logic added in commit 2ef7f23820a67e958c2252bd81eb0458903ebf33 ("configure: check if -latomic is needed for __atomic_*") makes the assumption that if a 64-bit atomic intrinsic test program fails to link without -latomic, it is because we must use -latomic. Unfortunately, this is n

Re: [Mesa-dev] [PATCH v3 05/13] mesa/st: Add helper classes for array merging and interleaving

2018-05-07 Thread Nicolai Hähnle
On 01.05.2018 17:46, Gert Wollny wrote: Am Dienstag, den 01.05.2018, 12:38 +0200 schrieb Nicolai Hähnle: First some high-level remarks: Why is `finalized` necessary? The `finalize` operation should be idempotent, i.e. if you call if twice in a row, the second time should be a no-op. It actual

Re: [Mesa-dev] [PATCH 1/9] radeonsi: reorder sample locations as required by EQAA

2018-05-07 Thread Nicolai Hähnle
On 02.05.2018 06:13, Marek Olšák wrote: From: Marek Olšák --- src/gallium/drivers/radeonsi/si_state.c | 3 - src/gallium/drivers/radeonsi/si_state_msaa.c | 154 --- 2 files changed, 98 insertions(+), 59 deletions(-) diff --git a/src/gallium/drivers/radeonsi/si_state.

Re: [Mesa-dev] [PATCH 2/9] radeonsi: use better sample locations for 4x MSAA

2018-05-07 Thread Nicolai Hähnle
On 02.05.2018 06:13, Marek Olšák wrote: From: Marek Olšák Discovered by luck. Verified with the piglit MSAA accuracy test. It also shows that the worst case EQAA 16s4f results in very good 4x MSAA in the worst case. Nine might not like these positions, but they are prettier to the eye and GL d

Re: [Mesa-dev] [PATCH 3/9] radeonsi: improve quality of 16 sample locations

2018-05-07 Thread Nicolai Hähnle
On 02.05.2018 06:13, Marek Olšák wrote: From: Marek Olšák This results in better 16x and 8x quality when using these locations. Verified with the piglit MSAA accuracy test. How did you come up with those? :) Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state_msaa.c |

Re: [Mesa-dev] [PATCH 4/9] radeonsi: use better sample locations for 8x EQAA

2018-05-07 Thread Nicolai Hähnle
On 02.05.2018 06:13, Marek Olšák wrote: From: Marek Olšák Verified with the piglit MSAA accuracy test. Reviewed-by: Nicolai Hähnle --- src/gallium/drivers/radeonsi/si_state_msaa.c | 32 +++- 1 file changed, 11 insertions(+), 21 deletions(-) diff --git a/src/gallium/dri

[Mesa-dev] [Bug 106180] [bisected] radv vulkan smoke test black screen (Add support for DRI3 v1.2)

2018-05-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106180 --- Comment #16 from Eero Tamminen --- Jason's patch: https://patchwork.freedesktop.org/patch/220799/ -- You are receiving this mail because: You are the assignee for the bug.___ mesa-dev mailing lis

Re: [Mesa-dev] [PATCH 06/17] i965/miptree: Drop the alloc_flags param from alloc_aux_buffer

2018-05-07 Thread Pohjolainen, Topi
On Thu, May 03, 2018 at 12:03:53PM -0700, Nanley Chery wrote: > We have enough information to determine the optimal flags internally. > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 29 > +-- > 1 file changed, 14 insertions(+), 15 deletions(-) > > diff --git a/src

Re: [Mesa-dev] [PATCH 9/9] radeonsi: add an environment variable that forces EQAA for MSAA allocations

2018-05-07 Thread Nicolai Hähnle
Very nice. We should probably think about exposing this as a more generally available performance knob if you're confident enough that it works. On 03.05.2018 00:42, Marek Olšák wrote: FYI, the environment variable will only have effect on amdgpu. If I understand the code correctly, the env

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for EQAA

2018-05-07 Thread Nicolai Hähnle
On 01.05.2018 22:48, Marek Olšák wrote: +**nr_color_samples**: This is the number of color samples for EQAA, while +``nr_samples`` is the number of coverage samples. If the format is Z/S, +``nr_color_samples`` is ignored. Constraints: +* ``nr_color_

Re: [Mesa-dev] Ryzen 2500U lockup, HP Envy 360

2018-05-07 Thread Nicolai Hähnle
Based on reports from other Raven users, it may be worth trying to update your kernel. Apart from that, the only way to help you would be if you submit a proper bugreport on freedesktop bugzilla where you clearly explain - when the lockup happened and how to reproduce it - exactly which versi

Re: [Mesa-dev] [PATCH v3] i965: Fix ETC2/EAC GetCompressed* functions on Gen7 GPUs

2018-05-07 Thread Eero Tamminen
Hi, On 04.05.2018 22:06, Eleni Maria Stea wrote: On Fri, 4 May 2018 18:29:55 +0300 Eero Tamminen wrote: You mean returning CAVEAT_SUPPORT in params for compressed formats which are transparently converted to uncompressed data? Well, that would be the best solution I think, if it's possible

Re: [Mesa-dev] [PATCH 08/17] i965: Prepare to delete intel_miptree_alloc_ccs()

2018-05-07 Thread Pohjolainen, Topi
On Thu, May 03, 2018 at 12:03:55PM -0700, Nanley Chery wrote: > We're going to delete intel_miptree_alloc_ccs() in the next commit. With > that in mind, replace the use of this function in > do_single_blorp_clear() with intel_miptree_alloc_aux() and move the > delayed allocation logic to it's calle

Re: [Mesa-dev] [PATCH] st/vdpau: allow progressive video surface with interop

2018-05-07 Thread Leo Liu
On 05/07/2018 05:10 AM, Christian König wrote: Am 02.05.2018 um 16:51 schrieb Leo Liu: mpv now interop with video surface instead of output surface previously, so it fails with "vlVdpVideoSurfaceDMABuf", this's fine for Mesa GL, since the code path will fall back to "vlVdpVideoSurfaceGallium

Re: [Mesa-dev] [PATCH 1/2] eg/compute: Use reference counting to handle compute memory pool.

2018-05-07 Thread Nicolai Hähnle
On 04.05.2018 08:34, Jan Vesely wrote: The original bug/corruption was by util_unreference_framebuffer_state, trying to drop reference on cbuf[0] (global AS for OCL). Adding reference counting to set_rat uncovered problems with acessing the pool->bo. Also drops leaked memory from 7,4kB to 1,7Kb

Re: [Mesa-dev] [PATCH 2/2] eg/compute: Drop reference on code_bo in destructor.

2018-05-07 Thread Nicolai Hähnle
Reviewed-by: Nicolai Hähnle On 04.05.2018 08:34, Jan Vesely wrote: Signed-off-by: Jan Vesely --- src/gallium/drivers/r600/evergreen_compute.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/gallium/drivers/r600/evergreen_compute.c b/src/gallium/drivers/r600/everg

Re: [Mesa-dev] [PATCH 09/17] i965/miptree: Unify aux buffer allocation

2018-05-07 Thread Pohjolainen, Topi
On Thu, May 03, 2018 at 12:03:56PM -0700, Nanley Chery wrote: > There isn't much that changes between the aux allocation functions. > Remove the duplicated code. > --- > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 227 > +++--- > src/mesa/drivers/dri/i965/intel_mipmap_tree

Re: [Mesa-dev] [PATCH] st/vdpau: allow progressive video surface with interop

2018-05-07 Thread Christian König
Am 07.05.2018 um 15:03 schrieb Leo Liu: On 05/07/2018 05:10 AM, Christian König wrote: Am 02.05.2018 um 16:51 schrieb Leo Liu: mpv now interop with video surface instead of output surface previously, so it fails with "vlVdpVideoSurfaceDMABuf", this's fine for Mesa GL, since the code path wi

Re: [Mesa-dev] [PATCH] st/vdpau: allow progressive video surface with interop

2018-05-07 Thread Leo Liu
On 05/07/2018 09:14 AM, Christian König wrote: Am 07.05.2018 um 15:03 schrieb Leo Liu: On 05/07/2018 05:10 AM, Christian König wrote: Am 02.05.2018 um 16:51 schrieb Leo Liu: mpv now interop with video surface instead of output surface previously, so it fails with "vlVdpVideoSurfaceDMABuf",

Re: [Mesa-dev] [PATCH 1/2] ac: add subgroup scan functions for SI

2018-05-07 Thread Nicolai Hähnle
On 04.05.2018 20:32, Daniel Schürmann wrote: This functionality is currently disabled due to a bug in LLVM. The idea of this implementation is taken from the ROCm Device Libs: https://github.com/RadeonOpenCompute/ROCm-Device-Libs/blob/master/ockl/src/wfredscan.cl --- src/amd/common/ac_llvm_buil

Re: [Mesa-dev] [PATCH] anv: ignore pColorBlendState if all color attachments of the subpass are unused

2018-05-07 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand Have you audited to ensure that we don't actually use it in this case? On Mon, May 7, 2018 at 1:01 AM, Samuel Iglesias Gonsálvez < sigles...@igalia.com> wrote: > According to Vulkan spec: > > "pColorBlendState is a pointer to an instance of the >VkPipelineColor

Re: [Mesa-dev] [PATCH] opencl: autotools: Fix linking order for OpenCL target

2018-05-07 Thread Kai Wasserbäch
Jan Vesely wrote on 02.05.2018 22:38: > On Wed, 2018-05-02 at 18:38 +0200, Kai Wasserbäch wrote: >> [...] > > Thank for looking into this. We probably need CLANG_LIBS handling > similar to LLVM_LIBS. I agree this is the best fix for now. > > Acked-by: Jan Vesely > > libclang.so might be a solku

Re: [Mesa-dev] [PATCH 0/4] improve buffer cache and reuse

2018-05-07 Thread Eero Tamminen
Hi, On 05.05.2018 03:56, James Xiong wrote: From: "Xiong, James" With the current implementation, brw_bufmgr may round up a request size to the next bucket size, result in 25% more memory allocated in the worst senario. For example: Request sizeActual size 32KB+1Byte 40KB . 8MB+1Byte

Re: [Mesa-dev] [PATCH 3/5] st/mesa: add support for ARB_sample_locations

2018-05-07 Thread Brian Paul
More nit-picks below. On 05/04/2018 06:09 AM, Rhys Perry wrote: Signed-off-by: Rhys Perry --- src/mesa/state_tracker/st_atom_framebuffer.c | 64 src/mesa/state_tracker/st_cb_msaa.c | 22 ++ src/mesa/state_tracker/st_extensions.c | 1 +

Re: [Mesa-dev] [PATCH 1/5] mesa: add support for ARB_sample_locations

2018-05-07 Thread Brian Paul
A bunch of nit-picks below. On 05/04/2018 06:09 AM, Rhys Perry wrote: Signed-off-by: Rhys Perry --- src/mapi/glapi/gen/gl_API.xml | 52 +++ src/mesa/main/config.h | 7 + src/mesa/main/dd.h | 7 + src/mesa/main/extensions_table.h

Re: [Mesa-dev] [PATCH 2/5] gallium: add support for programmable sample locations

2018-05-07 Thread Brian Paul
On 05/04/2018 06:09 AM, Rhys Perry wrote: Signed-off-by: Rhys Perry --- src/gallium/auxiliary/cso_cache/cso_context.c| 31 +++ src/gallium/auxiliary/cso_cache/cso_context.h| 5 src/gallium/auxiliary/util/u_framebuffer.c | 32

[Mesa-dev] [PATCH] i965: Fix occlusion queries for BLORP operations.

2018-05-07 Thread Kenneth Graunke
Gen4-5 traditionally don't use GEM context support, which means that the PS_DEPTH_COUNT register isn't saved/restored for us across batches. This means that we have to bookend each batch with start/end snapshots, and add deltas from a series of pairs, instead of simply having a single pair. Much

Re: [Mesa-dev] A question about nir_lower_wpos_ytransform

2018-05-07 Thread Jason Ekstrand
On Mon, May 7, 2018 at 8:02 AM, Alejandro Piñeiro wrote: > Hi Jason, > > as part of the ARB_gl_spirv work, we are doing the linking based on the > nir shader that comes from spirv_to_nir. On some cases, > nir_lower_wpos_ytransform introduces a new uniform, > "gl_FbWposYTransform". So as the unifo

Re: [Mesa-dev] [PATCH] i965: Fix occlusion queries for BLORP operations.

2018-05-07 Thread Jason Ekstrand
Acked-by: Jason Ekstrand On Mon, May 7, 2018 at 8:45 AM, Kenneth Graunke wrote: > Gen4-5 traditionally don't use GEM context support, which means that > the PS_DEPTH_COUNT register isn't saved/restored for us across batches. > > This means that we have to bookend each batch with start/end snaps

Re: [Mesa-dev] [PATCH 05/10] i965: Introduce a "memory zone" concept on BO allocation.

2018-05-07 Thread Kenneth Graunke
On Friday, May 4, 2018 2:18:11 PM PDT Chris Wilson wrote: > Quoting Kenneth Graunke (2018-05-04 02:12:35) > > diff --git a/src/mesa/drivers/dri/i965/brw_bufmgr.c > > b/src/mesa/drivers/dri/i965/brw_bufmgr.c > > index 66f30a1637f..66828f319be 100644 > > --- a/src/mesa/drivers/dri/i965/brw_bufmgr.c

Re: [Mesa-dev] [PATCH 06/10] i965: Add virtual memory allocator infrastructure to brw_bufmgr.

2018-05-07 Thread Kenneth Graunke
On Friday, May 4, 2018 2:27:27 PM PDT Chris Wilson wrote: > Quoting Kenneth Graunke (2018-05-04 02:12:36) > > + if (brw_using_softpin(bufmgr) && bo->gtt_offset == 0ull) { > > + bo->gtt_offset = vma_alloc(bufmgr, memzone, bo->size, 1); > > + > > + if (bo->gtt_offset == 0ull) > > +

Re: [Mesa-dev] [PATCH 06/10] i965: Add virtual memory allocator infrastructure to brw_bufmgr.

2018-05-07 Thread Kenneth Graunke
On Saturday, May 5, 2018 12:49:18 AM PDT Chris Wilson wrote: > Quoting Chris Wilson (2018-05-04 22:27:27) > > Quoting Kenneth Graunke (2018-05-04 02:12:36) > > > + if (brw_using_softpin(bufmgr) && bo->gtt_offset == 0ull) { > > > + bo->gtt_offset = vma_alloc(bufmgr, memzone, bo->size, 1); > >

Re: [Mesa-dev] [PATCH 1/2] mesa: add R10G10B10{A, X}2 to MESA <-> DRI format translations

2018-05-07 Thread Dylan Baker
Quoting Dylan Baker (2018-05-06 12:38:54) > > > On May 4, 2018 5:44:25 PM PDT, Chad Versace wrote: > > > >The BUG line should be converted to any of the following trailer lines: > > > >Bug: https://crbug.com/776903 > >(This is my favorite). > >Fixes: https://crbug.com/776903 > >

Re: [Mesa-dev] [PATCH 5/9] anv: Add vma_heap allocators in anv_device

2018-05-07 Thread Scott D Phillips
Jason Ekstrand writes: > On Wed, May 2, 2018 at 9:01 AM, Scott D Phillips > wrote: > >> These will be used to assign virtual addresses to soft pinned >> buffers in a later patch. >> --- >> src/intel/vulkan/anv_device.c | 75 ++ >> >> src/intel/vulkan/anv

Re: [Mesa-dev] [PATCH v3 08/13] mesa/st/tests: Add tests for array merge helper classes.

2018-05-07 Thread Dylan Baker
Quoting Gert Wollny (2018-04-28 12:30:08) > v2: Define tests also in the meson.build file. > Signed-off-by: Gert Wollny > --- > src/mesa/state_tracker/tests/Makefile.am | 20 +- > src/mesa/state_tracker/tests/meson.build | 14 + > src/mesa/state_tracker/tests/st_tests_common

[Mesa-dev] [PATCH] i965: Don't leak blorp on Gen4-5.

2018-05-07 Thread Kenneth Graunke
We used to only initialize BLORP on Gen6+. When we added it on Gen4-5, we forgot to destroy it unconditionally. Fixes: 752d7af77a52898cebf5597def4fdd38b1d6303e (i965: Add blorp support for gen4-5) --- src/mesa/drivers/dri/i965/brw_context.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-

Re: [Mesa-dev] [PATCH] i965: Don't leak blorp on Gen4-5.

2018-05-07 Thread Matt Turner
Reviewed-by: Matt Turner ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] A question about nir_lower_wpos_ytransform

2018-05-07 Thread Kenneth Graunke
On Monday, May 7, 2018 8:53:34 AM PDT Jason Ekstrand wrote: > On Mon, May 7, 2018 at 8:02 AM, Alejandro Piñeiro > wrote: > > > Hi Jason, > > > > as part of the ARB_gl_spirv work, we are doing the linking based on the > > nir shader that comes from spirv_to_nir. On some cases, > > nir_lower_wpos_y

Re: [Mesa-dev] [PATCH 01/17] i965/miptree: Fix handling of uninitialized MCS buffers

2018-05-07 Thread Nanley Chery
On Mon, May 07, 2018 at 09:49:01AM +0300, Tapani Pälli wrote: > > On 05/04/2018 05:59 PM, Nanley Chery wrote: > > On Fri, May 04, 2018 at 09:03:32AM +0300, Tapani Pälli wrote: > > > Hi Nanley; > > > > > > > Hey Tapani, > > > > > On 05/03/2018 10:03 PM, Nanley Chery wrote: > > > > Before this pa

Re: [Mesa-dev] [PATCH 0/4] improve buffer cache and reuse

2018-05-07 Thread James Xiong
On Sat, 5 May 2018 09:11:28 +0100 Chris Wilson wrote: > Quoting James Xiong (2018-05-05 01:56:01) > > This series align the buffer size up to page instead of a bucket > > size to improve memory allocation efficiency. > > It doesn't though. It still retrieves up to the bucket size, so with a >

[Mesa-dev] [PATCH] meson: Fix build for egl platform_x11 with dri3

2018-05-07 Thread Ville Syrjala
From: Ville Syrjälä platform_x11 with dri3 needs inc_loader. In file included from ../src/egl/drivers/dri2/platform_x11_dri3.c:35:0: ../src/egl/drivers/dri2/egl_dri2.h:41:32: fatal error: loader_dri3_helper.h: No such file or directory In file included from ../src/egl/drivers/dri2/platform_x11.

Re: [Mesa-dev] [PATCH 03/17] i965/miptree: Move init_mcs into alloc_aux_buffer

2018-05-07 Thread Nanley Chery
On Mon, May 07, 2018 at 11:51:50AM +0300, Pohjolainen, Topi wrote: > On Fri, May 04, 2018 at 11:04:40AM -0700, Nanley Chery wrote: > > On Fri, May 04, 2018 at 10:00:32AM -0700, Nanley Chery wrote: > > > On Fri, May 04, 2018 at 09:42:34AM -0700, Nanley Chery wrote: > > > > On Thu, May 03, 2018 at 12

Re: [Mesa-dev] [PATCH 04/17] i965/miptree: Initialize the indirect clear color to zero

2018-05-07 Thread Nanley Chery
On Mon, May 07, 2018 at 11:30:15AM +0300, Pohjolainen, Topi wrote: > On Thu, May 03, 2018 at 12:03:51PM -0700, Nanley Chery wrote: > > The indirect clear color isn't correctly tracked in > > intel_miptree::fast_clear_color. The initial value of ::fast_clear_color > > is zero, while that of the indi

Re: [Mesa-dev] [PATCH, v3] configure.ac/meson.build: Fix -latomic test

2018-05-07 Thread Matt Turner
Thanks. Reviewed-by: Matt Turner and pushed. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC PATCH] gallium: add interface for EQAA

2018-05-07 Thread Marek Olšák
On Mon, May 7, 2018 at 8:17 AM, Nicolai Hähnle wrote: > On 01.05.2018 22:48, Marek Olšák wrote: > >> +**nr_color_samples**: This is the number of color samples for >> EQAA, while >> +``nr_samples`` is the number of coverage samples. If the format >> is Z/S, >>

Re: [Mesa-dev] [PATCH 9/9] radeonsi: add an environment variable that forces EQAA for MSAA allocations

2018-05-07 Thread Marek Olšák
On Mon, May 7, 2018 at 8:16 AM, Nicolai Hähnle wrote: > Very nice. We should probably think about exposing this as a more > generally available performance knob if you're confident enough that it > works. > I'm absolutely confident that it works. I've run a lot of image quality tests on Polaris1

Re: [Mesa-dev] A question about nir_lower_wpos_ytransform

2018-05-07 Thread Rob Clark
On Mon, May 7, 2018 at 11:53 AM, Jason Ekstrand wrote: > On Mon, May 7, 2018 at 8:02 AM, Alejandro Piñeiro > wrote: >> >> Hi Jason, >> >> as part of the ARB_gl_spirv work, we are doing the linking based on the >> nir shader that comes from spirv_to_nir. On some cases, >> nir_lower_wpos_ytransform

Re: [Mesa-dev] [PATCH 06/17] i965/miptree: Drop the alloc_flags param from alloc_aux_buffer

2018-05-07 Thread Nanley Chery
On Mon, May 07, 2018 at 03:06:29PM +0300, Pohjolainen, Topi wrote: > On Thu, May 03, 2018 at 12:03:53PM -0700, Nanley Chery wrote: > > We have enough information to determine the optimal flags internally. > > --- > > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 29 > > +

Re: [Mesa-dev] [PATCH 08/17] i965: Prepare to delete intel_miptree_alloc_ccs()

2018-05-07 Thread Nanley Chery
On Mon, May 07, 2018 at 03:36:54PM +0300, Pohjolainen, Topi wrote: > On Thu, May 03, 2018 at 12:03:55PM -0700, Nanley Chery wrote: > > We're going to delete intel_miptree_alloc_ccs() in the next commit. With > > that in mind, replace the use of this function in > > do_single_blorp_clear() with inte

Re: [Mesa-dev] [PATCH 09/17] i965/miptree: Unify aux buffer allocation

2018-05-07 Thread Nanley Chery
On Mon, May 07, 2018 at 04:12:24PM +0300, Pohjolainen, Topi wrote: > On Thu, May 03, 2018 at 12:03:56PM -0700, Nanley Chery wrote: > > There isn't much that changes between the aux allocation functions. > > Remove the duplicated code. > > --- > > src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 227

Re: [Mesa-dev] [PATCH 1/9] radeonsi: reorder sample locations as required by EQAA

2018-05-07 Thread Marek Olšák
On Mon, May 7, 2018 at 7:49 AM, Nicolai Hähnle wrote: > On 02.05.2018 06:13, Marek Olšák wrote: > >> From: Marek Olšák >> >> --- >> src/gallium/drivers/radeonsi/si_state.c | 3 - >> src/gallium/drivers/radeonsi/si_state_msaa.c | 154 --- >> 2 files changed, 98 insertio

Re: [Mesa-dev] [PATCH 2/9] radeonsi: use better sample locations for 4x MSAA

2018-05-07 Thread Marek Olšák
On Mon, May 7, 2018 at 7:52 AM, Nicolai Hähnle wrote: > On 02.05.2018 06:13, Marek Olšák wrote: > >> From: Marek Olšák >> >> Discovered by luck. Verified with the piglit MSAA accuracy test. >> It also shows that the worst case EQAA 16s4f results in very good 4x MSAA >> in the worst case. >> >> N

Re: [Mesa-dev] [PATCH 03/17] i965/miptree: Move init_mcs into alloc_aux_buffer

2018-05-07 Thread Nanley Chery
On Mon, May 07, 2018 at 10:10:16AM -0700, Nanley Chery wrote: > On Mon, May 07, 2018 at 11:51:50AM +0300, Pohjolainen, Topi wrote: > > On Fri, May 04, 2018 at 11:04:40AM -0700, Nanley Chery wrote: > > > On Fri, May 04, 2018 at 10:00:32AM -0700, Nanley Chery wrote: > > > > On Fri, May 04, 2018 at 09

Re: [Mesa-dev] A question about nir_lower_wpos_ytransform

2018-05-07 Thread Jason Ekstrand
On Mon, May 7, 2018 at 11:02 AM, Rob Clark wrote: > On Mon, May 7, 2018 at 11:53 AM, Jason Ekstrand > wrote: > > On Mon, May 7, 2018 at 8:02 AM, Alejandro Piñeiro > > wrote: > >> > >> Hi Jason, > >> > >> as part of the ARB_gl_spirv work, we are doing the linking based on the > >> nir shader tha

Re: [Mesa-dev] A question about nir_lower_wpos_ytransform

2018-05-07 Thread Jason Ekstrand
On Mon, May 7, 2018 at 9:37 AM, Kenneth Graunke wrote: > On Monday, May 7, 2018 8:53:34 AM PDT Jason Ekstrand wrote: > > On Mon, May 7, 2018 at 8:02 AM, Alejandro Piñeiro > > wrote: > > > > > Hi Jason, > > > > > > as part of the ARB_gl_spirv work, we are doing the linking based on the > > > nir

Re: [Mesa-dev] [PATCH 08/17] i965: Prepare to delete intel_miptree_alloc_ccs()

2018-05-07 Thread Nanley Chery
On Mon, May 07, 2018 at 11:12:26AM -0700, Nanley Chery wrote: > On Mon, May 07, 2018 at 03:36:54PM +0300, Pohjolainen, Topi wrote: > > On Thu, May 03, 2018 at 12:03:55PM -0700, Nanley Chery wrote: > > > We're going to delete intel_miptree_alloc_ccs() in the next commit. With > > > that in mind, rep

Re: [Mesa-dev] [PATCH 3/9] radeonsi: improve quality of 16 sample locations

2018-05-07 Thread Marek Olšák
On Mon, May 7, 2018 at 7:53 AM, Nicolai Hähnle wrote: > On 02.05.2018 06:13, Marek Olšák wrote: > >> From: Marek Olšák >> >> This results in better 16x and 8x quality when using these locations. >> Verified with the piglit MSAA accuracy test. >> > > How did you come up with those? :) > I drew t

Re: [Mesa-dev] [PATCH 5/9] anv: Add vma_heap allocators in anv_device

2018-05-07 Thread Jason Ekstrand
On Mon, May 7, 2018 at 9:24 AM, Scott D Phillips wrote: > Jason Ekstrand writes: > > > On Wed, May 2, 2018 at 9:01 AM, Scott D Phillips < > scott.d.phill...@intel.com > >> wrote: > > > >> These will be used to assign virtual addresses to soft pinned > >> buffers in a later patch. > >> --- > >>

[Mesa-dev] [Bug 106180] [bisected] radv vulkan smoke test black screen (Add support for DRI3 v1.2)

2018-05-07 Thread bugzilla-daemon
https://bugs.freedesktop.org/show_bug.cgi?id=106180 --- Comment #17 from mercuriete --- The patch implemented by Bas https://patchwork.freedesktop.org/patch/220792/ has been Tested-by: Abel Garcia Dorta on top of master and on top of mesa-18.1.0_rc2 provided by gentoo. Thank you for fixing

Re: [Mesa-dev] [PATCH 1/2] eg/compute: Use reference counting to handle compute memory pool.

2018-05-07 Thread Jan Vesely
On Mon, 2018-05-07 at 15:10 +0200, Nicolai Hähnle wrote: > On 04.05.2018 08:34, Jan Vesely wrote: > > The original bug/corruption was by util_unreference_framebuffer_state, > > trying to drop reference on cbuf[0] (global AS for OCL). > > Adding reference counting to set_rat uncovered problems with

Re: [Mesa-dev] [PATCH 4/4] i965/drm: Purge the bucket when its cached buffer is evicted

2018-05-07 Thread James Xiong
On Sat, 5 May 2018 08:55:24 +0100 Chris Wilson wrote: > Quoting James Xiong (2018-05-05 01:56:05) > > From: "Xiong, James" > > > > When one of cached buffers is found to be evicted by kernel, > > most likely the buffers freed earlier than this buffer are > > gone too, go through the cached list

Re: [Mesa-dev] A question about nir_lower_wpos_ytransform

2018-05-07 Thread Rob Clark
On Mon, May 7, 2018 at 2:36 PM, Jason Ekstrand wrote: > On Mon, May 7, 2018 at 11:02 AM, Rob Clark wrote: >> >> On Mon, May 7, 2018 at 11:53 AM, Jason Ekstrand >> wrote: >> > On Mon, May 7, 2018 at 8:02 AM, Alejandro Piñeiro >> > wrote: >> >> >> >> Hi Jason, >> >> >> >> as part of the ARB_gl_sp

[Mesa-dev] [PATCH 3/8] i965: Always set depth/stencil write enables on gen7+

2018-05-07 Thread Jason Ekstrand
The hardware will AND these fields with the corresponding fields in DEPTH_STENCIL_STATE so there's no real reason to toggle them on and off based on state bits. This removes our reliance on the _NEW_DEPTH and _NEW_STENCIL state bits and better matches what ISL does. Cc: Kenneth Graunke --- src/

[Mesa-dev] [PATCH 1/8] i965: Re-emit depth/stencil/hiz on BRW_NEW_AUX_STATE

2018-05-07 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/gen7_misc_state.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/gen7_misc_state.c b/src/mesa/drivers/dri/i965/gen7_misc_state.c index 1ce7658..1508473 100644 --- a/src/mesa/drivers/dri/i965/gen7_misc_state.c +++ b/src

[Mesa-dev] [PATCH 2/8] i965: Re-order depth/stencil/hiz/clear packets to match ISL

2018-05-07 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/gen6_depth_state.c | 34 ++-- src/mesa/drivers/dri/i965/gen7_misc_state.c | 32 +- src/mesa/drivers/dri/i965/gen8_depth_state.c | 28 +++ 3 files changed, 47 insertions(+), 47 deletions(-) diff --gi

[Mesa-dev] [PATCH 5/8] i965: Use ISL for emitting depth/stencil/hiz state on gen6+

2018-05-07 Thread Jason Ekstrand
We leave gen4-5 alone because the ISL code hasn't really been well- tested on gen4-5 or with combined depth-stencil because we don't use BLORP for depth operations on gen4-5. Also, the gen4-5 code has to deal with intratile offsets for LOD hacks and ISL doesn't handle those yet. We could make ISL

[Mesa-dev] [PATCH 8/8] i965/miptree: Remove redundant fields from intel_miptree_aux_buffer

2018-05-07 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/intel_mipmap_tree.c | 19 +++ src/mesa/drivers/dri/i965/intel_mipmap_tree.h | 25 - 2 files changed, 7 insertions(+), 37 deletions(-) diff --git a/src/mesa/drivers/dri/i965/intel_mipmap_tree.c b/src/mesa/drivers/dri/i965/intel

[Mesa-dev] [PATCH 6/8] i965: Move brw_emit_depth_stencil_hiz higher up in the file

2018-05-07 Thread Jason Ekstrand
--- src/mesa/drivers/dri/i965/brw_misc_state.c | 90 +- 1 file changed, 40 insertions(+), 50 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_misc_state.c b/src/mesa/drivers/dri/i965/brw_misc_state.c index e44baf2..03535f6 100644 --- a/src/mesa/drivers/dri/i965

[Mesa-dev] [PATCH 4/8] i965: Use the brw_depthbuffer atom on all gens

2018-05-07 Thread Jason Ekstrand
The only reason why we had two atoms was that the one we used for gen7+ depended on _NEW_DEPTH and _NEW_STENCIL as well as _NEW_BUFFERS. Since this is no longer true, we can combine them into one atom. We do add a dependence on BRW_NEW_AUX_STATE but that should never get set on gen4-5 so adding i

[Mesa-dev] [PATCH 7/8] i965: Simplify brw_emit_depthbuffer and brw_emit_depth_stencil_hiz

2018-05-07 Thread Jason Ekstrand
Now that we're using ISL, a good chunk of brw_emit_depthstencil is pointless checks which ISL will do for us anyway. Since we only have one manual depth buffer emit function, move the useful bits into it. --- src/mesa/drivers/dri/i965/brw_misc_state.c | 107 +++-- 1 file c

[Mesa-dev] [PATCH 1/3] intel/genxml: Make assert in gen_pack_header print a message.

2018-05-07 Thread Kenneth Graunke
Python's assert can take both a condition and a string, which will cause it to print the string if the assertion trips. (You can't use parens as that creates a tuple.) Doing "condition and string" works in C, but doesn't have the desired effect in Python. --- src/intel/genxml/gen_pack_header.py

[Mesa-dev] [PATCH 3/3] intel/genxml: Assert that genxml field start and ends are sane.

2018-05-07 Thread Kenneth Graunke
Chris recently fixed a bunch of genxml end < start bugs, as well as booleans that are wider than a bit. These are way too easy to write, so asserting that the fields are sane is a good plan. --- src/intel/genxml/gen_pack_header.py | 7 +++ 1 file changed, 7 insertions(+) diff --git a/src/int

[Mesa-dev] [PATCH 2/3] intel/genxml: Fix some more fake booleans in genxml.

2018-05-07 Thread Kenneth Graunke
None of these are actually booleans. Tile Parameter is a tiling mode enum. Display pipes take plane numbers. Predicate Enable has some operations (and the default value of 6 was particular bogus). --- src/intel/genxml/gen10.xml | 4 ++-- src/intel/genxml/gen11.xml | 10 +- src/intel/ge

Re: [Mesa-dev] [PATCH 1/3] intel/genxml: Make assert in gen_pack_header print a message.

2018-05-07 Thread Caio Marcelo de Oliveira Filho
Series is Reviewed-by: Caio Marcelo de Oliveira Filho On Mon, May 07, 2018 at 01:40:44PM -0700, Kenneth Graunke wrote: > Python's assert can take both a condition and a string, which will cause > it to print the string if the assertion trips. (You can't use parens as > that creates a tuple.)

Re: [Mesa-dev] [PATCH] configure.ac: rework -latomic check

2018-05-07 Thread Matt Turner
On Mon, May 7, 2018 at 4:34 AM, Thomas Petazzoni wrote: > The configure.ac logic added in commit > 2ef7f23820a67e958c2252bd81eb0458903ebf33 ("configure: check if > -latomic is needed for __atomic_*") makes the assumption that if a > 64-bit atomic intrinsic test program fails to link without -latom

Re: [Mesa-dev] [PATCH 2/3] intel/genxml: Fix some more fake booleans in genxml.

2018-05-07 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand At one point, I wrote a script for finding these On Mon, May 7, 2018 at 1:40 PM, Kenneth Graunke wrote: > None of these are actually booleans. Tile Parameter is a tiling mode > enum. Display pipes take plane numbers. Predicate Enable has some > operations (an

Re: [Mesa-dev] [PATCH 3/3] intel/genxml: Assert that genxml field start and ends are sane.

2018-05-07 Thread Jason Ekstrand
Acked-by: Jason Ekstrand On Mon, May 7, 2018 at 1:40 PM, Kenneth Graunke wrote: > Chris recently fixed a bunch of genxml end < start bugs, as well as > booleans that are wider than a bit. These are way too easy to write, so > asserting that the fields are sane is a good plan. > --- > src/inte

Re: [Mesa-dev] [PATCH 1/3] intel/genxml: Make assert in gen_pack_header print a message.

2018-05-07 Thread Jason Ekstrand
Reviewed-by: Jason Ekstrand On Mon, May 7, 2018 at 1:51 PM, Caio Marcelo de Oliveira Filho < caio.olive...@intel.com> wrote: > Series is > > Reviewed-by: Caio Marcelo de Oliveira Filho > > > On Mon, May 07, 2018 at 01:40:44PM -0700, Kenneth Graunke wrote: > > Python's assert can take both a con

Re: [Mesa-dev] [PATCH] configure.ac: rework -latomic check

2018-05-07 Thread Thomas Petazzoni
Hello, On Mon, 7 May 2018 14:07:05 -0700, Matt Turner wrote: > On Mon, May 7, 2018 at 4:34 AM, Thomas Petazzoni > wrote: > > The configure.ac logic added in commit > > 2ef7f23820a67e958c2252bd81eb0458903ebf33 ("configure: check if > > -latomic is needed for __atomic_*") makes the assumption that

[Mesa-dev] [PATCH 1/2] intel/isl: Several UNORM formats support typed writes on gen11+

2018-05-07 Thread Jason Ekstrand
--- src/intel/isl/isl_format.c | 26 +- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/src/intel/isl/isl_format.c b/src/intel/isl/isl_format.c index a5bbdbc..a5fdf43 100644 --- a/src/intel/isl/isl_format.c +++ b/src/intel/isl/isl_format.c @@ -108,8 +108,8 @

[Mesa-dev] [PATCH 2/2] intel/isl/storage: Don't lower most UNORM formats on gen11+

2018-05-07 Thread Jason Ekstrand
--- src/intel/isl/isl_storage_image.c | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/src/intel/isl/isl_storage_image.c b/src/intel/isl/isl_storage_image.c index 20f6fd5..ed1c600 100644 --- a/src/intel/isl/isl_storage_image.c +++ b/src/intel/isl/isl_storage_i

Re: [Mesa-dev] [PATCH] mesa: fix error handling in get_framebuffer_parameteriv

2018-05-07 Thread Ian Romanick
On 05/04/2018 03:27 PM, Rhys Perry wrote: > CC: > Signed-off-by: Rhys Perry > --- > src/mesa/main/fbobject.c | 72 > +++- > 1 file changed, 41 insertions(+), 31 deletions(-) > > diff --git a/src/mesa/main/fbobject.c b/src/mesa/main/fbobject.c > index

Re: [Mesa-dev] [PATCH 06/10] i965: Add virtual memory allocator infrastructure to brw_bufmgr.

2018-05-07 Thread Kenneth Graunke
On Saturday, May 5, 2018 12:25:20 AM PDT Chris Wilson wrote: > Quoting Kenneth Graunke (2018-05-04 02:12:36) [snip] > > +static uint64_t > > +bucket_vma_alloc(struct brw_bufmgr *bufmgr, > > + struct bo_cache_bucket *bucket, > > + enum brw_memory_zone memzone) > > +{

Re: [Mesa-dev] [PATCH 09/10] i965: Softpin all buffers and never use relocations.

2018-05-07 Thread Kenneth Graunke
On Thursday, May 3, 2018 11:51:52 PM PDT Chris Wilson wrote: > Quoting Kenneth Graunke (2018-05-04 02:12:39) > > --- > > src/mesa/drivers/dri/i965/brw_bufmgr.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > This enables it for Broadwell (with a 64-bit kernel) and Skylake+ (with

Re: [Mesa-dev] [PATCH 8/9] anv: elide relocations to pinned target bos

2018-05-07 Thread Scott D Phillips
Jason Ekstrand writes: > If I'm honest, I don't really like the way this patch worked out. It has > the virtue of being fairly simple and a nice incremental change. However, > it seems to me like we should be able to do better. That said, I don't > really know how off-hand and this looks corre

[Mesa-dev] [PATCH] llvmpipe: Fix random number generation for unit tests

2018-05-07 Thread sroland
From: Roland Scheidegger We were never producing negative numbers for signed types. Also fix only producing half the valid range for uint32, and properly clamp signed values. Because this now also properly tests snorm with actually negative values, need to increase eps for such conversions. I be

Re: [Mesa-dev] [PATCH 8/9] anv: elide relocations to pinned target bos

2018-05-07 Thread Jason Ekstrand
On Mon, May 7, 2018 at 4:05 PM, Scott D Phillips wrote: > Jason Ekstrand writes: > > > If I'm honest, I don't really like the way this patch worked out. It has > > the virtue of being fairly simple and a nice incremental change. > However, > > it seems to me like we should be able to do better.

[Mesa-dev] [PATCH v2 6/8] anv: use a separate pool for binding tables when soft pinning

2018-05-07 Thread Scott D Phillips
Soft pinning lets us satisfy the binding table address requirements without using both sides of a growing state_pool. If you do use both sides of a state pool, then you need to read the state pool's center_bo_offset (with the device mutex held) to know the final offset of relocations that target t

[Mesa-dev] [PATCH v2 2/8] util: Add a randomized test for the virtual memory allocator

2018-05-07 Thread Scott D Phillips
The test pseudo-randomly makes allocations and deallocations with the virtual memory allocator and checks that the results are consistent. Specifically, we test that: * no result from the allocator overlaps an already allocated range * allocated memory fulfills the stated alignment requirement

[Mesa-dev] [PATCH v2 0/8] anv: softpin

2018-05-07 Thread Scott D Phillips
Round two of anv softpin. The only notable feedback not incorporated in the series is Chris's suggestion about embedding the vma's allocation node in struct anv_bo; I'm leaving the allocator bit to Jason. Jason Ekstrand (1): util: Add a virtual memory allocator Scott D Phillips (7): util: Add

  1   2   >