Re: [Mesa-dev] [PATCH 3/3] dri3: Add a synchronisation point for texture-from-pixmap

2016-11-01 Thread Michel Dänzer
this regard; are there any other setups where this is not happening? -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa-dev mailing list mes

Re: [Mesa-dev] [PATCH 1/3] vl/dri3: use external texture as back buffers

2016-10-31 Thread Michel Dänzer
On 28/10/16 08:19 PM, Andy Furniss wrote: > Michel Dänzer wrote: >> On 27/10/16 07:52 PM, Andy Furniss wrote: >>> Andy Furniss wrote: >>>> Michel Dänzer wrote: >>>>> On 26/10/16 08:07 PM, Andy Furniss wrote: >>>>>> >>>

Re: [Mesa-dev] [PATCH 09/10] st/vdpau: implement the new DMA-buf based interop

2016-10-31 Thread Michel Dänzer
On 28/10/16 07:15 PM, Marek Olšák wrote: > On Oct 28, 2016 3:30 AM, "Michel Dänzer" <mic...@daenzer.net > <mailto:mic...@daenzer.net>> wrote: >> >> On 28/10/16 03:08 AM, Marek Olšák wrote: >> > On Thu, Oct 27, 2016 at 5:23 PM, Emil Veliko

Re: [Mesa-dev] [PATCH 09/10] st/vdpau: implement the new DMA-buf based interop

2016-10-28 Thread Michel Dänzer
On 28/10/16 06:04 PM, Nayan Deshmukh wrote: > On Fri, Oct 28, 2016 at 2:14 PM, Michel Dänzer <mic...@daenzer.net > <mailto:mic...@daenzer.net>> wrote: > > On 28/10/16 03:58 PM, Nayan Deshmukh wrote: > > On Fri, Oct 28, 2016 at 7:00 AM, Michel Dänzer <

Re: [Mesa-dev] [PATCH 09/10] st/vdpau: implement the new DMA-buf based interop

2016-10-28 Thread Michel Dänzer
On 28/10/16 03:58 PM, Nayan Deshmukh wrote: > On Fri, Oct 28, 2016 at 7:00 AM, Michel Dänzer <mic...@daenzer.net > <mailto:mic...@daenzer.net>> wrote: > > On 28/10/16 03:08 AM, Marek Olšák wrote: > > On Thu, Oct 27, 2016 at 5:23 PM, Emil Vel

Re: [Mesa-dev] mesa-dev is failing to bounce some mails

2016-10-27 Thread Michel Dänzer
t I had some issues with the amd mailing list > hosted on fdo as well. > > Looks like some mails only got delivered delayed this morning. In response to Andres' post (and noticing other missing posts like yours before), I pinged Daniel Stone on the IRC FreeNode channel #freedesktop about it,

Re: [Mesa-dev] [PATCH 09/10] st/vdpau: implement the new DMA-buf based interop

2016-10-27 Thread Michel Dänzer
and fix it up as necessary? Basically, PIPE_BIND_LINEAR is only really necessary for buffers which are sent to the X server for presentation on a different GPU. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and

Re: [Mesa-dev] [PATCH 1/3] vl/dri3: use external texture as back buffers

2016-10-27 Thread Michel Dänzer
On 27/10/16 07:52 PM, Andy Furniss wrote: > Andy Furniss wrote: >> Michel Dänzer wrote: >>> On 26/10/16 08:07 PM, Andy Furniss wrote: >>>> >>>> The bad = Starting with DRI3 (which is default) I still get trashed >>>> rendering full screen.

Re: [Mesa-dev] [PATCH 1/3] vl/dri3: use external texture as back buffers

2016-10-26 Thread Michel Dänzer
wn some ddx DRI2/3 issue that wasn't > visible to those testing with compositing (but then the full screen > case may avoid compositing anyway depending on settings). You may be running into a DDX driver issue fixed by https://patchwork.freedesktop.org/patch/118514/ . --

Re: [Mesa-dev] [PATCH] scons: Require libdrm >= 2.4.65 for DRM.

2016-10-24 Thread Michel Dänzer
On 25/10/16 11:01 AM, Michel Dänzer wrote: > On 25/10/16 09:17 AM, Vedran Miletić wrote: >> On 10/25/2016 01:41 AM, Vinson Lee wrote: >>> Fix SCons build. drmDevicePtr is not available until libdrm 2.4.65. >>> >>> Compiling src/loader/loader.c ... >>&g

Re: [Mesa-dev] [PATCH] scons: Require libdrm >= 2.4.65 for DRM.

2016-10-24 Thread Michel Dänzer
; > > That's a large bump and 2.4.65 is just over a year old. It would be nice > to support a couple more versions before. > > Is there an acceptable workaround? Who / what requires current Mesa but can't update libdrm to >= 2.4.65? -- Earthling Michel Dän

Re: [Mesa-dev] [PATCH 4/4] configure.ac: check for Glamor requirements only when needed

2016-10-24 Thread Michel Dänzer
,...] was a fairly common problem for radeonsi users until Marek made it basically impossible. Most of those reports might have been just on IRC though. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Me

Re: [Mesa-dev] [PATCH v3 25/25] configure.ac: Add required LLVM versions to the top

2016-10-19 Thread Michel Dänzer
On 18/10/16 11:39 PM, Emil Velikov wrote: > On 17 October 2016 at 08:56, Michel Dänzer <mic...@daenzer.net> wrote: >> On 14/10/16 07:02 PM, Emil Velikov wrote: >> >>> * src/gallium/drivers/radeon/r600_pipe_common.c >>> No actual bug, yet misleading. >&

