[Mesa-dev] [PATCH 18/18] gbm: Add support for 10bpp BGR formats

2018-02-08 Thread Daniel Stone
Add support for XBGR2101010 and ABGR2101010 formats. Signed-off-by: Daniel Stone --- src/gbm/backends/dri/gbm_dri.c | 8 1 file changed, 8 insertions(+) diff --git a/src/gbm/backends/dri/gbm_dri.c b/src/gbm/backends/dri/gbm_dri.c index ed64ad61bf0..b7da65be27b 100644 --- a/src/gbm

Re: [Mesa-dev] [PATCH 01/18] egl/wayland: Fix ARGB/XRGB transposition in config map

2018-02-09 Thread Daniel Stone
Hi Eric, On 8 February 2018 at 18:40, Eric Engestrom wrote: > On February 8, 2018 2:06:23 PM UTC, Daniel Stone > wrote: >> When 0b2b7191214eb moved from an if tree to a struct to map between >> wl_drm formats and EGLConfigs, it transposed the mapping between XRGB >> and

Re: [Mesa-dev] [PATCH 05/18] egl/wayland: Add format enums to visual map

2018-02-09 Thread Daniel Stone
Hi Emil, On 8 February 2018 at 21:56, Emil Velikov wrote: > On 8 February 2018 at 14:05, Daniel Stone wrote: >> Extend the visual map from only containing names and bitmasks, to also >> carrying the three format enums we need. These are the DRIImage format >> tokens fo

Re: [Mesa-dev] GBM, KMS/DRM, triple buffering

2018-02-09 Thread Daniel Stone
Hi Carlos, On 9 February 2018 at 08:33, Carlos Rafael Giani wrote: > I want to implement triple buffering instead of double buffering for a > program that uses EGL on GBM on a KMS-enabled platform. So far, I used > kmscube as an example. > > However, I do not see where I can specify that I want

Re: [Mesa-dev] [PATCH 00/18] Wayland/GBM format cleanups and 10bpc BGR

2018-02-09 Thread Daniel Stone
Hi, On 8 February 2018 at 22:47, Emil Velikov wrote: > On 8 February 2018 at 14:05, Daniel Stone wrote: >> When Ilia asked for suggestions on where to look to add 10bpc BGR >> support to the GBM and Wayland EGL backends, I had a quick look; the >> number of places the fo

Re: [Mesa-dev] GBM, KMS/DRM, triple buffering

2018-02-12 Thread Daniel Stone
Hi Carlos, On 9 February 2018 at 18:26, Carlos Rafael Giani wrote: > thanks, I got it to work - almost. I am running this on the i.MX6 with > etnaviv. I do get some flickering, however. Flickering shouldn't be seen. It's possible that you're calling things incorrectly, however. For example: /*

Re: [Mesa-dev] [PATCH] i965: Fix bugs in intel_from_planar

2018-02-12 Thread Daniel Stone
Hi Jason, On 10 February 2018 at 06:50, Jason Ekstrand wrote: > intel_from_planar(__DRIimage *parent, int plane, void *loaderPrivate) > { > int width, height, offset, stride, dri_format, index; > -const struct intel_image_format *f; > __DRIimage *image; > > -if (parent == NULL

Re: [Mesa-dev] [PATCH 04/17] egl/gbm: Fix compiler warning about visual matching.

2018-02-12 Thread Daniel Stone
Hi Eric, On 10 February 2018 at 16:32, Eric Anholt wrote: > The compiler doesn't know that num_visuals > 0. Reviewed and pushed, thanks! Cheers, Daniel ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/list

Re: [Mesa-dev] [PATCH] i965: Fix bugs in intel_from_planar

2018-02-12 Thread Daniel Stone
Hi, On 10 February 2018 at 06:50, Jason Ekstrand wrote: > -} else if (parent->planar_format == NULL) { > + > +const struct intel_image_format *f = parent->planar_format; > +const int nplanes = f ? f->nplanes : 1; > + > +if (plane > nplanes) { > + if (parent->modifier == DRM_

Re: [Mesa-dev] [PATCH] i965: Fix bugs in intel_from_planar

2018-02-12 Thread Daniel Stone
Hi, On 12 February 2018 at 17:16, Jason Ekstrand wrote: > On Mon, Feb 12, 2018 at 6:36 AM, Daniel Stone wrote: >> On further thought, I don't see how this could work at all. If we call >> fromPlanar on plane 0 of a non-planar image with an aux plane, we need >> to lan

[Mesa-dev] [PATCH] i965: Fix bugs in intel_from_planar

2018-02-12 Thread Daniel Stone
up in the planar_format == NULL case and the modifier was DRM_FORMAT_MOD_INVALID, we would end up segfaulting in isl_drm_modifier_has_aux. Cc: mesa-sta...@lists.freedesktop.org Fixes: 8f6e54c92966bb94a3f05f2cc7ea804273e125ad Signed-off-by: Daniel Stone --- src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH 09/16] vulkan/wsi: Add multiple planes to wsi_image_base

2018-02-13 Thread Daniel Stone
Hi Jason, This should be titled '... wsi_image', not '... wsi_image_base'. On 9 February 2018 at 23:43, Jason Ekstrand wrote: > diff --git a/src/vulkan/wsi/wsi_common_private.h > b/src/vulkan/wsi/wsi_common_private.h > index 503b2a0..c5002ec 100644 > --- a/src/vulkan/wsi/wsi_common_private.h > +

Re: [Mesa-dev] [PATCH 11/16] vulkan/wsi: Add modifiers support to wsi_create_native_image

2018-02-13 Thread Daniel Stone
ge_subresource, &image_layout); > + > + image->num_planes = 1; > + image->sizes[0] = reqs.size; > + image->row_pitches[0] = image_layout.rowPitch; > + image->offsets[0] = 0; assert(image_layout.offset == 0) Unlikely since it's a dedicated-alloc image, but ... (or is this already guaranteed and I can't read?) The rest looks good to me though. Thanks very much for taking this on! Reviewed-by: Daniel Stone Cheers, Daniel ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 12/16] anv/image: Separate modifiers from legacy scanout

