Re: [Mesa-dev] [PATCH 2/2] panfrost: Add madvise support to BO cache

2019-08-09 Thread Rob Herring
On Fri, Aug 9, 2019 at 2:49 PM Alyssa Rosenzweig wrote: > > I'm not one to care, but fwiw, spacing is inconsistent..? Context? I guess you mean the 'madv.retained = 0;' line. > > > + if (!ret && !madv.retained) { > > What's the logic here? (What does a 0/!0 return code mean

[Mesa-dev] [PATCH 2/2] panfrost: Add madvise support to BO cache

2019-08-09 Thread Rob Herring
kernels once the driver version bump lands, but probably not worth it given the other driver features also being added. Signed-off-by: Rob Herring --- src/gallium/drivers/panfrost/pan_bo_cache.c | 21 + src/gallium/drivers/panfrost/pan_drm.c | 4 ++-- 2 files changed, 23

[Mesa-dev] [PATCH 1/2] panfrost: Sync UAPI header from kernel

2019-08-09 Thread Rob Herring
Sync the panfrost_drm.h UAPI header with the latest from the kernel. This adds madvise ioctl and GPU feature params. Signed-off-by: Rob Herring --- include/drm-uapi/panfrost_drm.h | 61 + 1 file changed, 61 insertions(+) diff --git a/include/drm-uapi

Re: [Mesa-dev] [PATCH v2 3/5] panfrost: Mark BOs as NOEXEC

2019-08-09 Thread Rob Herring
On Wed, Aug 7, 2019 at 2:37 AM Tomeu Vizoso wrote: > > Unless a BO has the EXECUTABLE flag, mark it as NOEXEC. > > v2: - Rework version detection (Alyssa). > > Signed-off-by: Tomeu Vizoso > --- > include/drm-uapi/panfrost_drm.h | 27 +++ Next time, I think this

Re: [Mesa-dev] [PATCH v2 2/5] panfrost: Allocate shaders in their own BOs

2019-08-09 Thread Rob Herring
On Fri, Aug 9, 2019 at 3:31 AM Tomeu Vizoso wrote: > > On Thu, 8 Aug 2019 at 16:19, Rob Herring wrote: > > > > On Wed, Aug 7, 2019 at 11:23 PM Tomeu Vizoso > > wrote: > > > > > > On Thu, 8 Aug 2019 at 00:47, Rob Herring wrote: > > > &g

Re: [Mesa-dev] [PATCH v2 2/5] panfrost: Allocate shaders in their own BOs

2019-08-08 Thread Rob Herring
On Wed, Aug 7, 2019 at 5:47 PM Alyssa Rosenzweig wrote: > > > This is using the > > untranslated flags, but I think it should be the 'translated_flags' as > > those are the ones changing the allocation. > > It's a little more complex than that. There some hypothetical > untranslated flags that I

Re: [Mesa-dev] [PATCH v2 2/5] panfrost: Allocate shaders in their own BOs

2019-08-08 Thread Rob Herring
On Wed, Aug 7, 2019 at 11:23 PM Tomeu Vizoso wrote: > > On Thu, 8 Aug 2019 at 00:47, Rob Herring wrote: > > > > On Wed, Aug 7, 2019 at 2:37 AM Tomeu Vizoso > > wrote: > > > > > > Instead of all shaders being stored in a single BO, have each shader

Re: [Mesa-dev] [PATCH v2 5/5] panfrost: Print errors from kernel

2019-08-07 Thread Rob Herring
On Wed, Aug 7, 2019 at 2:37 AM Tomeu Vizoso wrote: > > Signed-off-by: Tomeu Vizoso > Reviewed-by: Alyssa Rosenzweig > --- > src/gallium/drivers/panfrost/pan_drm.c | 10 +- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/src/gallium/drivers/panfrost/pan_drm.c >

Re: [Mesa-dev] [PATCH v2 2/5] panfrost: Allocate shaders in their own BOs

2019-08-07 Thread Rob Herring
On Wed, Aug 7, 2019 at 2:37 AM Tomeu Vizoso wrote: > > Instead of all shaders being stored in a single BO, have each shader in > its own. > > This removes the need for a 16MB allocation per context, and allows us > to place transient blend shaders in BOs marked as executable (before > they were

Re: [Mesa-dev] [RFC PATCH] mesa: Export BOs in RW mode

2019-07-03 Thread Rob Herring
n. > > [1]https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/drivers/gpu/drm/drm_gem.c?h=v5.2-rc7#n318 > [2]https://cgit.freedesktop.org/drm/drm-misc/commit/drivers/gpu/drm/panfrost?id=583bbf46133c726bae277e8f4e32bfba2a528c7f > > Signed-off-by: Boris Brezillon > Cc:

Re: [Mesa-dev] [RFC PATCH] mesa: Export BOs in RW mode

2019-07-03 Thread Rob Herring
On Wed, Jul 3, 2019 at 8:13 AM Steven Price wrote: > > On 03/07/2019 14:56, Boris Brezillon wrote: > > On Wed, 3 Jul 2019 07:45:32 -0600 > > Rob Herring wrote: > > > >> On Wed, Jul 3, 2019 at 7:34 AM Boris Brezillon > >> wrote: > >>> >

Re: [Mesa-dev] [PATCH v2 8/8] panfrost: Add backend targeting the DRM driver

2019-03-11 Thread Rob Herring
On Fri, Mar 8, 2019 at 3:59 PM Alyssa Rosenzweig wrote: > > > +/** > > + * struct drm_panfrost_wait_bo - ioctl argument for waiting for > > + * completion of the last DRM_PANFROST_SUBMIT_CL on a BO. > > Nit: Should be plain DRM_PANFROST_SUBMIT, there is no CL for us. > > > + __s64 timeout_ns;

Re: [Mesa-dev] [PATCH v2 2/8] panfrost: Detect GPU version at runtime

2019-03-08 Thread Rob Herring
On Fri, Mar 8, 2019 at 3:27 AM Tomeu Vizoso wrote: > > Also use the raw GPU ID value to decide whether to use SFD or MFD. > > Signed-off-by: Tomeu Vizoso > --- > src/gallium/drivers/panfrost/pan_context.c | 66 ++ > src/gallium/drivers/panfrost/pan_context.h | 10 >

Re: [Mesa-dev] [PATCH 8/8] panfrost: Add backend targeting the DRM driver

2019-03-05 Thread Rob Herring
On Mon, Mar 4, 2019 at 6:43 PM Alyssa Rosenzweig wrote: > > Wooo!!! > > Seeing this patch in my inbox has been some of the best news all day! > > Without further ado, my (solicited?) comments: > > > +/* Copyright 2018, Linaro, Ltd., Rob Herring */ >

Re: [Mesa-dev] [PATCH 6/8] panfrost: Free context BOs

2019-03-04 Thread Rob Herring
On Mon, Mar 4, 2019 at 1:38 PM Alyssa Rosenzweig wrote: > > > unsigned transient_count = > > ctx->transient_pools[ctx->cmdstream_i].entry_index*ctx->transient_pools[0].entry_size > > + ctx->transient_pools[ctx->cmdstream_i].entry_offset; > > - printf("Uploaded transient %d

Re: [Mesa-dev] [PATCH 8/8] panfrost: Add backend targeting the DRM driver

2019-03-04 Thread Rob Herring
t a/include/drm-uapi/panfrost_drm.h b/include/drm-uapi/panfrost_drm.h > new file mode 100644 > index ..d4d271e37206 > --- /dev/null > +++ b/include/drm-uapi/panfrost_drm.h > @@ -0,0 +1,128 @@ > +/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ >

Re: [Mesa-dev] [PATCH 2/8] panfrost: Detect GPU version at runtime

2019-03-04 Thread Rob Herring
On Mon, Mar 4, 2019 at 1:35 PM Alyssa Rosenzweig wrote: > > > /* If set, we'll require the use of single render-target framebuffer > > * descriptors (SFBD), for older hardware -- specifically, > If > > This require_sfbd field should also be set at the same time. In > particular, we'll want a

Re: [Mesa-dev] [PATCH 1/2] panfrost: Initial stub for Panfrost driver

2019-02-04 Thread Rob Herring
On Sun, Feb 3, 2019 at 9:33 PM Alyssa Rosenzweig wrote: > > > You should just land it and start doing in-tree development! > > I don't have push access, you know :P I can push it if you don't want to go the MR route. That goes for subsequent changes too. Rob

Re: [Mesa-dev] [PATCH 0/4] Common KMS renderonly support

2019-01-26 Thread Rob Herring
On Fri, Jan 25, 2019 at 9:00 PM Qiang Yu wrote: > > Thanks Rob, I'm OK with this kmsro approach. > > But I have to point out that this will break XServer AIGLX: > 1. modesetting DDX will report the display drm driver name like meson > as DRI2 driver name > 2. libglx.so used by xserver will look

Re: [Mesa-dev] [PATCH 3/4] kmsro: Add etnaviv renderonly support

2019-01-25 Thread Rob Herring
On Thu, Jan 24, 2019 at 7:21 PM Eric Anholt wrote: > > Rob Herring writes: > > > Enable using etnaviv for KMS renderonly. This still needs KMS driver > > name mapping to kmsro to be used automatically. > > > > Signed-off-by: Rob Herring > > >

[Mesa-dev] [PATCH 2/4] pipe-loader: Fallback to kmsro driver when no matching driver name found

2019-01-24 Thread Rob Herring
If we can't find a driver matching by name, then use the kmsro driver. This removes the need for needing a driver descriptor for every possible KMS driver. Signed-off-by: Rob Herring --- src/gallium/auxiliary/pipe-loader/pipe_loader_drm.c | 13 - 1 file changed, 8 insertions(+), 5

[Mesa-dev] [PATCH 3/4] kmsro: Add etnaviv renderonly support

2019-01-24 Thread Rob Herring
Enable using etnaviv for KMS renderonly. This still needs KMS driver name mapping to kmsro to be used automatically. Signed-off-by: Rob Herring --- meson.build | 4 +-- src/gallium/meson.build | 12 +++ src/gallium/winsys/kmsro/drm

[Mesa-dev] [PATCH 0/4] Common KMS renderonly support

2019-01-24 Thread Rob Herring
]. Rob [1] https://github.com/robherring/mesa winsys-renderonly Eric Anholt (1): pl111: Rename the pl111 driver to "kmsro". Rob Herring (3): pipe-loader: Fallback to kmsro driver when no matching driver name found kmsro: Add etnaviv renderonly support Switch imx to kmsro

[Mesa-dev] [PATCH 4/4] Switch imx to kmsro and remove the imx winsys

2019-01-24 Thread Rob Herring
The kmsro winsys is equivalent to the imx winsys, so we can switch to it and remove the imx one. Signed-off-by: Rob Herring --- Android.mk| 5 +- Makefile.am | 2 +- configure.ac | 14

[Mesa-dev] [PATCH 1/4] pl111: Rename the pl111 driver to "kmsro".

2019-01-24 Thread Rob Herring
layer used to attach a GPU. Acked-by: Emil Velikov Signed-off-by: Rob Herring --- .travis.yml | 2 +- Android.mk | 4 ++-- Makefile.am | 2 +- co

Re: [Mesa-dev] [PATCH 1/2] pl111: Rename the pl111 driver to "kmsro".

2019-01-24 Thread Rob Herring
On Thu, Jan 24, 2019 at 9:14 AM Emil Velikov wrote: > > Hi all, > > Fwiw I'm ok with the idea, as pointed out in 2/2 as-is this is a > partial solution. > Never the less is some solution for the problem we have. > > With that said the series is: > Acked-by: Emil Velikov > > On Wed, 23 Jan 2019

Re: [Mesa-dev] [PATCH 1/2] pl111: Rename the pl111 driver to "kmsro".

2019-01-23 Thread Rob Herring
On Thu, Oct 25, 2018 at 11:39 AM Eric Anholt wrote: > > The vc4 driver can do prime sharing to many different KMS-only devices, > such as the various tinydrm drivers for SPI-attached displays. Rename the > driver away from "pl111" to represent what it will actually support: > various sorts of

Re: [Mesa-dev] [PATCH 1/3] android: broadcom/genxml: fix collision with intel/genxml header-gen macro

2018-09-06 Thread Rob Herring
On Mon, Sep 3, 2018 at 4:27 PM Eric Anholt wrote: > > Mauro Rossi writes: > > > Fixes the following building error, happening when building both intel and > > broadcom: > > I wish someone maintaining android Mesa would work on making the meson > build work for them instead of just continuing to

Re: [Mesa-dev] [PATCH 2/3 v3] Android.common.mk: define HAVE_TIMESPEC_GET

2018-08-02 Thread Rob Herring
. > > > > Test: build and boot tested db820c to UI. > > > > Change-Id: I3dcc8034b48785e45cd3fa50e4d9cf2c684694a0 > > Cc: Rob Herring > > Cc: Alistair Strachan > > Cc: Marissa Wall > > Cc: Sumit Semwal > > Cc: Emil Velikov > >

Re: [Mesa-dev] vulkan.radv build trouble w/ AOSP

2018-08-02 Thread Rob Herring
On Thu, Aug 2, 2018 at 12:47 AM Mauro Rossi wrote: > > Hi, > > Il giorno gio 2 ago 2018 alle ore 02:06 John Stultz > ha scritto: >> >> Just as a heads up, with mesa3d master (plus my other build fixups I >> just sent out), I'm seeing a new build failure when building under >> AOSP/master: >> >>

Re: [Mesa-dev] [PATCH 2/3 v2] Android.common.mk: define HAVE_TIMESPEC_GET

2018-07-27 Thread Rob Herring
Since https://android-review.googlesource.com/c/718518 added > timespec_get() to bionic, mesa3d doesn't build due to redefinition > of timespec_get(). > > Avoid redefinition by defining HAVE_TIMESPEC_GET flag. > > Test: build and boot tested db820c to UI. > > Cc: Rob Herring > Cc: Alistair

Re: [Mesa-dev] [PATCH 2/3 v2] Android.common.mk: define HAVE_TIMESPEC_GET

2018-07-26 Thread Rob Herring
E%21/ > > Since https://android-review.googlesource.com/c/718518 added > timespec_get() to bionic, mesa3d doesn't build due to redefinition > of timespec_get(). > > Avoid redefinition by defining HAVE_TIMESPEC_GET flag. > > Test: build and boot tested db820c to UI. > > C

Re: [Mesa-dev] [RFC][PATCH 4/5] Android.mk: Add option to use vendor version of mesa

2018-07-26 Thread Rob Herring
On Wed, Jul 25, 2018 at 1:52 PM John Stultz wrote: > > On Wed, Jul 25, 2018 at 5:42 AM, Emil Velikov > wrote: > > On 25 July 2018 at 00:21, John Stultz wrote: > >> From: Yong Yao > >> > >> This is a forward port of a patch from the AOSP/master branch: > >>

Re: [Mesa-dev] [RFC][PATCH 4/5] Android.mk: Add option to use vendor version of mesa

2018-07-25 Thread Rob Herring
On Tue, Jul 24, 2018 at 5:21 PM John Stultz wrote: > > From: Yong Yao > > This is a forward port of a patch from the AOSP/master branch: > https://android.googlesource.com/platform/external/mesa3d/+/b1e5fad1db4c1d51c7ae3a033b100a8429ae5415%5E%21/ > > Which allows boards to provide their own

Re: [Mesa-dev] [PATCH v2 0/4] Android kms_swrast support

2018-07-19 Thread Rob Herring
On Thu, Jul 19, 2018 at 9:52 AM Robert Foss wrote: > > Hey Rob, > > On 2018-07-19 09:26, Tomasz Figa wrote: > > On Thu, Jul 19, 2018 at 12:08 AM Robert Foss > > wrote: > >> > >> Hey Rob, > >> > >> On 2018-07-18 15:30, Rob Herr

Re: [Mesa-dev] [PATCH v2 0/4] Android kms_swrast support

2018-07-18 Thread Rob Herring
On Tue, Jul 17, 2018 at 4:33 AM Robert Foss wrote: > > This series implements kms_swrast support for the Android > platform. And since having to debug a null pointer dereference, > simplify that process for the next guy. So is this working for you now? > As it stands now, any kernel must have

Re: [Mesa-dev] [PATCH v3 3/3] egl/android: Add DRM node probing and filtering

2018-06-13 Thread Rob Herring
On Wed, Jun 13, 2018 at 12:19 PM, Amit Pundir wrote: > On 13 June 2018 at 20:45, Rob Herring wrote: >> >> +Amit and John >> >> On Sat, Jun 9, 2018 at 11:27 AM, Robert Foss >> wrote: >> > This patch both adds support for probing & filteri

Re: [Mesa-dev] [PATCH v3 3/3] egl/android: Add DRM node probing and filtering

2018-06-13 Thread Rob Herring
+Amit and John On Sat, Jun 9, 2018 at 11:27 AM, Robert Foss wrote: > This patch both adds support for probing & filtering DRM nodes > and switches away from using the GRALLOC_MODULE_PERFORM_GET_DRM_FD > gralloc call. > > Currently the filtering is based just on the driver name, > and the desired

Re: [Mesa-dev] [PATCH 0/3] egl/android: Remove dependencies on specific grallocs

2018-05-25 Thread Rob Herring
On Fri, May 25, 2018 at 9:25 AM, Tomasz Figa <tf...@chromium.org> wrote: > On Fri, May 25, 2018 at 10:59 PM Rob Herring <r...@kernel.org> wrote: > >> On Fri, May 25, 2018 at 4:15 AM, Robert Foss <robert.f...@collabora.com> > wrote: >> > >&g

Re: [Mesa-dev] [PATCH 0/3] egl/android: Remove dependencies on specific grallocs

2018-05-25 Thread Rob Herring
On Fri, May 25, 2018 at 4:15 AM, Robert Foss <robert.f...@collabora.com> wrote: > > > On 2018-05-25 10:38, Tomasz Figa wrote: >> >> On Fri, May 25, 2018 at 5:33 PM Robert Foss <robert.f...@collabora.com> >> wrote: >> >>> Hey, >> >>

Re: [Mesa-dev] [PATCH 0/3] egl/android: Remove dependencies on specific grallocs

2018-05-24 Thread Rob Herring
tfoss/libdrm/tree/virtio_rfc >> >> Changes since v1: >> - Added fix for build issue >> - Do not rely on libdrm for probing >> - Distinguish between errors and when no drm devices are found >> >> Changes since RFC: >> - Rebased work on the libdrm patch [2].

Re: [Mesa-dev] [PATCH v1 1/2] egl/android: #ifdef out flink name support

2018-05-01 Thread Rob Herring
On Tue, May 1, 2018 at 3:13 AM, Robert Foss <robert.f...@collabora.com> wrote: > Hey Rob, > > > On 2018-05-01 04:20, Rob Herring wrote: >> >> On Fri, Apr 27, 2018 at 6:57 AM, Robert Foss <robert.f...@collabora.com> >> wrote: >>> >>>

Re: [Mesa-dev] [PATCH v1 1/2] egl/android: #ifdef out flink name support

2018-04-30 Thread Rob Herring
On Fri, Apr 27, 2018 at 6:57 AM, Robert Foss <robert.f...@collabora.com> wrote: > From: Rob Herring <r...@kernel.org> > > Maintaining both flink names and prime fd support which are provided by > 2 different gralloc implementations is problematic because we have a &g

Re: [Mesa-dev] [PATCH] egl/android: remove flink name support

2018-04-26 Thread Rob Herring
On Thu, Apr 26, 2018 at 11:56 AM, Emil Velikov wrote: > On 26 April 2018 at 03:30, Chih-Wei Huang wrote: >> 2018-04-25 19:55 GMT+08:00 Robert Foss : >>> Hey Emil & Chih-Wei, >>> >>> On 04/24/2018 01:59 PM, Emil Velikov

Re: [Mesa-dev] [PATCH v2 2/2] gallium/util: Android backtrace support

2018-04-24 Thread Rob Herring
On Sun, Apr 15, 2018 at 5:45 PM, Stefan Schake wrote: > We can't use any of the existing implementations in u_debug_stack. > Android technically has libunwind, but it's been modified to the point > where it no longer compiles with the Mesa usage. The library is also > not

Re: [Mesa-dev] [PATCH] egl/android: remove flink name support

2018-04-20 Thread Rob Herring
On Fri, Apr 20, 2018 at 6:29 AM, Robert Foss wrote: > Hey Rob, > > This looks good to me. > Do you mind if I carry this patch my series to get it all pushed upstream at > once? No, not at all. Rob ___ mesa-dev mailing list

Re: [Mesa-dev] [RFC] egl/android: Add DRM node probing and filtering

2018-04-19 Thread Rob Herring
On Wed, Apr 18, 2018 at 11:03 AM, Robert Foss wrote: > This patch both adds support for probing & filtering DRM nodes > and switches away from using the GRALLOC_MODULE_PERFORM_GET_DRM_FD > gralloc call. > > Currently the filtering is based just on the driver name, > and

[Mesa-dev] [PATCH] egl/android: remove flink name support

2018-04-19 Thread Rob Herring
on GRALLOC_MODULE_PERFORM_GET_DRM_FD remains for now, but the definition is added locally to remove the header dependency. Signed-off-by: Rob Herring <r...@kernel.org> --- With this plus Robert's probing patch, we remove any gralloc implementation dependency (other than it has to be a p

Re: [Mesa-dev] [PATCH 2/2] gallium/util: Android backtrace support

2018-04-13 Thread Rob Herring
on(-) > create mode 100644 src/gallium/auxiliary/util/u_debug_stack_android.cpp Reviewed-by: Rob Herring <r...@kernel.org> ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 2/2 v2] nir: mako all the intrinsics

2018-03-28 Thread Rob Herring
On Wed, Mar 28, 2018 at 12:24 PM, Mark Janes <mark.a.ja...@intel.com> wrote: > Rob Herring <r...@kernel.org> writes: > >> On Wed, Mar 28, 2018 at 10:18 AM, Rob Clark <robdcl...@gmail.com> wrote: >>> On Wed, Mar 28, 2018 at 10:43 AM, Rob Herring <r...@ke

Re: [Mesa-dev] [PATCH 2/2 v2] nir: mako all the intrinsics

2018-03-28 Thread Rob Herring
On Wed, Mar 28, 2018 at 10:18 AM, Rob Clark <robdcl...@gmail.com> wrote: > On Wed, Mar 28, 2018 at 10:43 AM, Rob Herring <r...@kernel.org> wrote: >> On Sun, Mar 25, 2018 at 1:10 PM, Rob Clark <robdcl...@gmail.com> wrote: >>> I threatened to do this a long time

Re: [Mesa-dev] [PATCH 2/2 v2] nir: mako all the intrinsics

2018-03-28 Thread Rob Herring
On Sun, Mar 25, 2018 at 1:10 PM, Rob Clark wrote: > I threatened to do this a long time ago.. I probably *should* have done > it a long time ago when there where many fewer intrinsics. But the > system of macro/#include magic for dealing with intrinsics is a bit > annoying,

Re: [Mesa-dev] [PATCH v1 0/7] Implement commont gralloc_handle_t in libdrm

2018-02-21 Thread Rob Herring
On Wed, Feb 21, 2018 at 1:22 PM, Emil Velikov <emil.l.veli...@gmail.com> wrote: > On 21 February 2018 at 18:50, Rob Herring <r...@kernel.org> wrote: >> On Wed, Feb 21, 2018 at 10:01 AM, Emil Velikov <emil.l.veli...@gmail.com> >> wrote: >>> Hi all, &g

Re: [Mesa-dev] [PATCH v1 0/7] Implement commont gralloc_handle_t in libdrm

2018-02-21 Thread Rob Herring
.org> wrote: >> On Wed, Feb 21, 2018 at 4:03 AM, Rob Herring <r...@kernel.org> wrote: >>> On Tue, Feb 20, 2018 at 4:26 AM, Tomasz Figa <tf...@chromium.org> wrote: > >> It is actually incorrect to have the same device FD used for different >> sc

Re: [Mesa-dev] [PATCH v1 0/7] Implement commont gralloc_handle_t in libdrm

2018-02-20 Thread Rob Herring
;>> >>> On Fri, Feb 16, 2018 at 11:48 PM, Tomasz Figa <tf...@chromium.org> wrote: >>>> >>>> On Fri, Feb 16, 2018 at 11:33 PM, Robert Foss <robert.f...@collabora.com> >>>> wrote: >>>>> >>>>> Hey Tomasz, &g

Re: [Mesa-dev] [PATCH v1 0/7] Implement commont gralloc_handle_t in libdrm

2018-02-09 Thread Rob Herring
On Fri, Feb 9, 2018 at 3:58 AM, Tomasz Figa <tf...@chromium.org> wrote: > On Fri, Feb 2, 2018 at 11:51 PM, Tomasz Figa <tf...@chromium.org> wrote: >> On Fri, Feb 2, 2018 at 11:00 PM, Rob Herring <r...@kernel.org> wrote: >>> On Fri, Feb 2, 2018 at 2:01 AM, To

Re: [Mesa-dev] [PATCH v3 5/6] android: Change gralloc_handle_t format from Android format to fourcc

2018-02-08 Thread Rob Herring
he DRM > subsystem. Naturally translation will still have to happen somewhere. The cros implementation has both formats. We should perhaps figure out why both are needed (plus I haven't actually tested this change). So the rest of the series looks good to me, but I'd hold off on this one. Review

Re: [Mesa-dev] [PATCH v2 1/6] android: Move gralloc handle struct to libdrm

2018-02-05 Thread Rob Herring
e of the struct a new generic name > has been chosen and variables have had comments added to them. > > Signed-off-by: Robert Foss <robert.f...@collabora.com> > --- > Changes since v1: > Suggested by Rob Herring: > - Fixed copyright statement > - Moved FDs to be fi

Re: [Mesa-dev] [PATCH v1 0/7] Implement commont gralloc_handle_t in libdrm

2018-02-02 Thread Rob Herring
_t handle, uint32_t plane); >>>>>>> ... >>>>>>> } gralloc_funcs_t; >>> >>> >>> These ones? > >>> Yeah, if we could retrieve such function pointer struct using perform >>> or any equivalent (like the implementatio

Re: [Mesa-dev] [PATCH v1 0/7] Implement commont gralloc_handle_t in libdrm

2018-01-25 Thread Rob Herring
On Thu, Jan 25, 2018 at 10:21 AM, Robert Foss wrote: > Hey Tomasz, > > On 01/24/2018 11:04 AM, Tomasz Figa wrote: >> >> Hi Robert, >> >> On Wed, Jan 17, 2018 at 2:36 AM, Robert Foss >> wrote: >>> >>> This series moves

Re: [Mesa-dev] [PATCH v1 0/7] Implement commont gralloc_handle_t in libdrm

2018-01-24 Thread Rob Herring
On Wed, Jan 24, 2018 at 4:04 AM, Tomasz Figa wrote: > Hi Robert, > > On Wed, Jan 17, 2018 at 2:36 AM, Robert Foss > wrote: >> This series moves {gbm,drm,cros}_gralloc_handle_t struct to libdrm, >> since at least 4 implementations exist, and share a

Re: [Mesa-dev] [PATCH 7/7] android: set '/sdcard/' as MESA_GLSL_CACHE_DIR by default

2018-01-18 Thread Rob Herring
On Mon, Jan 15, 2018 at 6:31 AM, Tapani Pälli wrote: > This can/should be modified depending on needs. AFAIK by default, > this is the only path that can be read/written to by anyone. > > Signed-off-by: Tapani Pälli > --- > Android.common.mk | 1 +

Re: [Mesa-dev] [PATCH] egl: do not expose EGL_EXT_pixel_format_float yet

2018-01-18 Thread Rob Herring
On Wed, Jan 17, 2018 at 12:27 PM, Tapani Pälli wrote: > Let's expose this only when we have formats. There are some > known issues when this is exposed without formats (on Android). This is fixed now at least for master. Rob

Re: [Mesa-dev] [PATCH v1 7/7] android: Add accessor functions for gralloc_handle_t variables

2018-01-16 Thread Rob Herring
On Tue, Jan 16, 2018 at 11:36 AM, Robert Foss wrote: > Supply accessor functions for most of the common gralloc_handle_t > variables. > > Signed-off-by: Robert Foss > --- > android/gralloc_handle.h | 57 >

Re: [Mesa-dev] [PATCH v1 1/7] android: Move gralloc handle struct to libdrm

2018-01-16 Thread Rob Herring
On Tue, Jan 16, 2018 at 11:36 AM, Robert Foss wrote: > This struct is used in mesa and drm_hwcomposer. > Versions of if have been implemented in several grallocs: > drm_gralloc, gbm_gralloc, minigbm and intel-minigbm. > > Other than the 1:1 move of the struct a new

Re: [Mesa-dev] [PATCH v1 1/7] android: Move gralloc handle struct to libdrm

2018-01-16 Thread Rob Herring
On Tue, Jan 16, 2018 at 11:36 AM, Robert Foss wrote: > This struct is used in mesa and drm_hwcomposer. > Versions of if have been implemented in several grallocs: > drm_gralloc, gbm_gralloc, minigbm and intel-minigbm. > > Other than the 1:1 move of the struct a new

Re: [Mesa-dev] [RFC libdrm 0/5] Move alloc_handle_t from gralloc impls.

2018-01-15 Thread Rob Herring
On Mon, Jan 15, 2018 at 7:09 AM, Robert Foss wrote: > Hey, > > On 01/13/2018 12:49 AM, Gurchetan Singh wrote: >> >> We can define accessor functions too (not ptrs), then the struct is >> opaque >> and you can do your own accessor implementation if aligning is

Re: [Mesa-dev] [RFC libdrm 0/5] Move alloc_handle_t from gralloc impls.

2018-01-12 Thread Rob Herring
minigbm/blob/master/cros_gralloc/cros_gralloc_handle.h >>>> [consumer_usage, producer_usage, yuv_color_range, is_updated etc.] >>>> >>>> >>>> https://chromium.googlesource.com/chromiumos/platform/minigbm/+/master/cros_gralloc/cros_gralloc_handle.h >>>> [

Re: [Mesa-dev] [PATCH] tgsi: include struct definitions for tgsi_build declarations

2018-01-08 Thread Rob Herring
On Mon, Jan 8, 2018 at 7:25 PM, Ilia Mirkin <imir...@alum.mit.edu> wrote: > On Mon, Jan 8, 2018 at 4:18 PM, Rob Herring <r...@kernel.org> wrote: >> Many of the functions declared in tgsi_build.h return structs (not struct >> pointers). Therefore the full struct defi

[Mesa-dev] [PATCH] tgsi: include struct definitions for tgsi_build declarations

2018-01-08 Thread Rob Herring
ed-off-by: Rob Herring <r...@kernel.org> --- src/gallium/auxiliary/tgsi/tgsi_build.h | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/gallium/auxiliary/tgsi/tgsi_build.h b/src/gallium/auxiliary/tgsi/tgsi_build.h index 53f31932c021..053292957211 100644 --- a

Re: [Mesa-dev] [PATCH] egl/android: Fix build break with dri2_initialize_android _EGLDisplay parameter

2018-01-04 Thread Rob Herring
On Thu, Jan 4, 2018 at 8:16 AM, Eric Engestrom <eric.engest...@imgtec.com> wrote: > On Wednesday, 2018-01-03 10:28:37 -0600, Rob Herring wrote: >> Commit 2f421651aca9 ("egl: let each platform decided how to handle >> LIBGL_ALWAYS_SOFTWARE") broke the build

[Mesa-dev] [PATCH] egl/android: Fix build break with dri2_initialize_android _EGLDisplay parameter

2018-01-03 Thread Rob Herring
p', rename the function parameter 'dpy' to 'disp' to align with the other EGL platforms' implementations. Fixes: 2f421651aca9 ("egl: let each platform decided how to handle LIBGL_ALWAYS_SOFTWARE") Cc: Eric Engestrom <eric.engest...@imgtec.com> Signed-off-by: Rob Herring <r...@kernel.o

Re: [Mesa-dev] [RFC libdrm 0/5] Move alloc_handle_t from gralloc impls.

2017-12-21 Thread Rob Herring
>> During the previous discussion[1] one suggestion was to add accessor >> functions. In this RFC I've only provided a alloc_handle_create() >> function. >> >> The Get/Set functions have not been added yet, I was hoping for some >> conclusive arguments for

[Mesa-dev] [PATCH] Android: util: fix locale generation in options.h

2017-12-20 Thread Rob Herring
), not all dependencies. Signed-off-by: Rob Herring <r...@kernel.org> --- src/util/Android.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/Android.mk b/src/util/Android.mk index 7e54ae701343..9b6144268e65 100644 --- a/src/util/Android.mk +++ b/src/uti

Re: [Mesa-dev] [PATCH 1/1] Use getprogname from stdlib.h on all BSDs and APPLE

2017-12-20 Thread Rob Herring
On Sun, Dec 17, 2017 at 4:02 PM, Maya Rashish wrote: > Remove EOL NetBSD < 1.x (this didn't work, since we don't > include sys/param.h). > Remove EOL FreeBSD < 4.4 > > Functionally changes OpenBSD which now uses getprogname instead of > fallback. > --- > src/util/xmlconfig.c | 17

Re: [Mesa-dev] [PATCH] Android: gallium_dri: add include to get "xmlpool/options.h"

2017-12-19 Thread Rob Herring
On Mon, Dec 18, 2017 at 8:45 PM, Yu, Qiang wrote: > I met this problem when upgrade mesa 17.2 to 17.3, and build without > a make clean. A clean build won't have this problem. I think I'm seeing a similar problem on CI builds with current master, but with intel_screen.c:

Re: [Mesa-dev] [PATCH v2] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-12-13 Thread Rob Herring
On Wed, Dec 13, 2017 at 11:58 AM, Robert Foss wrote: > Hey Rob, > > I've chatted to both of you about this patch, and it seemed acceptable > to both of you. > > Can I have a s-o-b for either of you? I've applied it and pushed to master. Rob

[Mesa-dev] [PATCH] Android: fix missing generation of vtn_gather_types.c

2017-12-13 Thread Rob Herring
Commit bb1e6ff161c9 ("spirv: Add a prepass to set types on vtn_values") added generation of vtn_gather_types.c, but forgot to add it to the Android build files. Fixes: bb1e6ff161c9 ("spirv: Add a prepass to set types on vtn_values") Cc: Jason Ekstrand <jason.ekstr...@intel.

Re: [Mesa-dev] [RFC libdrm 3/5] android: Mark alloc_handle_t magic variable as const

2017-12-13 Thread Rob Herring
On Wed, Dec 13, 2017 at 11:30 AM, Robert Foss wrote: > Mark magic member of alloc_handle_t as const. > Also bump the version of alloc_handle_t. > > Sign-off-by: Robert Foss > --- > android/alloc_handle.h | 4 ++-- > 1 file changed, 2

Re: [Mesa-dev] [RFC libdrm 1/5] android: Move gralloc handle struct to libdrm

2017-12-13 Thread Rob Herring
On Wed, Dec 13, 2017 at 11:30 AM, Robert Foss wrote: > This struct is used in mesa and drm_hwcomposer. > Versions of if have been implemented in several grallocs: > drm_gralloc, gbm_gralloc, minigbm and intel-minigbm. > > Other than the 1:1 move of the struct a new

Re: [Mesa-dev] [PATCH 2/8] spirv: Add a prepass to set types on vtn_values

2017-12-12 Thread Rob Herring
On Thu, Dec 7, 2017 at 10:12 AM, Jason Ekstrand wrote: > This autogenerated pass will automatically find and set the type field > on all vtn_values. This way we always have the type and can use it for > validation and other checks. > --- > src/compiler/Makefile.nir.am

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-12-05 Thread Rob Herring
On Tue, Dec 5, 2017 at 11:01 AM, Robert Foss <robert.f...@collabora.com> wrote: > On Tue, 2017-12-05 at 18:22 +0900, Tomasz Figa wrote: >> On Sat, Dec 2, 2017 at 4:43 AM, Rob Herring <r...@kernel.org> wrote: >> > On Fri, Dec 1, 2017 at 8:44 AM, Tomasz Figa &

Re: [Mesa-dev] [PATCH] Android: enable noreturn and returns_nonnull attributes

2017-12-05 Thread Rob Herring
On Tue, Dec 5, 2017 at 5:56 AM, Emil Velikov <emil.l.veli...@gmail.com> wrote: > On 5 December 2017 at 02:21, Rob Herring <r...@kernel.org> wrote: >> Commit 94ca8e04adf6 ("spirv: Add vtn_fail and vtn_assert helpers") broke >> Android builds which have -Wer

[Mesa-dev] [PATCH] Android: enable noreturn and returns_nonnull attributes

2017-12-04 Thread Rob Herring
NS_NONNULL, so add it too. Fixes: 94ca8e04adf6 ("spirv: Add vtn_fail and vtn_assert helpers") Cc: Jason Ekstrand <jason.ekstr...@intel.com> Signed-off-by: Rob Herring <r...@kernel.org> --- Android.common.mk | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Android.com

[Mesa-dev] Fwd: errors for mesa master Android build 1698

2017-12-04 Thread Rob Herring
Looks like Jason is the actual culprit here. Unfortunately, the build can't keep up with every commit. Looks to me like these should be fixed. I wonder how long until I give up and just set Android back to -Wno-error... Rob -- Forwarded message -- From:

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-12-01 Thread Rob Herring
On Fri, Dec 1, 2017 at 8:44 AM, Tomasz Figa <tf...@chromium.org> wrote: > On Fri, Dec 1, 2017 at 11:20 PM, Rob Herring <r...@kernel.org> wrote: >> On Fri, Dec 1, 2017 at 7:30 AM, Robert Foss <robert.f...@collabora.com> >> wrote: >>> On Thu, 20

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-12-01 Thread Rob Herring
On Fri, Dec 1, 2017 at 7:30 AM, Robert Foss <robert.f...@collabora.com> wrote: > On Thu, 2017-11-30 at 11:14 -0600, Rob Herring wrote: >> On Thu, Nov 30, 2017 at 12:11 AM, Tapani Pälli <tapani.pa...@intel.co >> m> wrote: >> > >> > &

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-30 Thread Rob Herring
On Thu, Nov 30, 2017 at 12:11 AM, Tapani Pälli wrote: > > > On 11/30/2017 06:13 AM, Tomasz Figa wrote: >> >> On Thu, Nov 30, 2017 at 3:43 AM, Robert Foss >> wrote: >>> >>> Hey, >>> >>> On Tue, 2017-11-28 at 11:49 +, Emil Velikov wrote:

Re: [Mesa-dev] [PATCH] Android: disable warnings causing errors

2017-11-29 Thread Rob Herring
On Wed, Nov 29, 2017 at 11:01 AM, Emil Velikov <emil.l.veli...@gmail.com> wrote: > On 27 November 2017 at 19:36, Rob Herring <r...@kernel.org> wrote: >> AOSP master has changed the build default to -Werror making all the >> warnings errors. Override that with -Wn

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Rob Herring
On Tue, Nov 28, 2017 at 8:42 AM, Tomasz Figa <tf...@chromium.org> wrote: > On Tue, Nov 28, 2017 at 11:27 PM, Rob Herring <r...@kernel.org> wrote: >> On Tue, Nov 28, 2017 at 5:49 AM, Emil Velikov <emil.l.veli...@gmail.com> >> wrote: >>> On 28 Novem

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-28 Thread Rob Herring
On Tue, Nov 28, 2017 at 5:49 AM, Emil Velikov wrote: > On 28 November 2017 at 10:45, Tapani Pälli wrote: >> Hi; >> >> >> On 11/27/2017 04:14 PM, Robert Foss wrote: [...] >>> + /* HACK: See droid_create_image_from_prime_fd() and b/32077885. */

Re: [Mesa-dev] [PATCH] egl/android: Partially handle HAL_PIXEL_FORMAT_IMPLEMENTATION_DEFINED

2017-11-27 Thread Rob Herring
On Mon, Nov 27, 2017 at 8:14 AM, Robert Foss wrote: > From: Tomasz Figa > > There is no API available to properly query the IMPLEMENTATION_DEFINED > format. As a workaround we rely here on gralloc allocating either > an arbitrary YCbCr 4:2:0 or

[Mesa-dev] [PATCH] Android: disable warnings causing errors

2017-11-27 Thread Rob Herring
AOSP master has changed the build default to -Werror making all the warnings errors. Override that with -Wno-error. Signed-off-by: Rob Herring <r...@kernel.org> --- Android.common.mk | 1 + 1 file changed, 1 insertion(+) diff --git a/Android.common.mk b/Android.common.mk index 5671c1

Re: [Mesa-dev] [PATCH] egl: refactor color_buffers structure for deduplicating (v2)

2017-11-20 Thread Rob Herring
/egl/drivers/dri2/egl_dri2.h | 32 -- > src/egl/drivers/dri2/platform_android.c | 10 +++--- > src/egl/drivers/dri2/platform_drm.c | 60 > ++--- > src/egl/drivers/dri2/platform_wayland.c | 41 +++--- > 4 files ch

Re: [Mesa-dev] [PATCH] threads: fix MinGW build breakage

2017-11-13 Thread Rob Herring
tionally > declare timespec_get(), just like all the other C11 thread functions (and as > the unused xtime_get() was, prior to > f1a364878431c8c5f4fd38b40b9766449e49f552)? > > Revised patch attached. That should fix Android builds. Acked-by: Rob Herring <r...@kernel.org> Rob ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 hwc] drm_hwcomposer: provide a common gralloc handle definition

2017-10-31 Thread Rob Herring
Sorry, wrong list... On Tue, Oct 31, 2017 at 9:58 AM, Rob Herring <r...@kernel.org> wrote: > EGL, gralloc, and HWC must all have a common definition of fd's and int's > in native_handle_t to share the fd and width, height, format, etc. of a > dmabuf. > > Move the definition

[Mesa-dev] [PATCH v2 hwc] drm_hwcomposer: provide a common gralloc handle definition

2017-10-31 Thread Rob Herring
w file mode 100644 index ..e2f35dda539b --- /dev/null +++ b/gralloc_drm_handle.h @@ -0,0 +1,87 @@ +/* + * Copyright (C) 2010-2011 Chia-I Wu <olva...@gmail.com> + * Copyright (C) 2010-2011 LunarG Inc. + * Copyright (C) 2016-2017 Linaro, Ltd., Rob Herring <r...@kernel.org>

Re: [Mesa-dev] [PATCH] Android: move drivers' symlinks to /vendor

2017-10-27 Thread Rob Herring
ists.freedesktop.org> >> --- >> src/gallium/targets/dri/Android.mk | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) Reviewed-by: Rob Herring <r...@kernel.org> >> >> diff --git a/src/gallium/targets/dri/Android.mk >> b/src/gallium/targets/dri

[Mesa-dev] [PATCH] Android: egl: add dependency on libnativewindow

2017-10-26 Thread Rob Herring
be pretty invasive. Signed-off-by: Rob Herring <r...@kernel.org> --- src/egl/Android.mk | 4 1 file changed, 4 insertions(+) diff --git a/src/egl/Android.mk b/src/egl/Android.mk index 2de842ca4172..11818694f4f8 100644 --- a/src/egl/Android.mk +++ b/src/egl/Android.mk @@ -60,6

Re: [Mesa-dev] [PATCH 00/10] anv: Implement VK_ANDROID_native_buffer (v4)

2017-10-25 Thread Rob Herring
On Mon, Oct 16, 2017 at 1:54 PM, Chad Versace wrote: > (This is v4 submission of the series, but contains v9 of the key patch). > > This series adds Android support to Anvil. And Android requires > VK_ANDROID_native_buffer. > > > I tested the series on 64-bit ARC++ on a

  1   2   3   4   5   6   7   >