Re: [Mesa-dev] [PATCH] configure.ac: don't require DRM and GBM for surfaceless egl platform

2016-10-18 Thread Michel Dänzer
uire_egl_drm() { The function name should be updated to reflect what it does now. -- Earthling Michel Dänzer| http://www.amd.com Libre software enthusiast |Mesa and X developer ___

Re: [Mesa-dev] [PATCH v3 25/25] configure.ac: Add required LLVM versions to the top

2016-10-17 Thread Michel Dänzer
On 14/10/16 07:02 PM, Emil Velikov wrote: > On 14 October 2016 at 09:45, Michel Dänzer <mic...@daenzer.net> wrote: >> On 14/10/16 05:14 PM, Emil Velikov wrote: >>> On 14 October 2016 at 01:45, Michel Dänzer <mic...@daenzer.net> wrote: >>>> On 13/10/16

Re: [Mesa-dev] [PATCH v3 25/25] configure.ac: Add required LLVM versions to the top

2016-10-14 Thread Michel Dänzer
On 14/10/16 05:14 PM, Emil Velikov wrote: > On 14 October 2016 at 01:45, Michel Dänzer <mic...@daenzer.net> wrote: >> On 13/10/16 07:14 PM, Emil Velikov wrote: >>> On 13 October 2016 at 04:07, Michel Dänzer <mic...@daenzer.net> wrote: >>>> On 13/10/

Re: [Mesa-dev] [PATCH v3 25/25] configure.ac: Add required LLVM versions to the top

2016-10-13 Thread Michel Dänzer
On 14/10/16 09:54 AM, Michel Dänzer wrote: > On 13/10/16 11:16 PM, Mike Lothian wrote: >> I think there were some issues with some programs / games that had >> clashing symbols but I'm not sure if that's still an issue > > I'm only aware of such issues with the Steam runtim

Re: [Mesa-dev] [PATCH v3 25/25] configure.ac: Add required LLVM versions to the top

2016-10-13 Thread Michel Dänzer
need to link libstdc++ statically into LLVM. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa-dev mailing list mesa-dev@lists.freedeskt

Re: [Mesa-dev] [PATCH v3 25/25] configure.ac: Add required LLVM versions to the top

2016-10-13 Thread Michel Dänzer
On 13/10/16 07:14 PM, Emil Velikov wrote: > On 13 October 2016 at 04:07, Michel Dänzer <mic...@daenzer.net> wrote: >> On 13/10/16 03:37 AM, Tobias Droste wrote: >>> Am Mittwoch, 12. Oktober 2016, 11:53:50 CEST schrieb Emil Velikov: >>>>> &g

Re: [Mesa-dev] Mesa (master): st/glsl_to_tgsi: simpler fixup of empty writemasks

2016-10-13 Thread Michel Dänzer
On 13/10/16 04:26 PM, Nicolai Hähnle wrote: > Hi Michel, > > On 13.10.2016 08:42, Michel Dänzer wrote: >> On 13/10/16 01:50 AM, Nicolai Hähnle wrote: >>> Module: Mesa >>> Branch: master >>> Commit: f5f3cadca3809952288e3726ed5fde22090dc61d >>>

Re: [Mesa-dev] Mesa (master): st/glsl_to_tgsi: simpler fixup of empty writemasks

2016-10-13 Thread Michel Dänzer
d as vs-temp-array-mat2-index-wr.txt . P.S. The newly enabled tests spec@arb_enhanced_layouts@execution@component-layout@vs-tcs-load-output(-indirect) also fail, output attached as vs-tcs-load-output.stderr . -- Earthling Michel Dänzer | http://w

Re: [Mesa-dev] [PATCH 1/2] st/mesa: Take local references for sync object fences

2016-10-12 Thread Michel Dänzer
On 12/10/16 08:52 PM, Nicolai Hähnle wrote: > On 12.10.2016 11:31, Michel Dänzer wrote: >> >> diff --git a/src/mesa/state_tracker/st_cb_syncobj.c >> b/src/mesa/state_tracker/st_cb_syncobj.c >> index 123925a..de01880 100644 >> --- a/src/mesa/state_tracker/

Re: [Mesa-dev] [PATCH v3 25/25] configure.ac: Add required LLVM versions to the top

2016-10-12 Thread Michel Dänzer
default to static is easy, but I doubt it will make everyone > happy ;-) Indeed, it'd probably make many distro packagers unhappy, because they'll just have to re-enable shared linking, because packaging policies generally strongly discourage if not outright forbid static linking.

[Mesa-dev] [PATCH 2/2] st/mesa: Refactor st_check_sync to use st_client_wait_sync

2016-10-12 Thread Michel Dänzer
From: Michel Dänzer <michel.daen...@amd.com> Duplicate code cleanup, no functional change intended. Signed-off-by: Michel Dänzer <michel.daen...@amd.com> --- src/mesa/state_tracker/st_cb_syncobj.c | 28 +--- 1 file changed, 5 insertions(+), 23 deletions(-)

[Mesa-dev] [PATCH 1/2] st/mesa: Take local references for sync object fences

2016-10-12 Thread Michel Dänzer
From: Michel Dänzer <michel.daen...@amd.com> Fixes a race condition: Thread AThread B Test if so->fence != NULL => true Set so->fence = NULL Dereference so->fence => NULL dere