2018-02-13 Thread Daniel Stone
Hi Jason, On 9 February 2018 at 23:43, Jason Ekstrand wrote: > - /* For images using modifiers, we require a dedicated allocation > - * and we set the BO tiling to match the tiling of the underlying > - * modifier. This is a bit unfortunate as this is completely > -

Re: [Mesa-dev] [PATCH 13/16] anv/image: Add support for modifiers for WSI

2018-02-13 Thread Daniel Stone
Hi Jason, On 9 February 2018 at 23:43, Jason Ekstrand wrote: > +static void > +get_wsi_format_modifier_properties_list(const struct anv_physical_device > *physical_device, > +VkFormat vk_format, > +struct > wsi_form

Re: [Mesa-dev] [PATCH 12/16] anv/image: Separate modifiers from legacy scanout

2018-02-14 Thread Daniel Stone
Hi, On 13 February 2018 at 22:15, Jason Ekstrand wrote: > On Tue, Feb 13, 2018 at 10:48 AM, Daniel Stone wrote: >> On 9 February 2018 at 23:43, Jason Ekstrand wrote: >> For actual scanout, the kernel very specifically demands that if the >> BO is X-tiled, then set_

Re: [Mesa-dev] [PATCH 13/16] anv/image: Add support for modifiers for WSI

2018-02-14 Thread Daniel Stone
Hi, On 13 February 2018 at 22:29, Jason Ekstrand wrote: > On Tue, Feb 13, 2018 at 10:55 AM, Daniel Stone wrote: >> > + uint64_t modifiers[] = { >> > + DRM_FORMAT_MOD_LINEAR, >> > + I915_FORMAT_MOD_X_TILED, >> > + I915_FORMAT_MOD_Y_TILED,

Re: [Mesa-dev] [PATCH 12/16] anv/image: Separate modifiers from legacy scanout

2018-02-14 Thread Daniel Stone
On 14 February 2018 at 11:39, Daniel Stone wrote: > On 13 February 2018 at 22:15, Jason Ekstrand wrote: >> On Tue, Feb 13, 2018 at 10:48 AM, Daniel Stone wrote: >>> On 9 February 2018 at 23:43, Jason Ekstrand wrote: >>> For actual scanout, the kernel very speci

Re: [Mesa-dev] [PATCH 13/16] anv/image: Add support for modifiers for WSI

2018-02-14 Thread Daniel Stone
On 14 February 2018 at 16:21, Jason Ekstrand wrote: > On Wed, Feb 14, 2018 at 4:13 AM, Daniel Stone wrote: >> Suggested fixup: https://hastebin.com/zaheyoriwa >> >> This makes sure we only try to allocate with modifiers when _both_ >> winsys and driver support

Re: [Mesa-dev] [PATCH 12/16] anv/image: Separate modifiers from legacy scanout

2018-02-14 Thread Daniel Stone
On 14 February 2018 at 16:27, Jason Ekstrand wrote: > On Wed, Feb 14, 2018 at 3:39 AM, Daniel Stone wrote: >> > On Tue, Feb 13, 2018 at 10:48 AM, Daniel Stone >> > wrote: >> >> For actual scanout, the kernel very specifically demands that if the >> >

Re: [Mesa-dev] [PATCH 12/16] anv/image: Separate modifiers from legacy scanout

2018-02-14 Thread Daniel Stone
On 14 February 2018 at 17:23, Jason Ekstrand wrote: > On Wed, Feb 14, 2018 at 8:43 AM, Daniel Stone wrote: >> Linear is unchanged as it's implicit. X tiling has to take the >> workaround, in case anyone wants to display it. > > I'm not sure I buy that. Fr

Re: [Mesa-dev] [PATCH 13/16] anv/image: Add support for modifiers for WSI

2018-02-14 Thread Daniel Stone
On 14 February 2018 at 17:58, Jason Ekstrand wrote: > I've added the following to the top of wsi_create_native_image: > > + /* If we don't support modifiers, the winsys code shouldn't be asking > for > +* an image with modifiers. > +*/ > + assert(wsi->supports_modifiers || num_modifier

[Mesa-dev] [PATCH] egl/wayland: Always use in-tree wayland-egl-backend.h

2018-02-15 Thread Daniel Stone
/series/31663/ [1]: https://cgit.freedesktop.org/wayland/wayland/commit/?id=9fa60983b579 Signed-off-by: Daniel Stone Cc: Emil Velikov Cc: mesa-sta...@lists.freedesktop.org Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=105103 --- src/egl/drivers/dri2/egl_dri2.h | 2 +- 1 file changed, 1 insertio

Re: [Mesa-dev] [PATCH mesa] egl/wayland: check for invalid format index

2018-02-15 Thread Daniel Stone
Hi Eric, On 15 February 2018 at 11:17, Eric Engestrom wrote: > Daniel, `w` seemed like the "least bad" thing to return in this case; > would you prefer `0`? I guess Coverity doesn't know it can never be invalid. We look up a visual in the table using dri2_surf->format, whcih is only ever set fro

[Mesa-dev] [PATCH] i965: Fix aux-surface size check

2018-02-15 Thread Daniel Stone
height (!). As the ISL aux surface is not recorded in the DRIimage, we cannot easily access it to check. Instead, store the aux size from when we do have the ISL surface to hand, and check against that later when we go to access the aux surface. Signed-off-by: Daniel Stone Fixes: c2c4e5bae3ba

Re: [Mesa-dev] [PATCH mesa v2] egl/wayland: check for invalid format index

2018-02-15 Thread Daniel Stone
Hi Eric, On 15 February 2018 at 15:11, Eric Engestrom wrote: > v2: just tell the compiler to assume the format will always be found, as > it comes from the table itself to begin with. Thanks, assume() is a new one on me! Cheers, Daniel ___ mesa-dev ma

[Mesa-dev] [PATCH 05/11] anv/image: Add support for modifiers for WSI

2018-02-15 Thread Daniel Stone
From: Jason Ekstrand This adds support for the modifiers portion of the WSI "extension". Reviewed-by: Daniel Stone Signed-off-by: Daniel Stone --- src/intel/vulkan/anv_formats.c | 38 ++ src/intel/vulkan/anv_imag

[Mesa-dev] [PATCH 04/11] anv/image: Separate modifiers from legacy scanout

2018-02-15 Thread Daniel Stone
#x27;s clear in the driver when we're using modifiers and when we're using legacy paths. v2 (Jason Ekstrand): - Rename legacy_scanout to needs_set_tiling Reviewed-by: Daniel Stone Signed-off-by: Daniel Stone --- src/intel/vulkan/anv_device.c | 22 ++ src/intel/

[Mesa-dev] [PATCH v10 00/11] Modifiers for X11 EGL/Vulkan, WL/VK

2018-02-15 Thread Daniel Stone
Hi, I don't actually know which revision we're up to by now, so I decided to rebase at v10. This is a slight evolution of Jason's 16-patch series posted on Feb 9th. It adds: - support for multi-plane buffers and modifiers to the Vulkan WSI - support for zwp_linux_dmabuf_v1 to the Vulkan Waylan

[Mesa-dev] [PATCH 11/11] egl/x11: Re-allocate buffers if format is suboptimal

2018-02-15 Thread Daniel Stone
Reviewed-by: Daniel Stone Signed-off-by: Daniel Stone --- src/egl/drivers/dri2/egl_dri2.c | 2 ++ src/egl/drivers/dri2/egl_dri2.h | 2 ++ src/egl/drivers/dri2/platform_x11_dri3.c | 3 +++ src/loader/loader_dri3_helper.c | 37 src

[Mesa-dev] [PATCH 10/11] egl/x11: Support DRI3 v1.1

2018-02-15 Thread Daniel Stone
-Francis Ratté-Boulianne Reviewed-by: Eric Engestrom Reviewed-by: Emil Velikov Reviewed-by: Daniel Stone Signed-off-by: Daniel Stone --- src/egl/drivers/dri2/egl_dri2.c | 7 + src/egl/drivers/dri2/egl_dri2.h | 3 + src/egl/drivers/dri2/platform_x11_dri3.c | 105

[Mesa-dev] [PATCH 08/11] vulkan/wsi: Add support for DRI3 v1.1

2018-02-15 Thread Daniel Stone
Adds support for multiple planes and buffer modifiers. v4: Rename "has_dri3_v1_1" to "has_dri3_modifiers" Signed-off-by: Daniel Stone --- src/vulkan/wsi/wsi_common_x11.c | 183 1 file changed, 166 insertions(+), 17 deletions(-) dif

[Mesa-dev] [PATCH 06/11] meson: Move Wayland dmabuf to wayland-drm

2018-02-15 Thread Daniel Stone
As the comment notes: linux-dmabuf has nothing to do with wayland-drm, but we need a single place to build these files we can use from both EGL and Vulkan, which is guaranteed to be included before both EGL and Vulkan WSI. Signed-off-by: Daniel Stone Cc: Emil Velikov --- src/egl/meson.build

[Mesa-dev] [PATCH 03/11] vulkan/wsi: Add modifiers support to wsi_create_native_image

2018-02-15 Thread Daniel Stone
ition all of the structs used in wsi_common to the real extension structs. Reviewed-by: Daniel Stone Signed-off-by: Daniel Stone --- src/vulkan/wsi/wsi_common.c | 164 src/vulkan/wsi/wsi_common.h | 23 + src/vulkan/wsi/wsi_common_private.h

[Mesa-dev] [PATCH 02/11] vulkan/wsi: Add drm_modifier member to wsi_image

2018-02-15 Thread Daniel Stone
Not yet used anywhere. Signed-off-by: Daniel Stone Reviewed-by: Jason Ekstrand --- src/vulkan/Makefile.am | 1 + src/vulkan/wsi/meson.build | 2 +- src/vulkan/wsi/wsi_common.c | 3 +++ src/vulkan/wsi/wsi_common_private.h | 1 + 4 files changed, 6 insertions(+), 1

[Mesa-dev] [PATCH 01/11] vulkan/wsi: Add multiple planes to wsi_image

2018-02-15 Thread Daniel Stone
Not currently used. Signed-off-by: Daniel Stone Reviewed-by: Jason Ekstrand --- src/vulkan/wsi/wsi_common.c | 20 src/vulkan/wsi/wsi_common_private.h | 9 + src/vulkan/wsi/wsi_common_wayland.c | 11 +++ src/vulkan/wsi/wsi_common_x11.c | 11

[Mesa-dev] [PATCH 07/11] vulkan/wsi/wayland: Add support for zwp_dmabuf

2018-02-15 Thread Daniel Stone
zwp_linux_dmabuf_v1 lets us use multi-planar images and buffer modifiers. Signed-off-by: Daniel Stone --- src/vulkan/Makefile.am | 10 +++ src/vulkan/Makefile.sources | 4 +- src/vulkan/wsi/meson.build | 2 + src/vulkan/wsi/wsi_common_wayland.c | 138

[Mesa-dev] [PATCH 09/11] vulkan/wsi: Return VK_SUBOPTIMAL_KHR for X11

2018-02-15 Thread Daniel Stone
From: Louis-Francis Ratté-Boulianne When it is detected that a window could have been flipped but has been copied because of suboptimal format/modifier. The Vulkan client should then re-create the swapchain. Signed-off-by: Louis-Francis Ratté-Boulianne Reviewed-by: Daniel Stone Signed-off-by

Re: [Mesa-dev] [PATCH 11/11] egl/x11: Re-allocate buffers if format is suboptimal

2018-02-15 Thread Daniel Stone
Hi Michel, On 15 February 2018 at 16:14, Michel Dänzer wrote: > On 2018-02-15 04:57 PM, Daniel Stone wrote: >> @@ -885,6 +901,11 @@ loader_dri3_swap_buffers_msc(struct >> loader_dri3_drawable *draw, >>if (!loader_dri3_have_image_blit(draw) &&

[Mesa-dev] [PATCH v2] i965: Fix aux-surface size check

2018-02-16 Thread Daniel Stone
height (!). As the ISL aux surface is not recorded in the DRIimage, we cannot easily access it to check. Instead, store the aux size from when we do have the ISL surface to hand, and check against that later when we go to access the aux surface. Signed-off-by: Daniel Stone Fixes: c2c4e5bae3ba

Re: [Mesa-dev] [PATCH 03/11] vulkan/wsi: Add modifiers support to wsi_create_native_image

2018-02-16 Thread Daniel Stone
Hi, On 15 February 2018 at 19:46, Jason Ekstrand wrote: > On Thu, Feb 15, 2018 at 7:57 AM, Daniel Stone wrote: >> + image_modifier_count = 0; >> + for (uint32_t l = 0; l < num_modifier_lists; l++) { >> + /* Walk the modifier lists and const

Re: [Mesa-dev] [PATCH 09/11] vulkan/wsi: Return VK_SUBOPTIMAL_KHR for X11

2018-02-16 Thread Daniel Stone
On 15 February 2018 at 21:38, Jason Ekstrand wrote: > On Thu, Feb 15, 2018 at 7:57 AM, Daniel Stone wrote: >> @@ -138,7 +140,7 @@ wsi_x11_connection_create(const VkAllocationCallbacks >> *alloc, >>return NULL; >> >> dri3_cookie = x

Re: [Mesa-dev] [PATCH 10/11] egl/x11: Support DRI3 v1.1

2018-02-16 Thread Daniel Stone
Hi, On 15 February 2018 at 22:44, Jason Ekstrand wrote: > On Thu, Feb 15, 2018 at 7:57 AM, Daniel Stone wrote: >> + draw->ext->image->queryDmaBufModifiers(draw->dri_screen, format, >> +

Re: [Mesa-dev] [PATCH kmscube v3] formats: use weston's egl config matching logic, centralize format

2018-02-16 Thread Daniel Stone
Hi Ilia, On 10 February 2018 at 01:49, Ilia Mirkin wrote: > The GBM surface format has to match the DRM mode. Both are used in a > couple of places, so unify it so that it's only set in one place. Note > that the GBM and DRM formats are identical. Pushed this one to master with review, thanks fo

Re: [Mesa-dev] [Mesa-stable] [PATCH] egl/wayland: Always use in-tree wayland-egl-backend.h

2018-02-16 Thread Daniel Stone
On 16 February 2018 at 13:56, Emil Velikov wrote: > On 15 February 2018 at 13:13, Emil Velikov wrote: >> On 15 February 2018 at 09:23, Daniel Stone wrote: >>> A recent patchset to Wayland[0] migrated Mesa's libwayland-egl backend >>> into Wayland itself,

Re: [Mesa-dev] [Mesa-stable] [PATCH] egl/wayland: Don't use DRM format codes for SHM

2017-03-01 Thread Daniel Stone
Hi Emil, On 15 February 2017 at 12:23, Emil Velikov wrote: > On 13 February 2017 at 17:54, Daniel Stone wrote: >>> From a quick look shm_handle_format() comes to mind. Keep in mind that >>> I'm not that big of an expert on the Wayland code so I might have >>

Re: [Mesa-dev] [PATCH 0/3] GBM modifier plumbing

2017-03-13 Thread Daniel Stone
Hey Kristian, On 13 March 2017 at 17:31, Kristian H. Kristensen wrote: > Jason Ekstrand writes: >> I was talking to Daniel today and I think we also need another some sort of >> GL or GBM api that gives you the modifiers supported for >> rendering/texturing. One option would be a gbm_get_modifi

Re: [Mesa-dev] [PATCH 0/3] GBM modifier plumbing

2017-03-13 Thread Daniel Stone
Hi, On Mon, 13 Mar 2017 at 7:08 pm, Jason Ekstrand wrote: > On Mon, Mar 13, 2017 at 11:53 AM, Kristian H. Kristensen < > k...@bitplanet.net> wrote: > > Daniel Stone writes: > > > I guess it depends on how much asymmetry there is between texture and > > rende

Re: [Mesa-dev] [PATCH] egl: Fix for not setting EGL_BAD_ALLOC on try to create multiple window surfaces on single window v2.

2017-03-22 Thread Daniel Stone
Hi Adrian, Thanks for the patch! Some comments inline. On 22 March 2017 at 13:40, Adrian Pielech wrote: > +struct list_head window_list = {NULL, NULL}; > + > +/* Checks if a EGLWindow already have a created surface */ > +static inline bool > +is_window_associated_with_surface(EGLNativeWindowType

Re: [Mesa-dev] [PATCH 5/5] [v2] gbm: Export a per plane getter for offset

2017-03-23 Thread Daniel Stone
Hi, On 8 March 2017 at 05:31, Ben Widawsky wrote: > Unlike stride, there was no previous offset getter, so it can be right > on the first try. > > v2: Return EINVAL when plane is greater than total planes to make it > match the similar APIs. > Avoid leak after fromPlanar (Daniel) > Make sure when

Re: [Mesa-dev] [PATCH 26/34] i965: Pretend that CCS modified images are two planes

2017-03-23 Thread Daniel Stone
Hi Ben, On 24 January 2017 at 06:21, Ben Widawsky wrote: > @@ -1018,9 +1018,18 @@ intel_from_planar(__DRIimage *parent, int plane, void > *loaderPrivate) > int width, height, offset, stride, dri_format, index; > struct intel_image_format *f; > __DRIimage *image; > - > -if (par

Re: [Mesa-dev] [PATCH 5/5] [v2] gbm: Export a per plane getter for offset

2017-03-23 Thread Daniel Stone
Hi, On 23 March 2017 at 14:47, Jason Ekstrand wrote: > On Thu, Mar 23, 2017 at 6:16 AM, Daniel Stone wrote: >> Returning int64_t is annoying because the relevant interface demands >> we need uint32_t, so we need to do casts in users. Given that the >> offset is useless

[Mesa-dev] [PATCH] gbm: Use unsigned for BO offset getter

2017-03-23 Thread Daniel Stone
. This means that returning 0 as an error value is harmless, allowing us to change the return type to uint32_t in order to avoid signed/unsigned confusion in callers. Signed-off-by: Daniel Stone Cc: Ben Widawsky Cc: Jason Ekstrand --- src/gbm/backends/dri/gbm_dri.c | 18 +- src/gbm

Re: [Mesa-dev] [PATCH] gbm: Use unsigned for BO offset getter

2017-03-23 Thread Daniel Stone
Hi, On 23 March 2017 at 15:24, Jason Ekstrand wrote: > Reviewed-by: Jason Ekstrand > > Please land soon so the old API can exist for as short a time as possible. > :-) Landed with such haste that I forgot to change the two of your Cc tags to R-b. :( Sorry. At least that API unexists now. To ss

Re: [Mesa-dev] [PATCH 2/2] egl: Add dma_buf_import_modifiers for glvnd

2017-08-21 Thread Daniel Stone
Hi Emil, On 19 August 2017 at 00:57, Emil Velikov wrote: > On 11 August 2017 at 11:18, Daniel Stone wrote: >> On 31 July 2017 at 15:15, Daniel Stone wrote: >>> Make sure we advertise the new entrypoints to libglvnd's EGL dispatch. >> >> Anyone? >>

Re: [Mesa-dev] [PATCH 2/2] egl/drm: set the VISUAL_TYPE alongside the VISUAL_ID

2017-08-21 Thread Daniel Stone
Hi Emil, On 21 August 2017 at 15:18, Emil Velikov wrote: > On 11 July 2017 at 14:27, Emil Velikov wrote: >> According to the EGL_KHR_platform_gbm extension: >> >> For each EGLConfig that belongs to the GBM platform, the >> EGL_NATIVE_VISUAL_ID attribute is a GBM color format, such as >>

Re: [Mesa-dev] [PATCH 2/2] egl/drm: set the VISUAL_TYPE alongside the VISUAL_ID

2017-08-22 Thread Daniel Stone
Hi, On 21 August 2017 at 18:30, Emil Velikov wrote: > On 21 August 2017 at 15:44, Daniel Stone wrote: >> My take on it is that the visual types are defined by the platform, >> and 0 is a perfectly sensible visual type for a platform which does >> not actually have any.

Re: [Mesa-dev] [PATCH 00/10] egl: mixed bag of fixes/cleanups

2017-08-28 Thread Daniel Stone
Hi Emil, On 27 August 2017 at 11:20, Emil Velikov wrote: > egl: simplify refcounting after screen creation Acked-by: Daniel Stone > egl/wayland: plug leaks in dri2_wl_create_window_surface() error path > egl/wayland: polish object teardown in dri2_wl_destroy_surface Reviewed-b

Re: [Mesa-dev] [PATCH 1/5] dri/image: Add a format modifier attributes query

2017-08-28 Thread Daniel Stone
On 16 August 2017 at 20:30, Jason Ekstrand wrote: > + /** > +* dmabuf format modifier attribute query for a given format and modifier. > +* > +* \param fourccThe format to query. If this format is not supported > by > +* the driver, return false. > +* \p

Re: [Mesa-dev] [PATCH 2/5] gbm: Add a gbm_device_get_format_modifier_plane_count function

2017-08-28 Thread Daniel Stone
On 16 August 2017 at 20:30, Jason Ekstrand wrote: > +/** Get the number of planes that are required for a given format+modifier > + * > + * \param gbm The gbm device returned from gbm_create_device() > + * \param format The format to query > + * \param modifier The modifier to query > + */ > +int

Re: [Mesa-dev] [PATCH 3/5] i965/screen: Make a parameter const

2017-08-28 Thread Daniel Stone
On 16 August 2017 at 20:30, Jason Ekstrand wrote: > This gets rid of some compiler warnings. Reviewed-by: Daniel Stone ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 00/10] egl: mixed bag of fixes/cleanups

2017-08-29 Thread Daniel Stone
Hi Emil, On 29 August 2017 at 11:28, Emil Velikov wrote: > On 28 August 2017 at 14:50, Daniel Stone wrote: >>> egl/wayland: plug leaks in dri2_wl_create_window_surface() error path >>> egl/wayland: polish object teardown in dri2_wl_destroy_surface >> &

Re: [Mesa-dev] [PATCH] anv: fix build issues on release build

2017-09-12 Thread Daniel Stone
On 12 September 2017 at 11:11, Tapani Pälli wrote: > Fixes: d083bc1c4b ("anv: wire up vk_errorf macro to do debug reporting") > Signed-off-by: Tapani Pälli Reviewed-by: Daniel Stone ___ mesa-dev mailing list mesa-dev@lists.freed

Re: [Mesa-dev] [PATCH 0/4] i965: Properly handle CCS in glxBindTexImageEXT

2017-09-13 Thread Daniel Stone
rs interact. So, I've gone through the code and it all makes sense to me. It does also fix corruption with GLX/BindTexImage compositing managers when CCS is being used. But without any insight into why the original codepath is the way it is, the best

Re: [Mesa-dev] [PATCH v2 2/4] gbm: Add a gbm_device_get_format_modifier_plane_count function

2017-09-14 Thread Daniel Stone
On 5 September 2017 at 16:48, Jason Ekstrand wrote: > +/** Get the number of planes that are required for a given format+modifier > + * > + * \param gbm The gbm device returned from gbm_create_device() > + * \param format The format to query > + * \param modifier The modifier to query > + */ > +in

Re: [Mesa-dev] [PATCH v2 0/4] gbm: Add a modifier_plane_count query

2017-09-14 Thread Daniel Stone
ith the GBM_EXPORT fix, series is: Reviewed-by: Daniel Stone Cheers, Daniel ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 7/9] wayland-drm: static inline wayland_drm_buffer_get

2017-09-15 Thread Daniel Stone
urce_instance_of() call into wl_resource_get_destroy_listener() would be far more foolproof, but it doesn't remove the need for linkage. That being said, all other patches in the series are: Reviewed-by: Daniel Stone Cheers, Daniel ___ mesa-dev

Re: [Mesa-dev] [RFC] Allow fd.o to join forces with X.Org

2018-10-17 Thread Daniel Stone
On Tue, 16 Oct 2018 at 08:17, Peter Hutterer wrote: > On Mon, Oct 15, 2018 at 10:49:24AM -0400, Harry Wentland wrote: > > + \item Support free and open source projects through the > > freedesktop.org > > + infrastructure. For projects outside the scope of item (\ref{1}) > > support > > +

Re: [Mesa-dev] [RFC] Allow fd.o to join forces with X.Org

2018-10-26 Thread Daniel Stone
Hi, On Fri, 26 Oct 2018 at 11:57, Daniel Vetter wrote: > On Fri, Oct 26, 2018 at 10:13:51AM +1000, Peter Hutterer wrote: > > On Wed, Oct 17, 2018 at 02:37:25PM +0200, Daniel Vetter wrote: > > > On Wed, Oct 17, 2018 at 2:05 PM Daniel Stone wrote: > > > > Yeah, I thi

[Mesa-dev] [PATCH] vulkan/wsi/wayland: Respect non-blocking AcquireNextImage

2018-10-30 Thread Daniel Stone
If the client has requested that AcquireNextImage not block at all, with a timeout of 0, then don't make any non-blocking calls. This will still potentially block infinitely given a non-infinte timeout, but the fix for that is much more involved. Signed-off-by: Daniel Stone Cc: mes

[Mesa-dev] [PATCH] gbm: Clarify acceptable formats for gbm_bo

2018-11-01 Thread Daniel Stone
olves removing a 'see also' for gbm_bo_format, since we can't also use \sa to refer to a family of anonymous #defines. Signed-off-by: Daniel Stone Reported-by: Pekka Paalanen --- src/gbm/main/gbm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gbm/main/

Re: [Mesa-dev] [PATCH] docs: mention EXT_shader_implicit_conversions

2018-11-02 Thread Daniel Stone
On Fri, 2 Nov 2018 at 15:58, Emil Velikov wrote: > Ff| 2 ++ > docs/relnotes/19.0.0.html | 2 +- > 2 files changed, 3 insertions(+), 1 deletion(-) > create mode 100644 Ff > > diff --git a/Ff b/Ff > new file mode 100644 > index 000..804e31ab99e > --- /dev/null > ++

Re: [Mesa-dev] [PATCH 1/2] gbm: Introduce a helper function for printing GBM format names.

2018-11-06 Thread Daniel Stone
Hi, On Tue, 6 Nov 2018 at 13:11, Eric Engestrom wrote: > On Friday, 2018-11-02 14:40:49 -0700, Eric Anholt wrote: > > +GBM_EXPORT char * > > +gbm_format_get_name(uint32_t gbm_format, struct gbm_format_name_desc *desc) > > +{ > > Actually, This won't work with the two GBM_BO_FORMAT_{X,A}RGB; y

Re: [Mesa-dev] [PATCH 3/3] egl: Improve the debugging of gbm format matching in DRI configs.

2018-11-08 Thread Daniel Stone
at R8 > libEGL debug: No DRI config supports native format GR88 > > is a lot easier to understand. Series is: Reviewed-by: Daniel Stone ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [Mesa-stable] [PATCH] vulkan/wsi/wayland: Respect non-blocking AcquireNextImage

2018-11-16 Thread Daniel Stone
Hi Emil, On Thu, 8 Nov 2018 at 15:26, Emil Velikov wrote: > On Tue, 30 Oct 2018 at 12:57, Daniel Stone wrote: > > If the client has requested that AcquireNextImage not block at all, with > > a timeout of 0, then don't make any non-blocking calls. > > > > T

Re: [Mesa-dev] [PATCH rfc 0/3] Be able to disable EGL/GLX_EXT_buffer_age

2018-07-05 Thread Daniel Stone
r usage. Due to currently > only out of tree lima driver need it, and not sure if this is > the right way to disable it, so I send this RFC before lima be > able to upstream. Series is: Acked-by: Daniel Stone Cheers, Daniel ___ mesa-d

Re: [Mesa-dev] [PATCH v3] dri3: For 1.2, use root window instead of pixmap drawable

2018-07-26 Thread Daniel Stone
der_buffer() to return NULL and breaks > rendering when using GLX_DOUBLEBUFFER on pixmaps. > > Query the root window of the pixmap on first init, and use the root > window instead of the pixmap drawable for get_supported_modifiers() > and pixmap_from_buffers(). Looks good to me, thanks

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

2018-08-06 Thread Daniel Stone
Hi Juan, On Tue, 5 Jun 2018 at 18:23, Juan A. Suarez Romero wrote: > On Tue, 2018-06-05 at 12:41 +0100, Daniel Stone wrote: > > > - In Wayland/Mesa, the surface is not resized at the time the native > > > window is > > > resized; this is done in *eglSw

Re: [Mesa-dev] [PATCH] egl/wayland: do not leak wl_buffer when it is locked

2018-08-08 Thread Daniel Stone
(causing all buffers to be released) by the time they destroy their EGLSurface, but that's of course never going to happen. So, assuming there's no unexpected consequences I haven't seen, this is: Reviewed-by: Daniel Stone Cheers, Daniel ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v4 2/2] wayland/egl: update surface size on window resize

2018-08-08 Thread Daniel Stone
tely, > and if user calls eglQuerySurface() it will return the new resized > values. I'm pretty confident that these two patches do the right thing; series is: Reviewed-by: Daniel Stone Thanks a lot for your patience & persistence! Cheers, Daniel _

Re: [Mesa-dev] [PATCH 0/3] Use GitLab CI to build Mesa

2018-08-08 Thread Daniel Stone
e), and create the > image. You can eke out a little bit of a speed improvement by using the go-faster runes from before 'apt-get update' here: https://gitlab.freedesktop.org/wayland/weston/blob/master/.gitlab-ci.yml#L6 Anyway, this all looks great, and I'm really excited to

Re: [Mesa-dev] [PATCH] egl/wayland: do not leak wl_buffer when it is locked

2018-08-08 Thread Daniel Stone
Hi Juan, On Wed, 8 Aug 2018 at 17:40, Juan A. Suarez Romero wrote: > On Wed, 2018-08-08 at 17:21 +0100, Daniel Stone wrote: > > On Thu, 2 Aug 2018 at 10:02, Juan A. Suarez Romero > > wrote: > > > If color buffer is locked, do not set its wayland buffer to NULL; >

Re: [Mesa-dev] [PATCH 1/3] egl/drm: use gbm_dri_device() wrapper

2018-08-13 Thread Daniel Stone
d any new ones. So, series is: Acked-by: Daniel Stone Cheers, Daniel ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] docs: consistent language

2021-03-16 Thread Daniel Stone
On Mon, 15 Mar 2021 at 20:54, Jason Ekstrand wrote: > Three comments: > > 1. +1 > 2. Khronos has generally standardized on American English in their > specs so I guess that provides some sort of prior art or something. > 3. I'd generally be a fan of encouraging American spellings in common > c

Re: [Mesa-dev] docs: consistent language

2021-03-16 Thread Daniel Stone
On Tue, 16 Mar 2021 at 13:08, Jason Ekstrand wrote: > On March 16, 2021 05:06:53 Daniel Stone wrote: > >> On Mon, 15 Mar 2021 at 20:54, Jason Ekstrand >> wrote: >> >>> Three comments: >>> >>> 1. +1 >>> 2. Khronos has generally st

Re: [Mesa-dev] piglit default main branch results - Re: Rename "master" branch to "main"?

2021-03-29 Thread Daniel Stone
On Tue, 30 Mar 2021 at 01:34, Ilia Mirkin wrote: > https://cgit.freedesktop.org/piglit > > This still displays the "master" branch by default. I think you're > supposed to change ... something ... in the repo, which indicates > which is the default branch. > *jedi handwave* no it doesn't > On

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
Hi Marek, On Mon, 19 Apr 2021 at 11:48, Marek Olšák wrote: > *2. Explicit synchronization for window systems and modesetting* > > The producer is an application and the consumer is a compositor or a > modesetting driver. > > *2.1. The Present request* > So the 'present request' is an ioctl, rig

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
Hi, On Tue, 20 Apr 2021 at 13:01, Daniel Vetter wrote: > - We live in a post xf86-video-$vendor world, and all these other > compositors rely on implicit sync. You're not going to be able to get > rid of them anytime soon. What's worse, all the various EGL/vk buffer > sharing things also r

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
Hi, On Mon, 19 Apr 2021 at 11:48, Marek Olšák wrote: > Deadlock mitigation to recover from segfaults: > - The kernel knows which process is obliged to signal which fence. This > information is part of the Present request and supplied by userspace. > - If the producer crashes, the kernel signals

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
On Tue, 20 Apr 2021 at 15:58, Christian König < ckoenig.leichtzumer...@gmail.com> wrote: > Am 20.04.21 um 16:53 schrieb Daniel Stone: > > On Mon, 19 Apr 2021 at 11:48, Marek Olšák wrote: > >> Deadlock mitigation to recover from segfaults: >> - The kernel knows whic

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
Hi, On Tue, 20 Apr 2021 at 16:16, Christian König < ckoenig.leichtzumer...@gmail.com> wrote: > Am 20.04.21 um 17:07 schrieb Daniel Stone: > > If the compositor no longer has a guarantee that the buffer will be ready > for composition in a reasonable amount of time (which

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
Hi, On Tue, 20 Apr 2021 at 16:46, Jason Ekstrand wrote: > It's still early in the morning here and I'm not awake yet so sorry if > this comes out in bits and pieces... > No problem, it's helpful. If I weren't on this thread I'd be attempting to put together a 73-piece chest of drawers whose ins

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
On Tue, 20 Apr 2021 at 17:25, Marek Olšák wrote: > Daniel, imagine hardware that can only do what Windows does: future fences > signalled by userspace whenever userspace wants, and no kernel queues like > we have today. > > The only reason why current AMD GPUs work is because they have a ring > b

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
On Tue, 20 Apr 2021 at 19:00, Christian König < ckoenig.leichtzumer...@gmail.com> wrote: > Am 20.04.21 um 19:44 schrieb Daniel Stone: > > But winsys is something _completely_ different. Yes, you're using the GPU > to do things with buffers A, B, and C to produce buffer

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
Hi, On Tue, 20 Apr 2021 at 19:54, Daniel Vetter wrote: > So I can mostly get behind this, except it's _not_ going to be > dma_fence. That thing has horrendous internal ordering constraints > within the kernel, and the one thing that doesn't allow you is to make > a dma_fence depend upon a usersp

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
Hi, On Tue, 20 Apr 2021 at 20:03, Bas Nieuwenhuizen wrote: > On Tue, Apr 20, 2021 at 8:16 PM Daniel Stone wrote: > >> It's a jarring transition. If you take a very narrow view and say 'it's >> all GPU work in shared buffers so it should all work the same&#x

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-20 Thread Daniel Stone
Hi, On Tue, 20 Apr 2021 at 20:30, Daniel Vetter wrote: > The thing is, you can't do this in drm/scheduler. At least not without > splitting up the dma_fence in the kernel into separate memory fences > and sync fences I'm starting to think this thread needs its own glossary ... I propose we us

Re: [Mesa-dev] [RFC] Linux Graphics Next: Explicit fences everywhere and no BO fences - initial proposal

2021-04-30 Thread Daniel Stone
Hi, On Fri, 30 Apr 2021 at 10:35, Daniel Vetter wrote: > On Fri, Apr 30, 2021 at 11:08 AM Christian König > wrote: > > This doesn't work in hardware. We at least need to setup a few registers > > and memory locations from inside the VM which userspace shouldn't have > > access to when we want th

Re: [Mesa-dev] Linux Graphics Next: Userspace submission update

2021-06-01 Thread Daniel Stone
Hi, On Tue, 1 Jun 2021 at 14:18, Michel Dänzer wrote: > On 2021-06-01 2:10 p.m., Christian König wrote: > > Am 01.06.21 um 12:49 schrieb Michel Dänzer: > >> There isn't a choice for Wayland compositors in general, since there can > >> be arbitrary other state which needs to be applied atomically

Re: [Mesa-dev] Linux Graphics Next: Userspace submission update

2021-06-02 Thread Daniel Stone
Hi Christian, On Tue, 1 Jun 2021 at 13:51, Christian König wrote: > Am 01.06.21 um 14:30 schrieb Daniel Vetter: > > If you want to enable this use-case with driver magic and without the > > compositor being aware of what's going on, the solution is EGLStreams. > > Not sure we want to go there, bu

<    2   3   4   5   6   7   8   9   >