Re: [Mesa-dev] Intel: ABI for DRM format modifiers with multi-planar images

2021-06-09 Thread Chad Versace
; > for those cases which put the CCS after each main surface at some > > > fixed calculation offset based on width, height, and stride. Then the > > > one modifier would apply independently to the three different planes. > > > > > > --Jason > &

[Mesa-dev] Intel: ABI for DRM format modifiers with multi-planar images

2021-06-09 Thread Chad Versace
The Problem: For a given 3-tuple (multi-planar format, DRM format modifier, chipset), we need Intel ABI that decides (a) the value of VkDrmFormatModifierPropertiesEXT::drmFormatModifierPlaneCount and (b) the content of each "modifier" plane. For example, suppose drmFormatModifierPlaneCount is 2

Re: [Mesa-dev] [PATCH] egl/dri: fix error value with unknown drm format

2018-11-15 Thread Chad Versace
el Landwerlin > > Fixes: 20de7f9f226401 ("egl/dri2: support for creating images out of dma > > buffers") > > That matches the spec, so: > Reviewed-by: Eric Engestrom > > That said, Topi specifically wrote this, in his commit (20de7f9f226401): > > v4 (Cha

[Mesa-dev] [PATCH] freedreno/drm: Move drm_msm.h to include/drm-uapi

2018-11-08 Thread Chad Versace
So the future Vulkan driver can share it. I tested Meson, but not Autotools nor Android.mk. Signed-off-by: Chad Versace --- Makefile.am| 1 + .../drivers/freedreno/drm => include/drm-uapi}/msm_drm.h | 0 src/gallium/drivers/freedr

[Mesa-dev] [PATCH] i965: Fix -Wswitch on INTEL_COPY_STREAMING_LOAD

2018-11-08 Thread Chad Versace
The warning is emitted when building without INLINE_SSE41. --- src/mesa/drivers/dri/i965/intel_tiled_memcpy.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c b/src/mesa/drivers/dri/i965/intel_tiled_memcpy.c index 836f83d4a43..f

Re: [Mesa-dev] [PATCH] i965: Lift restriction in external textures for EGLImage support

2018-11-08 Thread Chad Versace
On Thu 08 Nov 2018, Chad Versace wrote: > On Wed 31 Oct 2018, Aditya Swarup wrote: > > For Intel platforms, we support external textures only for EGLImages > > created with EGL_EXT_image_dma_buf_import. This restriction seems to > > be Intel specific and not presen

Re: [Mesa-dev] [PATCH] i965: Lift restriction in external textures for EGLImage support