Re: [Mesa-dev] [RFC] ralloc: use jemalloc for faster GLSL compilation

2016-10-06 Thread Michel Dänzer
link against things > and it's going to make our lives harder. This is probably "we should > figure out how to stop shared linking against anything" rather than "we > shouldn't make this change", though. Distros can't just link everything statically, if we try forcing that

Re: [Mesa-dev] [PATCH] gallium/drivers: initialize pipe_resource::next to NULL

2016-10-03 Thread Michel Dänzer
state tracker code but in driver internal code. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa-dev mailing list mesa-dev@lists.freedeskt

Re: [Mesa-dev] Error when trying to compile RADV

2016-10-03 Thread Michel Dänzer
t sure about that wrt LLVM_CONFIG). -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org

Re: [Mesa-dev] Mesa (master): gallium/radeon: zero all query buffers

2016-09-30 Thread Michel Dänzer
/piglit-framework-gl/piglit_winsys_framework.c:73 #11 0x77b1e667 in piglit_gl_test_run (argc=1, argv=0x7fffe748, config=0x7fffe610) at tests/util/piglit-framework-gl.c:199 #12 0x00400ff0 in main (argc=1, argv=0x7fffe748) at tests/spec/amd_performance_monit

Re: [Mesa-dev] [PATCH] gallium/r300: initialize pipe_resource::next to NULL

2016-09-30 Thread Michel Dänzer
On 30/09/16 03:55 AM, Marek Olšák wrote: > On Thu, Sep 29, 2016 at 8:37 PM, Rob Clark <robdcl...@gmail.com> wrote: >> On Tue, Sep 27, 2016 at 10:56 PM, Michel Dänzer <mic...@daenzer.net> wrote: >>> On 28/09/16 12:33 AM, Rob Clark wrote: >>>> Sig

Re: [Mesa-dev] [PATCH] gallium/r300: initialize pipe_resource::next to NULL

2016-09-27 Thread Michel Dänzer
stion is really whether the next field of the template is initialized to NULL by all callers. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa

[Mesa-dev] [PATCH] gallium/radeon: Initialize pipe_resource::next to NULL

2016-09-27 Thread Michel Dänzer
From: Michel Dänzer <michel.daen...@amd.com> Fixes lots of piglit tests crashing due to using uninitialized memory. Fixes: ecd6fce2611e ("mesa/st: support lowering multi-planar YUV") Signed-off-by: Michel Dänzer <michel.daen...@amd.com> --- src/gallium/drivers/radeon/r6

Re: [Mesa-dev] [llvm] r282237 - [InstCombine] Fix for PR29124: reduce insertelements to shufflevector

2016-09-26 Thread Michel Dänzer
On 26/09/16 10:28 PM, Alexey Bataev wrote: > Michael, fixed this bug in r282401 I can confirm it's fixed, thanks! -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X develo

Re: [Mesa-dev] [llvm] r282237 - [InstCombine] Fix for PR29124: reduce insertelements to shufflevector

2016-09-26 Thread Michel Dänzer
ess sizes : 48 bits physical, 48 bits virtual power management: ts ttp tm 100mhzsteps hwpstate cpb eff_freq_ro [13] -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer define void @fetch_r32g32b32_f

Re: [Mesa-dev] [PATCH v2] st/va: flush the context before calling flush_frontbuffer(v2)

2016-09-19 Thread Michel Dänzer
vscreen), NULL); > > - drv->pipe->flush(drv->pipe, NULL, 0); > > pipe_resource_reference(, NULL); > pipe_surface_reference(_draw, NULL); > This patch and patch 3 are Reviewed-by: Michel Dänzer <michel.daen...@amd.com> -- Earthli

Re: [Mesa-dev] [PATCH 2/3] st/vdpau: flush the context before calling flush_frontbuffer

2016-09-16 Thread Michel Dänzer
On 16/09/16 05:15 PM, Michel Dänzer wrote: > On 14/09/16 02:34 PM, Nayan Deshmukh wrote: >> so that the texture is rendered to back buffer before calling >> flush_frontbuffer and can be copied to a different buffer in >> the function >> >> Signed-off-by: Nayan De

Re: [Mesa-dev] [PATCH 2/3] st/vdpau: flush the context before calling flush_frontbuffer

2016-09-16 Thread Michel Dänzer
ffer Please use C-style /* ... */ comments in C code. With that fixed, Reviewed-by: Michel Dänzer <michel.daen...@amd.com> Same for patch 3. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast |

Re: [Mesa-dev] [PATCH 1/3] vl/dri3: handle the case of different GPU(v4)

2016-09-16 Thread Michel Dänzer
Leo should probably also take a look. Acked-by: Michel Dänzer <michel.daen...@amd.com> > @@ -235,16 +240,35 @@ dri3_alloc_back_buffer(struct vl_dri3_screen *scrn) > templ.height0 = scrn->height; > templ.depth0 = 1; > templ.array_size = 1; > - buffer->t

Re: [Mesa-dev] [PATCH] Revert "st/vdpau: use linear layout for output surfaces"

2016-09-16 Thread Michel Dänzer
ric view to me. > > Tiling helps with the memory throughput because it makes pixels which > are rendered together appear near to each other in the memory layout as > well. > > Since multimedia as well as compute applications usually always render > to the whole texture/array/

Re: [Mesa-dev] [PATCH 09/10] st/vdpau: implement the new DMA-buf based interop

2016-09-14 Thread Michel Dänzer
On 15/09/16 11:01 AM, Ilia Mirkin wrote: > On Wed, Sep 14, 2016 at 9:42 PM, Michel Dänzer <mic...@daenzer.net> wrote: >> On 15/09/16 08:20 AM, Ilia Mirkin wrote: >>> On Wed, Sep 7, 2016 at 12:06 PM, Marek Olšák <mar...@gmail.com> wrote: >>>> On Wed,

Re: [Mesa-dev] Problem with RX 480 on Alien: Isolation and Dota 2

2016-09-14 Thread Michel Dänzer
On 14/09/16 07:41 PM, Marek Olšák wrote: > On Wed, Sep 14, 2016 at 5:26 AM, Michel Dänzer <mic...@daenzer.net> wrote: >> On 14/09/16 02:53 AM, Marek Olšák wrote: >>> >>> cmake .. -G Ninja -DCMAKE_INSTALL_PREFIX=/usr/llvm/x86_64-linux-gnu >&g

Re: [Mesa-dev] [PATCH 09/10] st/vdpau: implement the new DMA-buf based interop

2016-09-14 Thread Michel Dänzer
On 15/09/16 08:20 AM, Ilia Mirkin wrote: > On Wed, Sep 7, 2016 at 12:06 PM, Marek Olšák <mar...@gmail.com> wrote: >> On Wed, Sep 7, 2016 at 5:36 PM, Ilia Mirkin <imir...@alum.mit.edu> wrote: >>> On Wed, Sep 7, 2016 at 4:08 AM, Michel Dänzer <mic...@daenzer.net&

Re: [Mesa-dev] Problem with RX 480 on Alien: Isolation and Dota 2

2016-09-13 Thread Michel Dänzer
setting -DLLVM_ENABLE_ASSERTIONS=1 and removing -DNDEBUG. > -DLLVM_BUILD_32_BITS=ON Hah, didn't know about this, I manually added -m32 to C(XX)FLAGS. Thanks. -- Earthling Michel Dänzer | http://www.amd.com Libre softwa

Re: [Mesa-dev] [PATCH 01/20] gallium/radeon: derive buffer placement and flags only at initialization

2016-09-12 Thread Michel Dänzer
On 13/09/16 07:46 AM, Marek Olšák wrote: > This might fix it: > "[PATCH 1/7] gallium/radeon: set new r600_resource fields correctly in > other places too" It does, thanks! Tested-by: Michel Dänzer <michel.daen...@amd.com> -- Earthling Michel Dänzer

Re: [Mesa-dev] [PATCH v3] vl/dri3: handle the case of different GPU

2016-09-12 Thread Michel Dänzer
noticed that vl_dri3_screen_create overrides the pipe_screen flush_frontbuffer hook with vl_dri3_flush_frontbuffer. That's a little ugly and would probably break with drivers whose flush_frontbuffer hook actually does something. At the very least, the vl_winsys_dri3.c code should save any previous hook and cal

Re: [Mesa-dev] [PATCH] st/mesa: fix is_scissor_enabled when X/Y are negative