2018-11-08 Thread Chad Versace
ES_EGL_image_external to only dma_buf-imported EGLImages. The pivotal comment below is mine, according git-blame, from 2015-04-09. > - /* We support external textures only for EGLImages created with > -* EGL_EXT_image_dma_buf_import. We may lift that restriction in the > future. &g

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

2018-11-05 Thread Chad Versace
s much more involved. > > Signed-off-by: Daniel Stone > Cc: mesa-sta...@lists.freedesktop.org > Cc: Chad Versace > Cc: Jason Ekstrand > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=108540 Reviewed-by: Chad Versace

Re: [Mesa-dev] [PATCH 2/5] anv: Drop some VK_IMAGE_TILING_OPTIMAL checks

2018-10-10 Thread Chad Versace
On Mon 01 Oct 2018, Jason Ekstrand wrote: > The DRM format modifiers extension adds a TILING_DRM_FORMAT_MODIFIER > which will be used for modifiers so we can no longer use OPTIMAL to > indicate tiled inside the driver. > --- > src/intel/vulkan/anv_formats.c | 2 +- > src/intel/vulkan/anv_image

Re: [Mesa-dev] [PATCH] anv: Fill out protected memory properties

2018-09-28 Thread Chad Versace
d memory" > --- > src/intel/vulkan/anv_device.c | 7 +++ > 1 file changed, 7 insertions(+) Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] Status Update: Vulkan DRM format modifiers

2018-09-28 Thread Chad Versace
tl;dr VK_EXT_image_drm_format_modifier will be in the next weekly release of the Vulkan spec. But only in the git repo (asciidoc + xml) not the official html spec nor headers. It should be enabled in the html and headers in the following week. ... Hi everyone, VK_EXT_image_drm_format_modifier is

Re: [Mesa-dev] [PATCH] anv/blorp: Emit depth flush and stall prior to HiZ clears

2018-08-31 Thread Chad Versace
On Fri 31 Aug 2018, Jason Ekstrand wrote: > On Fri, Aug 31, 2018 at 4:35 PM Nanley Chery <[1]nanleych...@gmail.com> wrote: > > If that doesn't fix it, I think it'd be good to comment that we've > observed this pipecontrol be necessary for 3DSTATE_WM_HZ_OP. > > >  I'm happy to add some co

Re: [Mesa-dev] [PATCH] anv/blorp: Emit depth flush and stall prior to HiZ clears

2018-08-31 Thread Chad Versace
form a hiz clear op, does the hw require the WA before the second one? After all, no true "rendering operations" occurred between the two. Ahh! Why does the specification fail to specify??? Anyway, I convinced myself that genX(blorp_exec) emits the requested bits before the problemati

Re: [Mesa-dev] [PATCH 3/7] dri: Define DRI_MutableRenderBuffer extensions

2018-08-17 Thread Chad Versace
On Tue 14 Aug 2018, Tapani Pälli wrote: > Hi Chad; > > On 08/08/2018 06:53 PM, Tapani Pälli wrote: > > > > > > On 07.08.2018 21:16, Chad Versace wrote: > > > On Mon 06 Aug 2018, Chad Versace wrote: > > > > On Fri 03 Aug 2018, Tapani Pälli wrote:

Re: [Mesa-dev] [PATCH 1/4] vulkan: Add central copy of entrypoints/extensions code.

2018-08-09 Thread Chad Versace
On Wed 08 Aug 2018, Bas Nieuwenhuizen wrote: > --- > src/vulkan/Makefile.am| 3 + > src/vulkan/util/meson.build | 2 + > src/vulkan/util/vk_entrypoints_gen.py | 515 ++ > src/vulkan/util/vk_extensions.py | 92 + > src/vulkan/util/vk_e

Re: [Mesa-dev] [PATCH 0/4] Merge vulkan API generators.

2018-08-09 Thread Chad Versace
On Wed 08 Aug 2018, Bas Nieuwenhuizen wrote: > radv was always just mirroring a derived version of the anv > version, sometimes hacked together and sometimes very behind. > > As we grow more vulkan drivers this repetition makes even less > sense, so lets merge them. I took the anv generators as th

Re: [Mesa-dev] [PATCH 3/4] anv: Use central api generation scripts.

2018-08-09 Thread Chad Versace
On Wed 08 Aug 2018, Bas Nieuwenhuizen wrote: > This became kind of messy as python imports cannot really look up > parent/sibling directories. I saw some scripts use sys.path but > that became even more messy due to import locations. > > I also move the selections of the dispatch table out of the

Re: [Mesa-dev] [PATCH 3/4] anv: Use central api generation scripts.

2018-08-09 Thread Chad Versace
On Tue 07 Aug 2018, Dylan Baker wrote: > Quoting Bas Nieuwenhuizen (2018-08-07 16:14:33) > > >

Re: [Mesa-dev] [PATCH] egl/wayland: Set width/height of EGLSurface at creation

2018-08-07 Thread Chad Versace
Ignore this in favor of jasuarez's patch. On Tue 07 Aug 2018, Chad Versace wrote: > Fixes dEQP-EGL.functional.color_clears.single_context.gles2.rgb565_window. > > After initializing _EGLSurface::Width and ::Height to 0, Mesa did not > update the width and height again unt

Re: [Mesa-dev] [PATCH 3/7] dri: Define DRI_MutableRenderBuffer extensions

2018-08-07 Thread Chad Versace
On Mon 06 Aug 2018, Chad Versace wrote: > On Fri 03 Aug 2018, Tapani Pälli wrote: > > One tiny nit below but for patches 3,4 and 5: > > > > Reviewed-by: Tapani Pälli > > > > Special thanks for the documentation. I want to go through rest of changes >

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

2018-08-07 Thread Chad Versace
> CC: Brendan King > CC: mesa-sta...@lists.freedesktop.org > Tested-by: Eric Engestrom > --- > src/egl/drivers/dri2/platform_wayland.c | 3 +++ > 1 file changed, 3 insertions(+) Hah. I just sent an equivalent patch to the list. I'll drop my patch. Just for patch 1, Review

[Mesa-dev] [PATCH] egl/wayland: Set width/height of EGLSurface at creation

2018-08-07 Thread Chad Versace
Fixes dEQP-EGL.functional.color_clears.single_context.gles2.rgb565_window. After initializing _EGLSurface::Width and ::Height to 0, Mesa did not update the width and height again until the DRI driver fetched its buffers. This produced weird behavior: * Immediately after surface creation, eglQue

Re: [Mesa-dev] [PATCH 3/7] dri: Define DRI_MutableRenderBuffer extensions

2018-08-06 Thread Chad Versace
th the > image building. I'm hoping to resolve those soon and get back to business. > > On 07/31/2018 09:18 PM, Chad Versace wrote: > > Define extensions DRI_MutableRenderBufferDriver and > > DRI_MutableRenderBufferLoader. These are the two halves for > > EGL_KHR_mutabl

Re: [Mesa-dev] [PATCH 2/2] egl/surfaceless: Allow DRMless fallback.

2018-08-02 Thread Chad Versace
On Tue 17 Jul 2018, Eric Engestrom wrote: > On Thursday, 2018-07-12 16:13:55 -0700, David Riley wrote: > > Allow platform_surfaceless to use swrast even if DRM is not available. > > To be used to allow a fuzzer for virgl to be run on a jailed VM without > > hardware GL or DRM support. > > > > Sign

[Mesa-dev] [PATCH 4/7] dri: Add param driCreateConfigs(mutable_render_buffer)

2018-08-02 Thread Chad Versace
If set, then the config will have __DRI_ATTRIB_MUTABLE_RENDER_BUFFER, which translates to EGL_MUTABLE_RENDER_BUFFER_BIT_KHR. Not used yet. --- src/gallium/state_trackers/dri/dri_screen.c | 4 ++-- src/mesa/drivers/dri/common/utils.c | 9 +++-- src/mesa/drivers/dri/common/utils.h

[Mesa-dev] [PATCH 6/7] egl/android: Implement EGL_KHR_mutable_render_buffer

2018-08-02 Thread Chad Versace
Specifically, implement the extension DRI_MutableRenderBufferLoader. However, the loader enables EGL_KHR_mutable_render_buffer only if the DRI driver implements its half of the extension, DRI_MutableRenderBufferDriver. --- src/egl/drivers/dri2/egl_dri2.c | 38 +- src/egl/drivers/dri2/

[Mesa-dev] [PATCH 1/7] egl: Simplify queries for EGL_RENDER_BUFFER

2018-07-31 Thread Chad Versace
There exist *two* queryable EGL_RENDER_BUFFER states in EGL: eglQuerySurface(EGL_RENDER_BUFFER) and eglQueryContext(EGL_RENDER_BUFFER). These changes eliminate potentially very fragile code in the upcoming EGL_KHR_mutable_render_buffer implementation. * eglQuerySurface(EGL_RENDER_BUFFER) The i

[Mesa-dev] [PATCH 4/7] dri: Add param driCreateConfigs(mutable_render_buffer)

2018-07-31 Thread Chad Versace
If set, then the config will have __DRI_ATTRIB_MUTABLE_RENDER_BUFFER, which translates to EGL_MUTABLE_RENDER_BUFFER_BIT_KHR. Not used yet. --- src/gallium/state_trackers/dri/dri_screen.c | 4 ++-- src/mesa/drivers/dri/common/utils.c | 9 +++-- src/mesa/drivers/dri/common/utils.h

[Mesa-dev] [PATCH 3/7] dri: Define DRI_MutableRenderBuffer extensions

2018-07-31 Thread Chad Versace
Define extensions DRI_MutableRenderBufferDriver and DRI_MutableRenderBufferLoader. These are the two halves for EGL_KHR_mutable_render_buffer. Outside the DRI code there is one additional change. Add gl_config::mutableRenderBuffer to match __DRI_ATTRIB_MUTABLE_RENDER_BUFFER. Neither are used yet.

[Mesa-dev] [PATCH 5/7] egl/main: Add bits for EGL_KHR_mutable_render_buffer

2018-07-31 Thread Chad Versace
A follow-up patch enables EGL_KHR_mutable_render_buffer for Android. This patch is separate from the Android patch because I think it's easier to review the platform-independent bits separately. --- src/egl/main/eglapi.c | 1 + src/egl/main/eglconfig.c | 3 ++ src/egl/main/egldisplay.h | 1

[Mesa-dev] [PATCH 7/7] i965: Implement EGL_KHR_mutable_render_buffer

2018-07-31 Thread Chad Versace
Tested with a low-latency handwriting application on Android Nougat on the Chrome OS Pixelbook (codename Eve) with Kabylake. --- src/mesa/drivers/dri/i965/brw_context.c | 86 +++- src/mesa/drivers/dri/i965/brw_context.h | 12 src/mesa/drivers/dri/i965/intel_screen.c | 13

[Mesa-dev] [PATCH 6/7] egl/android: Implement EGL_KHR_mutable_render_buffer

2018-07-31 Thread Chad Versace
Specifically, implement the extension DRI_MutableRenderBufferLoader. However, the loader enables EGL_KHR_mutable_render_buffer only if the DRI driver implements its half of the extension, DRI_MutableRenderBufferDriver. --- src/egl/drivers/dri2/egl_dri2.c | 38 +- src/egl/drivers/dri2/

[Mesa-dev] [PATCH 2/7] egl/dri2: In dri2_make_current, return early on failure

2018-07-31 Thread Chad Versace
This pulls an 'else' block into the function's main body, making the code easier to follow. Without this change, the upcoming EGL_KHR_mutable_render_buffer patch transforms dri2_make_current() into spaghetti. --- src/egl/drivers/dri2/egl_dri2.c | 29 +++-- 1 file changed,

[Mesa-dev] [PATCH 0/7] egl, i965: Implement EGL_KHR_mutable_render_buffer

2018-07-31 Thread Chad Versace
droid EGL. * Patch 7 implements DRI_MutableRenderBufferDriver for i965. This series is tagged at: http://git.kiwitree.net/cgit/~chadv/mesa/log/?h=refs/tags/chadv/review/i965-mutable-render-buffer-v01 Chad Versace (7): egl: Simplify queries for EGL_RENDER_BUFFER egl/dri2: In dri2_make_curr

Re: [Mesa-dev] [PATCH 0/7] egl, i965: Implement EGL_KHR_mutable_render_buffer

2018-07-31 Thread Chad Versace
Ignore this series. It's incomplete. It seems mesa-dev had hiccups last night. I'll resend now. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH 7/7] i965: Implement EGL_KHR_mutable_render_buffer

2018-07-30 Thread Chad Versace
Tested with a low-latency handwriting application on Android Nougat on the Chrome OS Pixelbook (codename Eve) with Kabylake. --- src/mesa/drivers/dri/i965/brw_context.c | 86 +++- src/mesa/drivers/dri/i965/brw_context.h | 12 src/mesa/drivers/dri/i965/intel_screen.c | 13

[Mesa-dev] [PATCH] drisw: Fix build on Android Nougat, which lacks shm (v2)

2018-07-30 Thread Chad Versace
In commit cf54bd5e8, dri_sw_winsys.c began using to support the new functions putImageShm, getImageShm in DRI_SWRastLoader. But Android began supporting System V shared memory only in Oreo. Nougat has no shm headers. Fix the build by ifdef'ing out the shm code on Nougat. Fixes: cf54bd5e8 "drisw:

[Mesa-dev] [PATCH 0/7] egl, i965: Implement EGL_KHR_mutable_render_buffer

2018-07-30 Thread Chad Versace
droid EGL. * Patch 7 implements DRI_MutableRenderBufferDriver for i965. This series is tagged at: http://git.kiwitree.net/cgit/~chadv/mesa/log/?h=refs/tags/chadv/review/i965-mutable-render-buffer-v01 Chad Versace (7): egl: Simplify queries for EGL_RENDER_BUFFER egl/dri2: In dri2_make_curr

[Mesa-dev] [PATCH 1/7] egl: Simplify queries for EGL_RENDER_BUFFER

2018-07-30 Thread Chad Versace
There exist *two* queryable EGL_RENDER_BUFFER states in EGL: eglQuerySurface(EGL_RENDER_BUFFER) and eglQueryContext(EGL_RENDER_BUFFER). These changes eliminate potentially very fragile code in the upcoming EGL_KHR_mutable_render_buffer implementation. * eglQuerySurface(EGL_RENDER_BUFFER) The i

[Mesa-dev] [PATCH 3/7] dri: Define DRI_MutableRenderBuffer extensions

2018-07-30 Thread Chad Versace
Define extensions DRI_MutableRenderBufferDriver and DRI_MutableRenderBufferLoader. These are the two halves for EGL_KHR_mutable_render_buffer. Outside the DRI code there is one additional change. Add gl_config::mutableRenderBuffer to match __DRI_ATTRIB_MUTABLE_RENDER_BUFFER. Neither are used yet.

[Mesa-dev] [PATCH 2/7] egl/dri2: In dri2_make_current, return early on failure

2018-07-30 Thread Chad Versace
This pulls an 'else' block into the function's main body, making the code easier to follow. Without this change, the upcoming EGL_KHR_mutable_render_buffer patch transforms dri2_make_current() into spaghetti. --- src/egl/drivers/dri2/egl_dri2.c | 29 +++-- 1 file changed,

[Mesa-dev] [PATCH 5/7] egl/main: Add bits for EGL_KHR_mutable_render_buffer

2018-07-30 Thread Chad Versace
A follow-up patch enables EGL_KHR_mutable_render_buffer for Android. This patch is separate from the Android patch because I think it's easier to review the platform-independent bits separately. --- src/egl/main/eglapi.c | 1 + src/egl/main/eglconfig.c | 3 ++ src/egl/main/egldisplay.h | 1

Re: [Mesa-dev] [PATCH mesa] anv: don't crash on vkDestroyDevice(NULL)

2018-07-30 Thread Chad Versace
On Thu 26 Jul 2018, Eric Engestrom wrote: > On Thursday, 2018-07-26 02:03:58 -0700, Jason Ekstrand wrote: > > On Thu, Jul 26, 2018 at 1:50 AM Eric Engestrom > > wrote: > > > > > On Wednesday, 2018-07-25 14:00:29 -0700, Dylan Baker wrote: > > > > Quoting Eric Engestrom (2018-07-25 11:45:56) > > >

Re: [Mesa-dev] [PATCH] anv: add more swapchain formats

2018-07-30 Thread Chad Versace
, 11 insertions(+), 5 deletions(-) > Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] xlib: fix build break from _swrast_map_soft_renderbuffer() call

2018-07-30 Thread Chad Versace
On Fri 27 Jul 2018, Brian Paul wrote: > We need to pass the new flip_y argument. > --- > src/mesa/drivers/x11/xm_buffer.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Thanks Brian. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http

Re: [Mesa-dev] [PATCH 2/2] i965: implement MESA_framebuffer_flip_y [v3]

2018-07-27 Thread Chad Versace
2 +- > 9 files changed, 43 insertions(+), 45 deletions(-) For the series, Reviewed-by: Chad Versace I'll push soon. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] gallium/auxiliary: Fix Autotools on Android (v2)

2018-07-26 Thread Chad Versace
On Wed 25 Jul 2018, Tomasz Figa wrote: > Hi Chad, > > On Wed, Jul 25, 2018 at 10:11 AM Chad Versace > wrote: > > > > Problem 1: u_debug_stack_android.cpp transitively included > > "pipe/p_compiler.h", but src/gallium/include was missing from the C++ >

[Mesa-dev] [PATCH] gallium/auxiliary: Fix Autotools on Android (v2)

2018-07-24 Thread Chad Versace
Problem 1: u_debug_stack_android.cpp transitively included "pipe/p_compiler.h", but src/gallium/include was missing from the C++ include path. Problem 2: Add -std=c++11 to AM_CXXFLAGS. Android's libbacktrace headers require C++11, but the Android toolchain (at least in the Chrome OS SDK) does not

[Mesa-dev] [PATCH] gallium/auxiliary: Fix Autotools on Android

2018-07-24 Thread Chad Versace
u_debug_stack_android.cpp transitively included "pipe/p_compiler.h", but src/gallium/include was missing from the C++ include path. Cc: Gurchetan Singh Cc: Eric Engestrom --- src/gallium/auxiliary/Makefile.am | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxili

Re: [Mesa-dev] [PATCH] drisw: Fix build on Android Nougat

2018-07-24 Thread Chad Versace
ping for review On Wed 18 Jul 2018, Chad Versace wrote: > In commit cf54bd5e8, dri_sw_winsys.c began using to support > the new functions putImageShm, getImageShm in DRI_SWRastLoader. But > Android began supporting System V shared memory only in Oreo. Nougat has > no shm headers.

[Mesa-dev] [PATCH] drisw: Fix build on Android Nougat

2018-07-20 Thread Chad Versace
In commit cf54bd5e8, dri_sw_winsys.c began using to support the new functions putImageShm, getImageShm in DRI_SWRastLoader. But Android began supporting System V shared memory only in Oreo. Nougat has no shm headers. Fix the build by ifdef'ing out the shm code on Nougat. Fixes: cf54bd5e8 "drisw:

Re: [Mesa-dev] [PATCH v2 2/2] egl/surfaceless: Allow DRMless fallback.

2018-07-18 Thread Chad Versace
The two patches look correct to me. Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/2] intel/blorp: Add a blorp_filter enum for use in blorp_blit

2018-07-18 Thread Chad Versace
On Thu 12 Jul 2018, Jason Ekstrand wrote: > On Wed, Jun 27, 2018 at 5:55 PM Chad Versace <[1]chadvers...@chromium.org> > wrote: > > On Tue 26 Jun 2018, Jason Ekstrand wrote: > > At the moment, this is entirely internal but we'll expose it to clients >

Re: [Mesa-dev] [PATCH 1/2] mesa: MESA_framebuffer_flip_y extension [v3]

2018-07-18 Thread Chad Versace
On Wed 11 Jul 2018, Chad Versace wrote: > +Ken, I had a question about GLboolean. I call you by name in the > comments below. > > On Fri 29 Jun 2018, Fritz Koenig wrote: > > Adds an extension to glFramebufferParameteri > > that will specify if the framebuffer i

Re: [Mesa-dev] [PATCH 1/2] mesa: MESA_framebuffer_flip_y extension [v3]

2018-07-11 Thread Chad Versace
docs/specs/MESA_framebuffer_flip_y.spec > b/docs/specs/MESA_framebuffer_flip_y.spec > new file mode 100644 > index 00..dca77a9541 > --- /dev/null > +++ b/docs/specs/MESA_framebuffer_flip_y.spec > @@ -0,0 +1,84 @@ > +Name > + > +MESA_framebuffer_flip_y > + &

[Mesa-dev] [PATCH 2/2] anv/android: Fix type error in call to vk_errorf()

2018-06-27 Thread Chad Versace
In a single call to vk_errorf() in the Android code, the arguments were swapped. The bug has existed since day one. Chrome OS used to forgive the warning, but it is now a compilation error. Fixes: 053d4c32 "anv: Implement VK_ANDROID_native_buffer (v9)" Cc: Tapani Pälli Cc: Tomasz Figa --- src/i

[Mesa-dev] [PATCH 1/2] anv/android: Fix Autotools build for VK_ANDROID_native_buffer

2018-06-27 Thread Chad Versace
Changes to vk.xml and anv_entrypoints_gen.py broke the Autotools build on Android. The changes undef'd the VK_ANDROID_native_buffer entrypoints in anv_entrypoints.h. Fix it with CPPFLAGS += -DVK_USE_PLATFORM_ANDROID_KHR. See-Also: 63525ba7 "android: enable VK_ANDROID_native_buffer" Cc: Tapani Päl

Re: [Mesa-dev] [PATCH 2/2] intel/blorp: Take an explicit filter parameter in blorp_blit

2018-06-27 Thread Chad Versace
"If the source and destination dimensions are identical, no > + *filtering is applied." > + * > + * Using BLORP_FILTER_NONE will also handle the upsample case by > + * replicating the one value in the source to all values in the > +

Re: [Mesa-dev] [PATCH 1/2] intel/blorp: Add a blorp_filter enum for use in blorp_blit

2018-06-27 Thread Chad Versace
On Tue 26 Jun 2018, Jason Ekstrand wrote: > At the moment, this is entirely internal but we'll expose it to clients > of the BLORP API in the next commit. > --- > src/intel/blorp/blorp.h | 8 ++ > src/intel/blorp/blorp_blit.c | 212 +++ > src/intel/blorp/blor

Re: [Mesa-dev] [PATCH 1/2] mesa : MESA_framebuffer_flip_y extension

2018-06-27 Thread Chad Versace
On Wed 27 Jun 2018, Chad Versace wrote: > On Fri 15 Jun 2018, Fritz Koenig wrote: > > On Tue, Jun 12, 2018 at 12:28 PM Chad Versace > > wrote: > > > > > > On Thu 07 Jun 2018, Fritz Koenig wrote: > > > > > --- a/src/mesa/main/extensions_table.

Re: [Mesa-dev] [PATCH 1/2] mesa : MESA_framebuffer_flip_y extension

2018-06-27 Thread Chad Versace
On Fri 15 Jun 2018, Fritz Koenig wrote: > On Tue, Jun 12, 2018 at 12:28 PM Chad Versace > wrote: > > > > On Thu 07 Jun 2018, Fritz Koenig wrote: > > > --- a/src/mesa/main/extensions_table.h > > > +++ b/src/mesa/main/extensions_t

[Mesa-dev] [PATCH] gallium: Fix automake for Android

2018-06-27 Thread Chad Versace
Chromium OS uses Autotools and pkg-config when building Mesa for Android. The gallium drivers were failing to find the headers and libraries for zlib and Android's libbacktrace. v2: - Don't add a check for zlib.pc. configure.ac already checks for zlib.pc elsewhere. [for tfiga] - Check for

[Mesa-dev] [PATCH] gallium: Fix automake for Android

2018-06-18 Thread Chad Versace
Chromium OS uses Autotools and pkg-config when building Mesa for Android. The gallium drivers were failing to find the headers and libraries for zlib and Android's libbacktrace. --- configure.ac | 6 +- src/gallium/Automake.inc | 5 + src/gallium/auxiliary/Mak

Re: [Mesa-dev] [PATCH 1/2] mesa : MESA_framebuffer_flip_y extension

2018-06-12 Thread Chad Versace
On Thu 07 Jun 2018, Fritz Koenig wrote: > Adds an extension to glFramebufferParameteri > that will specify if the framebuffer is vertically > flipped. Historically system framebuffers are > vertically flipped and user framebuffers are not. > Checking to see the state was done by looking at > the na

Re: [Mesa-dev] [PATCH 2/2] i965: implement MESA_framebuffer_flip_y

2018-06-12 Thread Chad Versace
On Thu 07 Jun 2018, Jason Ekstrand wrote: > There are also a pile of places where we look at rb->Name == 0 to determine if > it's a window-system framebuffer For the public record, Fritz and I discussed this in person. I recommend that the patches replace each checking on rb->Name == 0 to instead

Re: [Mesa-dev] [PATCH 2/2] i965: add {X, A}BGR2101010 to 'intel_image_formats'

2018-05-15 Thread Chad Versace
On Mon 07 May 2018, Miguel Casas wrote: > This patch adds {X,A}BGR2101010 entries to the list of supported > 'intel_image_formats'. > > Bug: https://crbug.com/776093 > --- > src/mesa/drivers/dri/i965/intel_screen.c | 6 ++ > 1 file changed, 6 insertions(+) Rev

Re: [Mesa-dev] [PATCH 1/2] dri_util: Add R10G10B10{A, X}2 translation between DRI and mesa_format.

2018-05-15 Thread Chad Versace
t; 1 file changed, 8 insertions(+) Reviewed-by: Chad Versace We should drop the space in "{A, X}" before committing, but the committer can apply that fix. No need to resend. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freede

Re: [Mesa-dev] [PATCH 2/2] i965: add {X, A}BGR2101010 to |intel_image_formats|

2018-05-04 Thread Chad Versace
On Wed 02 May 2018, Miguel Casas wrote: > This patch adds {X,A}BGR2101010 entries to the list of supported > |intel_image_formats|. > > BUG=https://crbug.com/776093 > TEST=Compile and deploy mesa this patch, then playback > a VP9 Profile 2 video with sw decoder using crrev.com/c/897894. > --- > s

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

2018-05-04 Thread Chad Versace
Thanks for the patches. The code looks good. All my suggestions are merely nitpicks to make the patches follow Mesa conventions. In general, if you have questions about commit message style, examine the git log for previous patches that touched the same files and directories as yours. Sometimes, d

Re: [Mesa-dev] Allocator Nouveau driver, Mesa EXT_external_objects, and DRM metadata import interfaces

2018-02-21 Thread Chad Versace
On Wed 21 Feb 2018, Daniel Vetter wrote: > On Tue, Feb 20, 2018 at 10:14:47PM -0800, Chad Versace wrote: > > On Thu 21 Dec 2017, Daniel Vetter wrote: > > > On Thu, Dec 21, 2017 at 12:22 AM, Kristian Kristensen > > > wrote: > > >> On Wed, Dec 20, 2017 at 12:

Re: [Mesa-dev] [PATCH 6/6] intel/isl: Improve the documentation on get_default_aux_state

2018-02-21 Thread Chad Versace
On Wed 24 Jan 2018, Jason Ekstrand wrote: > Cc: Chad Versace > --- > src/intel/isl/isl.h | 24 > 1 file changed, 20 insertions(+), 4 deletions(-) > > diff --git a/src/intel/isl/isl.h b/src/intel/isl/isl.h > index e3acb0e..cf53b5a 100644 > -

Re: [Mesa-dev] [PATCH 1/6] i965/state: Ignore intel_obj->_Format for depth/stencil and ETC2

2018-02-21 Thread Chad Versace
On Tue 20 Feb 2018, Jason Ekstrand wrote: > On Mon, Feb 19, 2018 at 10:01 AM, Chad Versace <[1]chadvers...@chromium.org> > wrote: > > On Wed 24 Jan 2018, Jason Ekstrand wrote: > > We're about to start letting the intel_obj->_Format be the "real"

[Mesa-dev] Update: Vulkan modifiers extension VK_EXT_image_drm_format_modifier

2018-02-20 Thread Chad Versace
As many of you know, I've been writing a Vulkan extension for DRM format modifiers, named VK_EXT_image_drm_format_modifier. The extension is very close to completion. I've submitted a branch to Khronos for review. It's receiving active review inside Khronos from some non-Mesa closed-source window-

Re: [Mesa-dev] Allocator Nouveau driver, Mesa EXT_external_objects, and DRM metadata import interfaces

2018-02-20 Thread Chad Versace
On Thu 21 Dec 2017, Daniel Vetter wrote: > On Thu, Dec 21, 2017 at 12:22 AM, Kristian Kristensen > wrote: >> On Wed, Dec 20, 2017 at 12:41 PM, Miguel Angel Vico >> wrote: >>> On Wed, 20 Dec 2017 11:54:10 -0800 Kristian Høgsberg >>> wrote: I'd like to see concrete examples of actual displ

Re: [Mesa-dev] [PATCH 4/6] i965/tex_image: Reference the renderbuffer miptree in setTexBuffer2

2018-02-19 Thread Chad Versace
_image_mt(brw, texImage, internal_format, mt->format, > mt); I was unsure whether this hunk should've used mt->format or image->format. After digging, I discovered that for EGLImages, image->format should == mt->format except (1) for depth-stencil formats, which we don't care about and (2) when intel_miptree_create_for_dri_image() does a rgbx->rgba fallback, in which case we definitely want mt->format instead of image->format. The hunk looks correct to me. Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/6] i965/state: Ignore intel_obj->_Format for depth/stencil and ETC2

2018-02-19 Thread Chad Versace
On Wed 24 Jan 2018, Jason Ekstrand wrote: > We're about to start letting the intel_obj->_Format be the "real" > texture format. For depth/stencil textures, this may be a combined > depth stencil format. For ETC2 on gen7 and earlier, this will be the > actual ETC2 format. This makes a bit more GL

Re: [Mesa-dev] [PATCH] vulkan: Update the XML and headers to 1.0.68

2018-01-25 Thread Chad Versace
On Wed 24 Jan 2018, Jason Ekstrand wrote: > --- > include/vulkan/vulkan.h| 54 --- > src/vulkan/registry/vk.xml | 91 > +- > 2 files changed, 130 insertions(+), 15 deletions(-) Acked-b

Re: [Mesa-dev] [PATCH v2 09/32] anv: Require a dedicated allocation for modified images

2017-12-02 Thread Chad Versace
On Wed 29 Nov 2017, Jason Ekstrand wrote: > On Wed, Nov 29, 2017 at 2:24 PM, Chad Versace <[1]chadvers...@chromium.org> > wrote: > > On Tue 28 Nov 2017, Jason Ekstrand wrote: > > This lets us set the BO tiling when we allocate the memory.  This is > > re

Re: [Mesa-dev] [PATCH v2 00/32] vulkan/wsi: Rework WSI to look a lot more like a layer

2017-12-02 Thread Chad Versace
or finished this off and making it more presentable, > > You might want to wait for Daniel or Chad to look some of it over, but > I'm happy to > give > > Reviewed-by: Dave Airlie > > for the whole series, it really makes the WSI and prime into a contained > space,

Re: [Mesa-dev] [PATCH v2 32/32] radv: Implement VK_KHR_get_surface_capabilities2

2017-12-02 Thread Chad Versace
ns(+) Reviewed-by: Chad Versace This is the end of the series, but I've left a few patches unreviewed. I'll revisit them now. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 31/32] vulkan/wsi: Initialize individual WSI interfaces in wsi_device_init

2017-12-02 Thread Chad Versace
fails if either of x11 or wayland initialization fails, even if the user requested only one of VK_KHR_{xcb,xlib,wayland}_surface. I filed https://bugs.freedesktop.org/show_bug.cgi?id=104039 . But this patch is just a refactor patch, and it preserves the existing (and possibly buggy) behavior. With the commit messag

Re: [Mesa-dev] [PATCH v2 29/32] vulkan/wsi: Add wrappers for all of the surface queries

2017-12-02 Thread Chad Versace
.c | 77 > + > src/vulkan/wsi/wsi_common.h | 72 +- > src/vulkan/wsi/wsi_common_private.h | 34 > 5 files changed, 192 insertions(+), 83 deletions(-) Patches 28 & 2

Re: [Mesa-dev] [PATCH v2 27/32] vulkan/wsi: Move wsi_swapchain to wsi_common_private.h

2017-12-02 Thread Chad Versace
hanged, 47 insertions(+), 45 deletions(-) Yay. It's becoming more layer-like. Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 26/32] vulkan/wsi: Add a helper for AcquireNextImage

2017-12-02 Thread Chad Versace
an/radv_wsi.c | 15 ++- > src/intel/vulkan/anv_wsi.c | 19 +++ > src/vulkan/wsi/wsi_common.c | 14 ++ > src/vulkan/wsi/wsi_common.h | 8 > 4 files changed, 43 insertions(+), 13 deletions(-) Patch

Re: [Mesa-dev] [PATCH v2 25/32] vulkan/wsi: move swapchain create/destroy to common code

2017-12-02 Thread Chad Versace
aiting to see DestroyFence here since patch 17. > for (uint32_t i = 0; i < chain->wsi->queue_family_count; i++) { >chain->wsi->DestroyCommandPool(chain->device, chain->cmd_pools[i], > &chain

Re: [Mesa-dev] [PATCH v2 23/32] vulkan/wsi: Move get_images into common code

2017-12-02 Thread Chad Versace
+ > 6 files changed, 40 insertions(+), 57 deletions(-) Patches 22 and 23 are Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 20/32] vulkan/wsi: Set a proper pWaitDstStageMask on the dummy submit

2017-12-02 Thread Chad Versace
On Fri 01 Dec 2017, Chad Versace wrote: > On Tue 28 Nov 2017, Jason Ekstrand wrote: > > Neither mesa driver really cares, but we should set it none the less for > > the sake of correctness. > > --- > > src/vulkan/wsi/wsi_common.c | 17 + > &g

Re: [Mesa-dev] [PATCH v2 20/32] vulkan/wsi: Set a proper pWaitDstStageMask on the dummy submit

2017-12-01 Thread Chad Versace
On Fri 01 Dec 2017, Chad Versace wrote: > On Tue 28 Nov 2017, Jason Ekstrand wrote: > > Neither mesa driver really cares, but we should set it none the less for > > the sake of correctness. > > --- > > src/vulkan/wsi/wsi_common.c | 17 + > &g

Re: [Mesa-dev] [PATCH v2 21/32] anv/wsi: Use the common QueuePresent code

2017-12-01 Thread Chad Versace
On Tue 28 Nov 2017, Jason Ekstrand wrote: > --- > src/intel/vulkan/anv_wsi.c | 63 > +- > 1 file changed, 6 insertions(+), 57 deletions(-) Reviewed-by: Chad Versace ___ mesa-dev mailing l

Re: [Mesa-dev] [PATCH v2 20/32] vulkan/wsi: Set a proper pWaitDstStageMask on the dummy submit

2017-12-01 Thread Chad Versace
stage_flags; Since VkSwapchain is required to be externally synchronized, you could embed stage_flags directly in struct wsi_swapchain, doubling its size when needed. But meh. Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 19/32] vulkan/wsi: Only wait on semaphores on the first swapchain

2017-12-01 Thread Chad Versace
On Tue 28 Nov 2017, Jason Ekstrand wrote: > --- > src/vulkan/wsi/wsi_common.c | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) Smart. I was expecting a patch like this after reading patch 17. Reviewed-by: Chad Versace ___

Re: [Mesa-dev] [PATCH v2 18/32] vulkan/wsi: Refactor result handling in queue_present

2017-12-01 Thread Chad Versace
sentInfo) > { > - VkResult result = VK_SUCCESS; > + VkResult final_result = VK_SUCCESS; Yes please. The goto improves this code. Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 17/32] radv/wsi: Move the guts of QueuePresent to wsi common

2017-12-01 Thread Chad Versace
fence creation to the common code, the fence destruction should also be moved from (anv|radv)_DestroySwapchainKHR to wsi_swapchain_finish(). But, since that migration doesn't affect the correctness of the patch, this patch is Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 16/32] vulkan/wsi: Add a WSI_FROM_HANDLE macro

2017-12-01 Thread Chad Versace
Patches 15 and 16 are Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 14/32] vulkan/wsi: Do image creation in common code

2017-12-01 Thread Chad Versace
ns(+), 303 deletions(-) This patch is Reviewed-by: Chad Versace This series is a good improvement over the old code :) But I found some nits: - The Vulkan spec, iirc, requires that vkCreateFoo not modify its output parameter on failure. The memset in this patch breaks that requireme

Re: [Mesa-dev] [PATCH v2 12/32] radv: Move wsi initialization later in physical_device_init

2017-11-30 Thread Chad Versace
On Tue 28 Nov 2017, Jason Ekstrand wrote: > We need it to happen after memory type setup so that we can query memory > types in wsi_device_init. > --- > src/amd/vulkan/radv_device.c | 13 +++-- > 1 file changed, 7 insertions(+), 6 deletions(-) Patches 10-12 are Reviewed-b

Re: [Mesa-dev] [PATCH v2 07/32] radv: Implement VK_EXT_external_memory_dma_buf

2017-11-30 Thread Chad Versace
si-prime branch, patches 6 & 7 are Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 05/32] vulkan/wsi: Add a mock image creation extension

2017-11-30 Thread Chad Versace
On Tue 28 Nov 2017, Jason Ekstrand wrote: > --- > src/vulkan/wsi/wsi_common.h | 18 ++ > 1 file changed, 18 insertions(+) Patches 1-5 are Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.

Re: [Mesa-dev] [PATCH v2 13/32] vulkan/wsi: Implement prime in a completely generic way

2017-11-30 Thread Chad Versace
int32_t > +anv_wsi_queue_get_family_index(VkQueue _queue) This function should have the 'radv' prefix, not 'anv'. Other than that, this patch is Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 00/12] anv: Add support for the variablePointers feature

2017-11-29 Thread Chad Versace
p://git.kiwitree.net/cgit/~chadv/vk-gl-cts/log/?h=pu fwiw, this series is Tested-by: Chad Versace btw, if you'd like to see the branch where I'm integrating this into ARC++, it's http://git.kiwitree.net/cgit/~chadv/mesa/log/?h

  1   2   3   4   5   6   7   8   9   10   >