2016-09-12 Thread Michel Dänzer
(scissor->X > 0 || > + scissor->Y > 0 || > + scissor->X + scissor->Width < rb->Width || > + scissor->Y + scissor->Height < rb->Height); > } > > /** > Reviewed-by: Michel Dänzer <michel.daen...@amd.com> --

Re: [Mesa-dev] [PATCH 01/20] gallium/radeon: derive buffer placement and flags only at initialization

2016-09-11 Thread Michel Dänzer
On 12/09/16 10:15 AM, Michel Dänzer wrote: > On 30/08/16 12:28 AM, Marek Olšák wrote: >> From: Marek Olšák <marek.ol...@amd.com> >> >> Invalidated buffers don't have to go through it. >> >> Split r600_init_resource into r600_init_resource_fields and >>

Re: [Mesa-dev] [PATCH 01/20] gallium/radeon: derive buffer placement and flags only at initialization

2016-09-11 Thread Michel Dänzer
2/bin/engine.so #23 0xee877536 in ?? () from /home/daenzer/.steam/steam/steamapps/common/Portal 2/bin/engine.so #24 0xee878890 in ?? () from /home/daenzer/.steam/steam/steamapps/common/Portal 2/bin/engine.so #25 0xf5d5ac00 in ?? () #26 0xf5d5ac00 in ?? () #27 0xf5d3e41a in ?? () #28 0x080485

Re: [Mesa-dev] [PATCH] vl/dri3: handle the case of different GPU

2016-09-08 Thread Michel Dänzer
On 08/09/16 05:59 PM, Christian König wrote: > Am 08.09.2016 um 10:42 schrieb Michel Dänzer: >> On 08/09/16 05:05 PM, Christian König wrote: >>> Am 08.09.2016 um 08:23 schrieb Michel Dänzer: >>>> On 08/09/16 01:13 PM, Nayan Deshmukh wrote: >>>>> On Th

Re: [Mesa-dev] [PATCH] vl/dri3: handle the case of different GPU

2016-09-08 Thread Michel Dänzer
On 08/09/16 05:05 PM, Christian König wrote: > Am 08.09.2016 um 08:23 schrieb Michel Dänzer: >> On 08/09/16 01:13 PM, Nayan Deshmukh wrote: >>> On Thu, Sep 8, 2016 at 9:03 AM, Michel Dänzer <mic...@daenzer.net >>> <mailto:mic...@daenzer.net>> wrote: >&g

Re: [Mesa-dev] [PATCH] vl/dri3: handle the case of different GPU

2016-09-08 Thread Michel Dänzer
On 08/09/16 01:13 PM, Nayan Deshmukh wrote: > On Thu, Sep 8, 2016 at 9:03 AM, Michel Dänzer <mic...@daenzer.net > <mailto:mic...@daenzer.net>> wrote: > On 08/09/16 02:48 AM, Nayan Deshmukh wrote: > > use a linear buffer in case of back buffer > > >

Re: [Mesa-dev] [PATCH] vl/dri3: handle the case of different GPU

2016-09-07 Thread Michel Dänzer
>drawable, Please remove this kind of pointless whitespace-only change from patches before sending them for review. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___

Re: [Mesa-dev] [PATCH 3/4] radeonsi: add more unlikely() uses into si_draw_vbo

2016-09-07 Thread Michel Dänzer
On 07/09/16 11:01 PM, Nicolai Hähnle wrote: > On 07.09.2016 12:23, Marek Olšák wrote: >> On Wed, Sep 7, 2016 at 11:47 AM, Michel Dänzer <mic...@daenzer.net> >> wrote: >>> On 07/09/16 06:02 PM, Marek Olšák wrote: >>>> >>>> Based

Re: [Mesa-dev] [PATCH 3/4] radeonsi: add more unlikely() uses into si_draw_vbo

2016-09-07 Thread Michel Dänzer
w whether they help or actually hurt without measuring it. That's the whole point. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH 09/10] st/vdpau: implement the new DMA-buf based interop

2016-09-07 Thread Michel Dänzer
On 07/09/16 04:19 AM, Christian König wrote: > Am 06.09.2016 um 21:05 schrieb Ilia Mirkin: >> On Tue, Sep 6, 2016 at 2:22 PM, Christian König >> <deathsim...@vodafone.de> wrote: >>> Am 06.09.2016 um 16:23 schrieb Ilia Mirkin: >>>> On Mon, Sep 5, 2016 at

Re: [Mesa-dev] [PATCH] gallium: fix clang warnings

2016-09-07 Thread Michel Dänzer
L; > > This is a false positive, [...] That's debatable, but anyway it's probably better addressed by porting https://cgit.freedesktop.org/mesa/drm/commit/?id=b214b05ccd433c484a6a65e491a1a51b19e4811d to src/util/list.h . -- Earthling Michel Dänze

Re: [Mesa-dev] [PATCH 3/4] radeonsi: add more unlikely() uses into si_draw_vbo

2016-09-06 Thread Michel Dänzer
On 06/09/16 08:33 PM, Marek Olšák wrote: > On Sep 6, 2016 12:03 PM, "Michel Dänzer" <mic...@daenzer.net > <mailto:mic...@daenzer.net>> wrote: >> On 06/09/16 06:04 PM, Marek Olšák wrote: >> > On Tue, Sep 6, 2016 at 3:54 AM, Michel Dänzer <mic...@da

Re: [Mesa-dev] [PATCH 3/4] radeonsi: add more unlikely() uses into si_draw_vbo

2016-09-06 Thread Michel Dänzer
On 06/09/16 06:04 PM, Marek Olšák wrote: > On Tue, Sep 6, 2016 at 3:54 AM, Michel Dänzer <mic...@daenzer.net> wrote: >> On 06/09/16 07:46 AM, Marek Olšák wrote: >>> From: Marek Olšák <marek.ol...@amd.com> >> >> Did you measure any significant perform

Re: [Mesa-dev] [PATCH] loader/dri3: Always use at least two back buffers

2016-09-06 Thread Michel Dänzer
On 06/09/16 03:14 PM, Michel Dänzer wrote: > On 06/09/16 01:59 PM, Jason Ekstrand wrote: >> On Sep 5, 2016 8:43 PM, "Michel Dänzer" <mic...@daenzer.net >> <mailto:mic...@daenzer.net>> wrote: >>> >>> On 06/09/16 12:08 PM, Jason Ekstrand wrote:

Re: [Mesa-dev] [PATCH] loader/dri3: Always use at least two back buffers

2016-09-06 Thread Michel Dänzer
On 06/09/16 01:59 PM, Jason Ekstrand wrote: > On Sep 5, 2016 8:43 PM, "Michel Dänzer" <mic...@daenzer.net > <mailto:mic...@daenzer.net>> wrote: >> >> On 06/09/16 12:08 PM, Jason Ekstrand wrote: >> > On Mon, Sep 5, 2016 at 7:39 PM, Michel Dänzer

Re: [Mesa-dev] [PATCH] loader/dri3: Always use at least two back buffers

2016-09-05 Thread Michel Dänzer
On 06/09/16 12:08 PM, Jason Ekstrand wrote: > On Mon, Sep 5, 2016 at 7:39 PM, Michel Dänzer <mic...@daenzer.net > <mailto:mic...@daenzer.net>> wrote: > > From: Michel Dänzer <michel.daen...@amd.com > <mailto:michel.daen...@amd.com>> > &g

Re: [Mesa-dev] [PATCH] loader/dri3: Overhaul dri3_update_num_back

2016-09-05 Thread Michel Dänzer
On 02/09/16 11:46 PM, Axel Davy wrote: > Le 02/09/2016 à 16:41, Axel Davy a écrit : >> Le 02/09/2016 à 03:06, Michel Dänzer a écrit : >>> On 02/09/16 12:37 AM, Alex Deucher wrote: >>>> On Thu, Sep 1, 2016 at 11:28 AM, Jason Ekstrand >>>> <ja...@jlekstra

[Mesa-dev] [PATCH] loader/dri3: Always use at least two back buffers

2016-09-05 Thread Michel Dänzer
From: Michel Dänzer <michel.daen...@amd.com> This can make a significant difference for performance with some extreme test cases such as vblank_mode=0 glxgears. Fixes: 1e3218bc5ba2 ("loader/dri3: Overhaul dri3_update_num_back") Cc: "12.0 11.2" <mesa-sta...@lists.fre

Re: [Mesa-dev] [PATCH 3/4] radeonsi: add more unlikely() uses into si_draw_vbo

2016-09-05 Thread Michel Dänzer
dirty_tex_counter = > p_atomic_read(>b.screen->dirty_tex_descriptor_counter); > - if (dirty_tex_counter != sctx->b.last_dirty_tex_descriptor_counter) { > + if (unlikely(dirty_tex_counter != > sctx->b.last_dirty_tex_descriptor_counter)) { > sctx->b.

Re: [Mesa-dev] [PATCH 09/10] st/vdpau: implement the new DMA-buf based interop

2016-09-05 Thread Michel Dänzer
being shared between different GPUs. That's how it works with the amdgpu and radeon kernel drivers. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa-dev m

Re: [Mesa-dev] Mesa 12.0.2 release candidate

2016-09-02 Thread Michel Dänzer
On 02/09/16 06:12 PM, Emil Velikov wrote: > On 2 September 2016 at 03:26, Michel Dänzer <mic...@daenzer.net> wrote: >> On 01/09/16 11:25 PM, Emil Velikov wrote: >>> Hello list, >>> >>> The candidate for the Mesa 12.0.2 is now available. Currently we

Re: [Mesa-dev] [Mesa-announce] Mesa 12.0.2 release candidate

2016-09-01 Thread Michel Dänzer
-- > > Nominated (9) > ===== [...] > Michel Dänzer (1): > loader/dri3: Overhaul dri3_update_num_back FWIW, it's better to hold off on this one until https://bugs.freedesktop.org/show_bug.cgi?id=97549 is resolved. -- Earthling Michel Dänzer | http:

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-01 Thread Michel Dänzer
On 02/09/16 10:17 AM, Michel Dänzer wrote: > On 02/09/16 12:58 AM, Leo Liu wrote: >> On 09/01/2016 11:54 AM, Nayan Deshmukh wrote: >>> >>> I saw the code in dri3_glx.c and I could somewhat relate some basic >>> code structure to the vl_winsys_dri3.c

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-09-01 Thread Michel Dänzer
not sure whether it makes more sense to allocate a separate linear buffer for this purpose, as is done for GLX, or for the vl code to make the corresponding back (or front?) buffer linear in the first place. -- Earthling Michel Dänzer | http://www.amd.com

Re: [Mesa-dev] [PATCH] loader/dri3: Overhaul dri3_update_num_back

2016-09-01 Thread Michel Dänzer
On 02/09/16 12:37 AM, Alex Deucher wrote: > On Thu, Sep 1, 2016 at 11:28 AM, Jason Ekstrand <ja...@jlekstrand.net> wrote: >> On Aug 31, 2016 11:39 PM, "Michel Dänzer" <mic...@daenzer.net> wrote: >>> On 01/09/16 02:05 PM, Jason Ekstrand wrote: >>>

Re: [Mesa-dev] [PATCH] loader/dri3: Overhaul dri3_update_num_back

2016-09-01 Thread Michel Dänzer
On 01/09/16 02:05 PM, Jason Ekstrand wrote: > > > On Wed, Aug 31, 2016 at 7:00 PM, Michel Dänzer <mic...@daenzer.net > <mailto:mic...@daenzer.net>> wrote: > > On 31/08/16 11:21 PM, Jason Ekstrand wrote: > > On Aug 19, 2016 12:07 AM, "Michel D

Re: [Mesa-dev] [PATCH] st/mesa: expose OES_geometry_shader and OES_texture_cube_map_array

2016-09-01 Thread Michel Dänzer
in glValidateProgramPipeline failed to validate the pipeline Probe color at (0,0) Expected: 0.00 1.00 0.00 1.00 Observed: 0.00 0.00 0.00 1.00 Test failure on line 70 PIGLIT: {"result": "fail" } -- Earthling Michel Dänzer

Re: [Mesa-dev] [PATCH 2/2] st/vdapu: use lanczos filter for scaling v4

2016-08-31 Thread Michel Dänzer
for "is_different_gpu". Leo might have done some work on this, so coordinate with him before spending too much effort on this. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast

Re: [Mesa-dev] [PATCH] loader/dri3: Overhaul dri3_update_num_back

2016-08-31 Thread Michel Dänzer
On 31/08/16 11:21 PM, Jason Ekstrand wrote: > On Aug 19, 2016 12:07 AM, "Michel Dänzer" <mic...@daenzer.net > <mailto:mic...@daenzer.net>> wrote: >> From: Michel Dänzer <michel.daen...@amd.com > <mailto:michel.daen...@amd.com>> >> >> Alw

Re: [Mesa-dev] Improving ralloc performance for the GLSL compiler

2016-08-30 Thread Michel Dänzer
On 30/08/16 06:51 PM, Marek Olšák wrote: > > If we don't care about memory usage, let's use my allocator. If we do, > let's import jemalloc into the Mesa tree and use it for ralloc. Instead of importing jemalloc into Mesa, could we use the shared libjemalloc.so.1? -- Earthling Mich

Re: [Mesa-dev] Mesa (master): radeonsi: enable SDMA on CIK

2016-08-29 Thread Michel Dänzer
On 29/08/16 05:48 PM, Marek Olšák wrote: > Hi, > > Does the attached patch fix it? Yes it does, thanks! Tested-by: Michel Dänzer <michel.daen...@amd.com> -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast |

Re: [Mesa-dev] Mesa (master): radeonsi: enable SDMA on CIK

2016-08-29 Thread Michel Dänzer
ar-accum.c:59 #15 0x77b38b2f in run_test (gl_fw=0x614c20, argc=1, argv=0x7fffe788) at tests/util/piglit-framework-gl/piglit_winsys_framework.c:73 #16 0x77b1d647 in piglit_gl_test_run (argc=1, argv=0x7fffe788, config=0x7fffe650) at tests/util/piglit-framework-gl.c:199 #17 0x00

Re: [Mesa-dev] [PATCH] loader/dri3: Overhaul dri3_update_num_back

2016-08-28 Thread Michel Dänzer
On 28/08/16 03:03 AM, Dieter Nützel wrote: > Am 25.08.2016 11:09, schrieb Michel Dänzer: >> On 24/08/16 06:35 AM, Eric Anholt wrote: >>> Michel Dänzer <mic...@daenzer.net> writes: >>>> On 20/08/16 04:42 AM, Eric Anholt wrote: >>>>> Michel Dä

Re: [Mesa-dev] [PATCH] loader/dri3: Overhaul dri3_update_num_back

2016-08-25 Thread Michel Dänzer
On 24/08/16 06:35 AM, Eric Anholt wrote: > Michel Dänzer <mic...@daenzer.net> writes: >> On 20/08/16 04:42 AM, Eric Anholt wrote: >>> Michel Dänzer <mic...@daenzer.net> writes: >>> >>>> From: Michel Dänzer <michel.daen...@amd.com> >>

Re: [Mesa-dev] [PATCH] radeonsi: disable SDMA on Carrizo

2016-08-25 Thread Michel Dänzer
CHIP_CARRIZO) > + goto fallback; > + > if (cik_sdma_copy_texture(sctx, dst, dst_level, dstx, dsty, dstz, > src, src_level, src_box)) > return; > > fallback: > si_resource_copy_region(ctx, dst, dst_level, dstx, dsty, dstz, >

Re: [Mesa-dev] [PATCH] loader/dri3: Overhaul dri3_update_num_back

2016-08-23 Thread Michel Dänzer
On 20/08/16 04:42 AM, Eric Anholt wrote: > Michel Dänzer <mic...@daenzer.net> writes: > >> From: Michel Dänzer <michel.daen...@amd.com> >> >> Always use 3 buffers when flipping. With only 2 buffers, we have to wait >> for a flip to complete (which takes

[Mesa-dev] [PATCH] loader/dri3: Overhaul dri3_update_num_back

2016-08-19 Thread Michel Dänzer
From: Michel Dänzer <michel.daen...@amd.com> Always use 3 buffers when flipping. With only 2 buffers, we have to wait for a flip to complete (which takes non-0 time even with asynchronous flips) before we can start working on the next frame. We were previously only using 2 buffers for fl

Re: [Mesa-dev] Possible memory leak with `glxMakeCurrent`?

2016-08-17 Thread Michel Dänzer
nt Git master? There have been some fixes in this area recently. If it still happens, the output of running an affected application in valgrind --leak-check=full (with debugging symbols available for at least all Mesa binaries) would be useful. -- Earthling Michel Dänzer

Re: [Mesa-dev] [PATCH v2] egl/dri2: dri2_make_current: Release previous context's display

2016-08-16 Thread Michel Dänzer
l_display) > Cc: "12.0" <mesa-sta...@lists.freedesktop.org> > Reported-by: Alexandr Zelinsky <mexahota...@w1l.ru> > Tested-by: Alexandr Zelinsky <mexahota...@w1l.ru> > Signed-off-by: Nicolas Boichat <drink...@chromium.org> Reviewed, tested and pushed. Thanks!

Re: [Mesa-dev] [PATCH] glx: Don't use current context in __glXSendError

2016-08-16 Thread Michel Dänzer
On 16/08/16 04:11 PM, Tapani Pälli wrote: > On 08/16/2016 09:49 AM, Michel Dänzer wrote: >> From: Michel Dänzer <michel.daen...@amd.com> >> >> There's no guarantee that there is one, and we don't need one anyway. >> >> Fixes piglit tests: >> >&g

[Mesa-dev] [PATCH] glx: Don't use current context in __glXSendError

2016-08-16 Thread Michel Dänzer
From: Michel Dänzer <michel.daen...@amd.com> There's no guarantee that there is one, and we don't need one anyway. Fixes piglit tests: glx@glx-fbconfig-bad glx@glx_ext_import_context@import context, multi process glx@glx_ext_import_context@import context, single process Fixes: 2e3f06

Re: [Mesa-dev] Mesa stopped passing make check on August 10th: FAIL: glsl/glcpp/tests/glcpp-test

2016-08-15 Thread Michel Dänzer
1): preprocessor error: Built-in (pre-defined) macro names cannot be > undefined. See https://bugs.freedesktop.org/show_bug.cgi?id=97307 => https://lists.freedesktop.org/archives/mesa-dev/2016-August/126037.html -- Earthling Michel Dänzer | http://www.amd.com Libr

Re: [Mesa-dev] [PATCH] egl/dri2: dri2_make_current: Release previous context's display

2016-08-10 Thread Michel Dänzer
_ctx && old_ctx->Resource.Display) { fixes the regression and doesn't seem to cause any other problems. Alexandr, does the patch still fix your problem with that modification? Nicolas, this regression is also reproducible with LIBGL_ALWAYS_SOFTWARE=1 . Please get used to testing your changes lik

Re: [Mesa-dev] [PATCH 0/4] RadeonSI: GPU hang fix + 3 small changes

2016-08-09 Thread Michel Dänzer
the original change again. > Please review. The series is Reviewed-by: Michel Dänzer <michel.daen...@amd.com> -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer __

Re: [Mesa-dev] [PATCH] dri: use 'bool' instead 'int' for boolean variables

2016-08-08 Thread Michel Dänzer
LIBGL_DRIVERS_PATH (or >> EGL_DRIVERS_PATH) set to mix the old and new. > > - The changes to the data structures in the patch do not necessarily > imply that mixing-unpatched-patched libs will fail because the > alignment of fields might stay the same. Unless sizeof(bo

Re: [Mesa-dev] [PATCH] src: replace RTLD_NOW with RTLD_LAZY

2016-08-08 Thread Michel Dänzer
ependency. -- Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman

Re: [Mesa-dev] [PATCH] st/mesa: use PIPE_USAGE_STREAM for GL_CLIENT_STORAGE_BIT without READ_BIT (v2)

2016-08-08 Thread Michel Dänzer
On 07/08/16 06:53 AM, Marek Olšák wrote: > From: Marek Olšák <marek.ol...@amd.com> > > v2: keep STAGING for GL_MAP_READ_BIT Reviewed-by: Michel Dänzer <michel.daen...@amd.com> -- Earthling Michel Dänzer | http://www.amd.com Libr

Re: [Mesa-dev] [PATCH] egl/dri2: dri2_initialize: Do not reference-count TestOnly display

2016-08-03 Thread Michel Dänzer
_fence_sync@conformance. >>> >>> Fixes: 9ee683f877 (egl/dri2: Add reference count for dri2_egl_display) >>> Cc: "12.0" <mesa-sta...@lists.freedesktop.org> >>> Reported-by: Michel Dänzer <mic...@daenzer.net> >>> Signed-off-by: Nicolas Boic

Re: [Mesa-dev] [PATCH 0/3] Destroy Present event contexts

2016-08-02 Thread Michel Dänzer
On 02.08.2016 23:01, Leo Liu wrote: > On 08/01/2016 10:20 PM, Michel Dänzer wrote: >> On 28.07.2016 18:34, Michel Dänzer wrote: >>> Running XTS (the X test suite) on Xephyr using glamor running on Xorg, >>> I stumbled upon an issue: >>> >>> * XTS cau

Re: [Mesa-dev] [PATCH 0/3] Destroy Present event contexts

2016-08-01 Thread Michel Dänzer
On 28.07.2016 18:34, Michel Dänzer wrote: > Running XTS (the X test suite) on Xephyr using glamor running on Xorg, > I stumbled upon an issue: > > * XTS causes Xephyr to keep resetting and starting new server generations > * glamor creates a new GLX context for each server generat

Re: [Mesa-dev] [PATCH 12/12] gallium/radeon/winsyses: decrease max_alloc_size to 1/3 of largest heap

2016-08-01 Thread Michel Dänzer
On 01.08.2016 16:35, Michel Dänzer wrote: > On 30.07.2016 06:42, Marek Olšák wrote: >> From: Marek Olšák <marek.ol...@amd.com> >> >> This is controversial, but I don't see a better way out of this. >> >> Tonga has 2 GB of VRAM and 2 GB of GTT. amdgp

Re: [Mesa-dev] [PATCH 12/12] gallium/radeon/winsyses: decrease max_alloc_size to 1/3 of largest heap

2016-08-01 Thread Michel Dänzer
e worst case it may not be possible to place any BOs whose size is >= ~1/7 of the VRAM size. At the end of the day, this needs to be solved in the kernel one way or another. -- Earthling Michel Dänzer | http://www.amd.com Libre softw

Re: [Mesa-dev] [PATCH 1/3] loader/dri3: Destroy Present event context when destroying drawable

2016-07-29 Thread Michel Dänzer
On 28.07.2016 18:41, Chris Wilson wrote: > On Thu, Jul 28, 2016 at 06:34:44PM +0900, Michel Dänzer wrote: >> From: Michel Dänzer <michel.daen...@amd.com> >> >> Without this, the X server may accumulate stale Present event contexts >> if a client ends up crea

[Mesa-dev] [PATCH 2/3] vl/dri3: Destroy Present event context when destroying drawable v2

2016-07-29 Thread Michel Dänzer
From: Michel Dänzer <michel.daen...@amd.com> Without this, the X server may accumulate stale Present event contexts if a client performs several video decoding sessions using the same window. v2: Based on Chris Wilson's review: * Use xcb_discard_reply() instead of free(xcb_request

[Mesa-dev] [PATCH 3/3] anv/x11: Destroy Present event context when destroying swapchain v2

2016-07-29 Thread Michel Dänzer
From: Michel Dänzer <michel.daen...@amd.com> Without this, the X server may accumulate stale Present event contexts if a client creates and destroys multiple swapchains using the same window. v2: Based on Chris Wilson's review: * Use xcb_present_select_input_checked so that protocol

<    2   3   4   5   6   7   8   9   10   11   >