Re: [Mesa-dev] [PATCH 05/12] isl: make locally used functions static

2016-10-12 Thread Chad Versace
On Tue 11 Oct 2016, Emil Velikov wrote: > From: Emil Velikov > > Signed-off-by: Emil Velikov > --- > src/intel/isl/isl.c | 4 ++-- > src/intel/isl/isl.h | 10 -- > 2 files changed, 2 insertions(+), 12 deletions(-) Patches 1-5 are Revi

Re: [Mesa-dev] [PATCH 12/12] aubinator: replace pragma once with ifndef guard

2016-10-12 Thread Chad Versace
t consistency. Do you plan to update all the headers? For patches 6-12, Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC] EGL_MESA_platform_surfaceless

2016-10-13 Thread Chad Versace
On Fri 23 Sep 2016, Chad Versace wrote: > diff --git a/docs/specs/EGL_MESA_platform_surfaceless.txt > b/docs/specs/EGL_MESA_platform_surfaceless.txt > new file mode 100644 > index 000..b700370 > --- /dev/null > +++ b/docs/specs/EGL_MESA_platform_surfaceless.txt > @@ -0

Re: [Mesa-dev] [RFC] EGL_MESA_platform_surfaceless

2016-10-13 Thread Chad Versace
On Thu 13 Oct 2016, Chad Versace wrote: > On Fri 23 Sep 2016, Chad Versace wrote: > > > diff --git a/docs/specs/EGL_MESA_platform_surfaceless.txt > > b/docs/specs/EGL_MESA_platform_surfaceless.txt > > new file mode 100644 > > index 000..b700370 > >

[Mesa-dev] [PATCH 2/6] egl: Don't advertise unsupported platform extensions

2016-10-13 Thread Chad Versace
Mesa's set of supported platform extensions depends on the autoconf option --with-egl-platforms=foo,bar,baz. If --with-egl-platforms lacks foo, then eglGetPlatformDisplay(EGL_PLATFORM_FOO, ...) unconditonally fails. So, if --with-egl-platforms lacks foo, then remove EGL_VENDOR_platform_foo from th

[Mesa-dev] [PATCH 1/6] docs: Add EGL_MESA_platform_surfaceless.txt (v2)

2016-10-13 Thread Chad Versace
+ +MESA_platform_surfaceless + +Name Strings + +EGL_MESA_platform_surfaceless + +Contributors + +Chad Versace +Haixia Shi +Stéphane Marchesin +Zach Reizner +Gurchetan Singh + +Contacts + +Chad Versace + +Status + +DRAFT + +Version + +Version 2, 2016-10-13

[Mesa-dev] [PATCH 0/6] EGL_MESA_platform_surfaceless (v2)

2016-10-13 Thread Chad Versace
et/cgit/~chadv/piglit/log/?h=review/EGL_MESA_platform_surfaceless-v01 Chad Versace (6): docs: Add EGL_MESA_platform_surfaceless.txt (v2) egl: Don't advertise unsupported platform extensions egl: Implement EGL_MESA_platform_surfaceless egl: Move old EGL_MESA_screen_surface spec doc/specs: R

[Mesa-dev] [PATCH 4/6] egl: Move old EGL_MESA_screen_surface spec

2016-10-13 Thread Chad Versace
It was the lone file in src/egl/docs. Move it to where the other specs live, in $MESA_TOP/docs/specs. --- .../EGL_MESA_screen_surface => docs/specs/OLD/EGL_MESA_screen_surface.txt | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename src/egl/docs/EGL_MESA_screen_surface => docs/specs/OLD/E

[Mesa-dev] [PATCH 5/6] doc/specs: Reference the Khronos registry XML

2016-10-13 Thread Chad Versace
Years ago Khronos replaced the registry's spec files with newfangled XML files. Update the reference in doc/specs/enum.txt accordingly. --- docs/specs/enums.txt | 16 ++-- 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/docs/specs/enums.txt b/docs/specs/enums.txt index

[Mesa-dev] [PATCH 3/6] egl: Implement EGL_MESA_platform_surfaceless

2016-10-13 Thread Chad Versace
--- include/EGL/eglmesaext.h | 5 + src/egl/main/eglapi.c | 42 +- src/egl/main/egldisplay.c | 21 + src/egl/main/egldisplay.h | 5 + src/egl/main/eglglobals.c | 3 +++ 5 files changed, 75 insertions(+), 1 deletion(-) dif

[Mesa-dev] [PATCH 6/6] docs/specs: Update allocated EGL enum values

2016-10-13 Thread Chad Versace
Document the EGL enum ranges for Mesa and those values allocated by the following extensions: EGL_MESA_drm_image EGL_MESA_platform_gbm EGL_MESA_platform_surfaceless EGL_WL_bind_wayland_display --- docs/specs/enums.txt | 27 ++- 1 file changed, 26 insertions

Re: [Mesa-dev] [PATCH 0/6] EGL_MESA_platform_surfaceless (v2)

2016-10-14 Thread Chad Versace
Some people privately asked why we need to create this EGL platform. I want to respond publicly. Mesa *already* *has* this EGL platform. In my view, the issue at hand isn't whether to create or to not create the platform. It's whether to specify its behavior (formally in an extension spec) or not.

Re: [Mesa-dev] [PATCH v2 4/7] egl/surfaceless: tweak surfaceless_add_configs_for_visuals()

2016-10-14 Thread Chad Versace
On Fri 16 Sep 2016, Emil Velikov wrote: > From: Emil Velikov > > Analogous to previous commit. > > v2: Use correct comparison in loop conditional (Eric) > Use valid C initializer (Gurchetan) > > Signed-off-by: Emil Velikov > Reviewed-by: Gurchetan Singh > --- > src/egl/drivers/dri2/platf

Re: [Mesa-dev] [PATCH] egl/surfaceless: use correct index when accesing the visual

2016-10-14 Thread Chad Versace
On Fri 14 Oct 2016, Emil Velikov wrote: > From: Emil Velikov > > i is used for the driver_configs, while j is for the visuals. > > Fixes: 4b8a55809eb ("egl/surfaceless: tweak > surfaceless_add_configs_for_visuals()") > Reported-by: Chad Versace > Cc: C

[Mesa-dev] [PATCH] egl/surfaceless: Fix comparison between pointer and integer

2016-10-14 Thread Chad Versace
Fixes GCC warning: drivers/dri2/platform_surfaceless.c:196:18: warning: comparison between pointer and integer Fixes: 4b8a55809eb ("egl/surfaceless: tweak surfaceless_add_configs_for_visuals()") Cc: Emil Velikov --- src/egl/drivers/dri2/platform_surfaceless.c | 2 +- 1 file changed, 1 i

Re: [Mesa-dev] [PATCH] egl/surfaceless: use correct index when accesing the visual

2016-10-16 Thread Chad Versace
gt; > surfaceless_add_configs_for_visuals()") > > Reported-by: Chad Versace > > Cc: Chad Versace > > Signed-off-by: Emil Velikov Since master was severely broken for platform_surfaceless, I took the liberty of pushing the patch (with review tags added, of course). ___

Re: [Mesa-dev] [PATCH v2 5/7] egl/android: Make get_fourcc() accept HAL formats

2016-08-07 Thread Chad Versace
effect, it simplifies all existing calls to this function, because they all called get_format() first to convert from native to DRI_IMAGE_FORMAT. Signed-off-by: Tomasz Figa Tested-by: Rob Herring Reviewed-by: Chad Versace ___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH v2 6/7] egl/android: Add support for YV12 pixel format (v2)

2016-08-08 Thread Chad Versace
On 08/02/2016 04:07 AM, Tomasz Figa wrote: This patch adds support for YV12 pixel format to the Android platform backend. Only creating EGL images is supported, it is not added to the list of available visuals. v2: Use const array defined just for YV12 instead of trying to be overly generic.

Re: [Mesa-dev] [PATCH v2 0/7] egl/android: Improve the Android EGL backend

2016-08-08 Thread Chad Versace
On 08/02/2016 04:07 AM, Tomasz Figa wrote: Nicolas Boichat (1): egl/android: Fix support for pbuffers Tomasz Figa (6): egl/android: Remove unused variables in droid_get_buffers_with_format() egl/android: Respect buffer mask in droid_image_get_buffers egl/android: Refactor image crea

Re: [Mesa-dev] [PATCH v2 6/7] egl/android: Add support for YV12 pixel format (v2)

2016-08-08 Thread Chad Versace
On 08/08/2016 01:58 PM, Rob Herring wrote: On Mon, Aug 8, 2016 at 1:39 PM, Chad Versace wrote: On 08/02/2016 04:07 AM, Tomasz Figa wrote: This patch adds support for YV12 pixel format to the Android platform backend. Only creating EGL images is supported, it is not added to the list of

Re: [Mesa-dev] [PATCH v2] egl: android: query native window default width and height

2016-08-09 Thread Chad Versace
On 08/09/2016 01:49 PM, Haixia Shi wrote: > Pinging this thread - any objection to commit this? Thanks. I pushed it. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v2 00/27] i965: Rework the blorp API to use ISL

2016-08-09 Thread Chad Versace
On 07/26/2016 03:11 PM, Jason Ekstrand wrote: This patch series builds on the previous one I just sent and reworks the blorp API to be entirely ISL. The last bits of intel_mipmap_tree are removed from the ISL internals and shoved into brw_blorp.c/h which simply serves as a wrapper around the ISL

[Mesa-dev] [PATCH 2/3] mesa: Add _mesa_enum_to_string2()

2016-08-11 Thread Chad Versace
The new function is identical to _mesa_enum_to_string(), except that it returns false if the given number is an invalid enum. Bundling validation and lookup into a single function allows us to do both with a single lookup into the enum table. Cc: Haixia Shi Change-Id: I83d9a6e53223d1a971cf8dc22cb

[Mesa-dev] [PATCH 0/3] mesa: Fix a dEQP test

2016-08-11 Thread Chad Versace
s patch series lives at git://git.kiwitree.net/~chadv/mesa branch review/fix-deqp-framebuffertexture-error Chad Versace (3): mesa: Document that _mesa_enum_to_string() returns non-null mesa: Add _mesa_enum_to_string2() mesa: Fix glFramebufferTexture* error codes src/mapi/glapi/

[Mesa-dev] [PATCH 3/3] mesa: Fix glFramebufferTexture* error codes

2016-08-11 Thread Chad Versace
If check_textarget() determined that textarget was incorrect, it emitted GL_INVALID_OPERATION. This is the correct behavior when textarget is a valid GLenum but an invalid parameter to the current variant of glFramebufferTexture*(). However, when textarget is not a GLenum at all, then the GL spec

[Mesa-dev] [PATCH 1/3] mesa: Document that _mesa_enum_to_string() returns non-null

2016-08-11 Thread Chad Versace
It always returns non-null, even if the number is an invalid enum. Cc: Haixia Shi Change-Id: I26e8843c96130be972e66f48a49e362442e1bf97 --- src/mapi/glapi/gen/gl_enums.py | 4 1 file changed, 4 insertions(+) diff --git a/src/mapi/glapi/gen/gl_enums.py b/src/mapi/glapi/gen/gl_enums.py index

Re: [Mesa-dev] [PATCH 1/3] mesa: Document that _mesa_enum_to_string() returns non-null

2016-08-11 Thread Chad Versace
On 08/11/2016 10:30 AM, Ian Romanick wrote: On 08/11/2016 10:22 AM, Ian Romanick wrote: On 08/11/2016 10:11 AM, Chad Versace wrote: It always returns non-null, even if the number is an invalid enum. Cc: Haixia Shi Change-Id: I26e8843c96130be972e66f48a49e362442e1bf97 --- src/mapi/glapi/gen

Re: [Mesa-dev] [PATCH 2/3] mesa: Add _mesa_enum_to_string2()

2016-08-11 Thread Chad Versace
On 08/11/2016 10:24 AM, Ian Romanick wrote: On 08/11/2016 10:11 AM, Chad Versace wrote: The new function is identical to _mesa_enum_to_string(), except that it returns false if the given number is an invalid enum. Bundling validation and lookup into a single function allows us to do both with a

Re: [Mesa-dev] [PATCH 3/3] mesa: Fix glFramebufferTexture* error codes

2016-08-11 Thread Chad Versace
On 08/11/2016 10:22 AM, Ilia Mirkin wrote: On Thu, Aug 11, 2016 at 1:11 PM, Chad Versace wrote: If check_textarget() determined that textarget was incorrect, it emitted GL_INVALID_OPERATION. This is the correct behavior when textarget is a valid GLenum but an invalid parameter to the current

[Mesa-dev] [PATCH 2/2] mesa: Fix glFramebufferTexture* error codes (v2)

2016-08-11 Thread Chad Versace
If check_textarget() determined that textarget was incorrect, it emitted GL_INVALID_OPERATION. This is the correct behavior when target and textarget are mismatched but textarget is a valid textarget enum. When textarget is not a valid textarget enum, the GL spec requires that GL_INVALID_ENUM be

[Mesa-dev] [PATCH 0/3] mesa: Fix a dEQP test (v2)

2016-08-11 Thread Chad Versace
s patch series lives at git://git.kiwitree.net/~chadv/mesa branch review/fix-deqp-framebuffertexture-error-v02 Chad Versace (3): mesa: Document that _mesa_enum_to_string() returns non-null mesa: Add _mesa_enum_to_string2() mesa: Fix glFramebufferTexture* error codes src/mapi/glapi/

[Mesa-dev] [PATCH 1/2] mesa: Document that _mesa_enum_to_string() returns non-null

2016-08-11 Thread Chad Versace
It always returns non-null, even if the number is an invalid enum. Cc: Haixia Shi Reviewed-by: Ian Romanick Change-Id: I26e8843c96130be972e66f48a49e362442e1bf97 --- src/mapi/glapi/gen/gl_enums.py | 7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/mapi/glapi/gen/gl_enu

Re: [Mesa-dev] [PATCH] mesa: change state query return value for RGB565

2016-08-12 Thread Chad Versace
(GL_IMPLEMENTATION_COLOR_READ_TYPE) and glGetIntegerv(GL_IMPLEMENTATION_COLOR_READ_FORMAT) queries. TEST=dEQP-GLES3.functional.state_query.integers.* Does this patch fix all the tests in that group? Just a few tests? Exactly one? Signed-off-by: Haixia Shi Cc: Chad Versace Cc: Stéphane Marchesin

Re: [Mesa-dev] [PATCH] mesa: change state query return value for RGB565

2016-08-12 Thread Chad Versace
te_query.integers.* Signed-off-by: Haixia Shi mailto:h...@chromium.org>> Cc: Chad Versace mailto:chadvers...@chromium.org>> Cc: Stéphane Marchesin mailto:marc...@chromium.org>> Change-Id: I81bbc8ccdc7e125edaeae443baf6fa8fdefcc6b6 --- src/mesa/main/framebuffe

Re: [Mesa-dev] [PATCH] anv: Give the installed intel_icd.json file an absolute path

2016-08-19 Thread Chad Versace
| 7 ++- > src/intel/vulkan/{intel_icd.json => intel_icd.json.in} | 2 +- > 3 files changed, 8 insertions(+), 2 deletions(-) > rename src/intel/vulkan/{intel_icd.json => intel_icd.json.in} (59%) Yes please. Reviewed-by: Chad Versace __

Re: [Mesa-dev] [PATCH 1/3] intel/isl: Use DIM_LAYOUT_GEN4_2D for tiled 1-D surfaces on SKL

2016-08-25 Thread Chad Versace
layout is used. > > stencil > > > > > Signed-off-by: Jason Ekstrand > > Cc: Chad Versace > > --- > > src/intel/isl/isl.c | 28 +++- > > 1 file changed, 23 insertions(+), 5 deletions(-) > > + enum isl_dim_layout dim_layout = >

Re: [Mesa-dev] [PATCH 3/3] intel/isl/gen9: Only use the magic 1D alignment for GEN9_2D surfaces

2016-08-25 Thread Chad Versace
On Thu 25 Aug 2016, Pohjolainen, Topi wrote: > > In the title did you mean GEN_1D? > > Otherwise patches two and three look good also: > > Reviewed-by: Topi Pohjolainen Yep. Patches 2 and 3 are Reviewed-by: Chad Versace ___ mes

Re: [Mesa-dev] [PATCH 2/2] mesa: Fix glFramebufferTexture* error codes (v2)

2016-08-25 Thread Chad Versace
Bump. On Thu 11 Aug 2016, Chad Versace wrote: > If check_textarget() determined that textarget was incorrect, it emitted > GL_INVALID_OPERATION. This is the correct behavior when target and > textarget are mismatched but textarget is a valid textarget enum. > > When textarget

Re: [Mesa-dev] [PATCH 0/2] i965: Fix dEQP-EGL.functional.image.create.gles2_cubemap_*

2016-08-25 Thread Chad Versace
Bump. Can I get a reviewed-by? Or at least a tested-by? This patch fixes failures on Chrome OS. On Thu 04 Aug 2016, Chad Versace wrote: > Hi Intel folks, could one of you please run this through Jenkins? > I verified manually that it fixes the listed dEQP tests on Skylake. > > Cha

Re: [Mesa-dev] [Request for Testing] i965: import prime buffers in the current context, not screen

2016-08-25 Thread Chad Versace
On Thu 25 Aug 2016, Martin Peres wrote: > This mirrors the codepath taken by DRI2 in IntelSetTexBuffer2() and > fixes many applications when using DRI3: > - Totem with libva on hw-accelerated decoding > - obs-studio, using Window Capture (Xcomposite) as a Source > - gstreamer with VAAPI > > Bug

Re: [Mesa-dev] [Mesa-stable] [PATCH 0/2] i965: Fix dEQP-EGL.functional.image.create.gles2_cubemap_*

2016-08-25 Thread Chad Versace
On Thu 25 Aug 2016, Kenneth Graunke wrote: > On Thursday, August 25, 2016 11:06:01 AM PDT Chad Versace wrote: > > Bump. Can I get a reviewed-by? Or at least a tested-by? This patch fixes > > failures on Chrome OS. > > Oh, sorry, I thought these had been reviewed a while ago

Re: [Mesa-dev] [PATCH] isl: Finish tiling filtering for Gen6.

2016-08-26 Thread Chad Versace
On Fri 26 Aug 2016, Kenneth Graunke wrote: > Gen6 only has one additional restriction over Gen7+, so we just add it > to the existing gen7 function (which actually covers later gens too). > > This should stop FINISHME spew when running GL on Sandybridge. > > Signed-off-by: Kenneth Graunke > ---

Re: [Mesa-dev] [PATCH] docs: add links to clarify patch mailing section

2016-08-26 Thread Chad Versace
an/listinfo/mesa-dev to show > where to subscribe to the list > > * Added a link to https://git-scm.com/docs/git-send-email to help new > users of that command > > v2: add signed-off-by > Signed-off-by: Nicholas Bishop > --- > docs/devinfo.html | 12 ---- &

Re: [Mesa-dev] [PATCH] isl: Allow multisampled array textures

2016-08-26 Thread Chad Versace
ly needs and it does fix 8 of the new CTS tests. > > Reviewed-by: Topi Pohjolainen 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 03/13] docs: Rename GL3.txt to features.txt

2016-08-26 Thread Chad Versace
Patches 2, 3 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 0/2] *** Aubinator tool for Intel Gen platforms ***

2016-08-26 Thread Chad Versace
On Fri 19 Aug 2016, Sirisha Gandikota wrote: > From: Sirisha Gandikota > > This is a patch series for adding the aubinator tool to the codebase. > > The aubinator tool is designed to help the driver developers to debug > the driver functionality by decoding the data in the .aub files. This > too

Re: [Mesa-dev] [PATCH 01/12] isl: Correct a comment in the isl_format enum

2016-09-02 Thread Chad Versace
On Wed 31 Aug 2016, Nanley Chery wrote: > HiZ is not a color surface, but an auxiliary depth surface. > > Signed-off-by: Nanley Chery > --- > src/intel/isl/isl.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Reviewe

Re: [Mesa-dev] [PATCH 02/12] isl: Update isl_surf_get_hiz_surf()

2016-09-02 Thread Chad Versace
src/intel/isl/isl.c | 39 +-- > 1 file changed, 33 insertions(+), 6 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 03/12] anv: Add anv_image::hiz_surface

2016-09-02 Thread Chad Versace
On Wed 31 Aug 2016, Nanley Chery wrote: > From: Chad Versace > > Unused. > > Nanley Chery (amend): > - Remove wip! tag There's no need to document that minor change :) > > Signed-off-by: Nanley Chery > --- > src/intel/vulkan/anv_private.h | 2

Re: [Mesa-dev] [PATCH 04/12] anv: Add func anv_image_has_hiz()

2016-09-02 Thread Chad Versace
On Thu 01 Sep 2016, Jason Ekstrand wrote: > On Wed, Aug 31, 2016 at 8:29 PM, Nanley Chery wrote: > > From: Chad Versace > > Nanley Chery (amend): >  - Remove wip! tag > > Signed-off-by: Nanley Chery > --- >  src/intel/vulkan/anv_private.h

Re: [Mesa-dev] [PATCH 05/12] anv: Allocate hiz surface

2016-09-02 Thread Chad Versace
On Wed 31 Aug 2016, Nanley Chery wrote: > From: Chad Versace > > Nanley Chery: > (rebase) > - Use isl_surf_get_hiz_surf() > (amend) > - Only add a HiZ surface onto a depth/stencil attachment > - Add comment above HiZ surface addition > - Hide HiZ behind INTEL_VK_H

Re: [Mesa-dev] [PATCH 06/12] anv: Move BindImageMemory to anv_image.c

2016-09-02 Thread Chad Versace
On Wed 31 Aug 2016, Nanley Chery wrote: > From: Jason Ekstrand > > Signed-off-by: Nanley Chery > --- > src/intel/vulkan/anv_device.c | 20 > src/intel/vulkan/anv_image.c | 20 > 2 files changed, 20 insertions(+), 20 deletions(

Re: [Mesa-dev] [PATCH 07/12] anv/image: Memset hiz surfaces to 0 when binding memory

2016-09-02 Thread Chad Versace
On Thu 01 Sep 2016, Jason Ekstrand wrote: > > > On Wed, Aug 31, 2016 at 8:29 PM, Nanley Chery wrote: > > From: Jason Ekstrand > > Nanley Chery (amend): >  - Change memset value from 0xff to 0 (a defined value for HiZ). Yep. 0xff may hang the GPU, but 0x0 is safe. > > Signed

Re: [Mesa-dev] [PATCH 10/12] genX/cmd_buffer: Enable rendering to HiZ

2016-09-02 Thread Chad Versace
On Wed 31 Aug 2016, Nanley Chery wrote: > From: Chad Versace > > Nanley Chery: > (rebase) > - Resolve conflicts with new anv_batch_emit macro > (amend) > - Remove wip! tag and handle a QPitch TODO > - Emit 3DSTATE_HIER_DEPTH_BUFFER on pre-BDW systems > - Only

Re: [Mesa-dev] [PATCH 09/12] anv/cmd_buffer: Add code for performing HZ operations

2016-09-02 Thread Chad Versace
On Fri 02 Sep 2016, Nanley Chery wrote: > On Wed, Aug 31, 2016 at 08:29:55PM -0700, Nanley Chery wrote: > > From: Jason Ekstrand > > > > Nanley Chery: > > (rebase) > > - Resolve conflicts with the new anv_batch_emit macro > > (amend) > > - Update commit title > > - Combine all HZ operations in

Re: [Mesa-dev] [PATCH 3/6] intel/isl: Allow multisampling with ISL_FORMAT_HiZ

2016-09-07 Thread Chad Versace
> + */ > + return devinfo->gen <= 8; There's an element of surprising elegance in this patch. For patches 1-3, 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 4/6] intel/isl: Handle HiZ and CCS tiling more directly

2016-09-07 Thread Chad Versace
ly. > --- > src/intel/isl/isl.c | 18 -- > src/intel/isl/isl_gen7.c | 14 -- > 2 files changed, 16 insertions(+), 16 deletions(-) Reviewed-by: Chad Versace ___ mesa-dev mailing list me

Re: [Mesa-dev] [PATCH 6/6] intel/isl: Add a detailed comment about multisampling with HiZ

2016-09-07 Thread Chad Versace
/* On SKL+, HiZ is always single-sampled */ > - .samples = ISL_DEV_GEN(dev) >= 9 ? 1 : surf->samples, > + .samples = samples, > .usage = ISL_SURF_USAGE_HIZ_BIT, > .tiling_flags = ISL_TILING_HIZ_BIT); > } > -- 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 5/6] intel/isl: Remove tiling checks from choose_msaa_layout

2016-09-07 Thread Chad Versace
utright reject multisampled HiZ surfaces which wasn't intended. > --- > src/intel/isl/isl_gen7.c | 10 +++--- > src/intel/isl/isl_gen8.c | 11 --- > 2 files changed, 7 insertions(+), 14 deletions(-) Reviewed-by: Chad Versace __

Re: [Mesa-dev] [PATCH] EGL: Combine the GL and GLES current contexts (v2)

2016-09-07 Thread Chad Versace
On Wed 07 Sep 2016, Adam Jackson wrote: > On Wed, 2016-09-07 at 11:15 -0400, Adam Jackson wrote: > > From: Kyle Brenneman > > > > Only keep track of a single current context, instead of separate > > contexts for GL and GLES. > > In addition to fixing 1.4+ compliance, this fixes the "eglterminate

Re: [Mesa-dev] [PATCH 04/12] anv: Add func anv_image_has_hiz()

2016-09-07 Thread Chad Versace
On Wed 07 Sep 2016, Nanley Chery wrote: > On Fri, Sep 02, 2016 at 11:42:24AM -0700, Chad Versace wrote: > > On Thu 01 Sep 2016, Jason Ekstrand wrote: > > > On Wed, Aug 31, 2016 at 8:29 PM, Nanley Chery > > > wrote: > > > > > > From: Chad

[Mesa-dev] [PATCH] anv: Link to libX11-xcb only when unneeded

2016-09-07 Thread Chad Versace
The Makefile unconditionally linked libX11-xcb into libvulkan_intel.so. But it's needed only if HAVE_PLATFORM_X11. Fixes build of libvulkan_intel.so on Chromium OS, which has no X11 libraries. Cc: Kevin Strasser Cc: Jason Ekstrand Change-Id: Ib42db7db582c4531cf13db65f2ad5d57db1d774d --- src/in

Re: [Mesa-dev] [PATCH] anv: Link to libX11-xcb only when unneeded

2016-09-08 Thread Chad Versace
On Thu 08 Sep 2016, Emil Velikov wrote: > On 8 September 2016 at 04:29, Chad Versace wrote: > > The Makefile unconditionally linked libX11-xcb into libvulkan_intel.so. > > But it's needed only if HAVE_PLATFORM_X11. > > > > Fixes build of libvulkan_intel.so

Re: [Mesa-dev] [PATCH] anv: Link to libX11-xcb only when unneeded

2016-09-09 Thread Chad Versace
On Thu 08 Sep 2016, Nanley Chery wrote: > Should the title the say needed instead of unneeded? Oops :/ It's already pushed. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/4] intel/isl: Allow valign2 for texture-only Y-tiled surfaces on gen7

2016-09-09 Thread Chad Versace
should be That isl format doesn't exist. Did you mean R32B32B32_FLOAT (sans S)? > okay because you can't render to that format. > > Signed-off-by: Jason Ekstrand > Cc: Chad Versace > --- > src/intel/isl/isl_gen7.c | 3 ++- > 1 file changed, 2 insertions(+), 1 del

Re: [Mesa-dev] [PATCH 2/4] intel/isl: Add support for RGB formats in X and Y-tiled memory

2016-09-09 Thread Chad Versace
tly: Computation of the surface size wants > the fewest number of horizontal tiles possible while get_intratile_offset > is far more concerned with things aligning nicely. > > Signed-off-by: Jason Ekstrand > Cc: Chad Versace > --- > src/intel/isl/isl.c | 49 +++

Re: [Mesa-dev] [PATCH 4/4] i965: Use blorp_copy for all copy_image operations on gen6+

2016-09-09 Thread Chad Versace
Patches 3 and 4, despite their craziness, are Acked-by: Chad Versace Just an ack, because I'm not very familiar with the new blorp code. ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] egl: Document why EGL_OPENGL{, _ES}_API are mostly identical

2016-09-09 Thread Chad Versace
m the current > > + * thread, and stash that in the context we're initializing. Our caller is > > + * responsible for determining whether that's an API it supports. > > */ > > EGLBoolean > > _eglInitContext(_EGLContext *ctx, _EGLDisplay *dpy, _EGLConfig *

Re: [Mesa-dev] [PATCH 4/4] i965: Use blorp_copy for all copy_image operations on gen6+

2016-09-09 Thread Chad Versace
On Fri 09 Sep 2016, Jason Ekstrand wrote: > > On Sep 9, 2016 12:23 PM, "Chad Versace" wrote: > > Acked-by: Chad Versace > > Sure, review the easy patch and ack the interesting ones... Yep! > > Just an ack, because I'm not very familiar with the new blo

Re: [Mesa-dev] [PATCH 1/3] intel/isl: Treat 3-D textures as 2-D arrays for rendering

2016-09-12 Thread Chad Versace
isn't a huge deviation. > > Signed-off-by: Jason Ekstrand > Cc: Chad Versace > --- > src/intel/isl/isl.h | 6 ++ > src/intel/isl/isl_surface_state.c | 11 +++ > 2 files changed, 13 insertions(+), 4 d

Re: [Mesa-dev] [PATCH 2/3] blorp: Handle the 512 layers restriction on Sandy Bridge

2016-09-12 Thread Chad Versace
27;t you also update blorp_fast_clear()? Oh right, Sandybridge can't do fast clears. 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 3/3] Revert "i965: Drop the maximum 3D texture size to 512 on Sandy Bridge"

2016-09-12 Thread Chad Versace
On Mon 12 Sep 2016, Jason Ekstrand wrote: > This reverts commit 6ba88bce64b343761aabe3a6c7ee285c6020a959. The commit > was erroneous because GL already provides a separate guard on the number of > layers you are allowed to render into. On Sandy Bridge, we set this guard > correctly so creating a

Re: [Mesa-dev] [PATCH 3/3] Revert "i965: Drop the maximum 3D texture size to 512 on Sandy Bridge"

2016-09-12 Thread Chad Versace
Const.MaxCubeTextureLevels = 14; /* 8192 */ > > ctx->Const.MaxArrayTextureLayers = brw->gen >= 7 ? 2048 : 512; > > ctx->Const.MaxTextureMbytes = 1536; > > > > To clarify...that limit is GL_MAX_FRAMEBUFFER_LAYERS. Good. If the limit is GL_MAX_FRAMEBUFFER_LAYERS, then I agree with this patch. Reviewed-by: Chad Versace ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] egl/surfaceless: Fix segfault in eglSwapBuffers

2016-10-18 Thread Chad Versace
Since commit 63c5d5c6c46c8472ee7a8241a0f80f13d79cb8cd, the surfaceless platform has allowed creation of pbuffer surfaces. But the vtable entry for eglSwapBuffers has remained NULL. Discovered by running a little pbuffer test. Cc: Gurchetan Singh --- src/egl/drivers/dri2/platform_surfaceless.c |

Re: [Mesa-dev] [PATCH] egl: set preserved behavior for surface only if config supports it

2016-10-26 Thread Chad Versace
and pbuffer. > > Signed-off-by: Tapani Pälli > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=98326 > Cc: "12.0 13.0" > --- > src/egl/main/eglsurface.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) Reviewed-by: Chad Versace _

[Mesa-dev] [PATCH] anv: Document anv_event::semaphore

2016-11-03 Thread Chad Versace
Explain why it's 64-bit and its valid values. --- src/intel/vulkan/anv_private.h | 4 1 file changed, 4 insertions(+) diff --git a/src/intel/vulkan/anv_private.h b/src/intel/vulkan/anv_private.h index 8f5a95b..0924ccf 100644 --- a/src/intel/vulkan/anv_private.h +++ b/src/intel/vulkan/anv_pri

Re: [Mesa-dev] [PATCH 1/3] anv/gen8: Stall when needed in Cmd(Set|Reset)Event

2016-11-03 Thread Chad Versace
V_FROM_HANDLE(anv_event, event, _event); > > anv_batch_emit(&cmd_buffer->batch, GENX(PIPE_CONTROL), pc) { > + if (stageMask & PIPELINE_STAGE_PIPELINED_BITS) { > + pc.StallAtPixelScoreboard = true; > + pc.CommandStreamerStallEnable = true; > + }

Re: [Mesa-dev] [PATCH 2/3] anv/wsi: Set the fence to signaled in AcquireNextImageKHR

2016-11-03 Thread Chad Versace
semaphore, pImageIndex); > + > + /* Thanks to implicit sync, the image is ready immediately. */ > + fence->ready = true; > + > + return result; > } Looks good (at least until explicit sync arrives). Reviewed-by: Chad Versace By the way, I

Re: [Mesa-dev] [PATCH 3/3] anv: Rework fences

2016-11-03 Thread Chad Versace
On Wed 02 Nov 2016, Jason Ekstrand wrote: > Our previous fence implementation was very simple. Fences had two states: > signaled and unsignaled. However, this didn't properly handle all of the > edge-cases that we need to handle. In order to handle the case where the > client calls vkGetFenceSta

Re: [Mesa-dev] [PATCH 3/3] anv: Rework fences

2016-11-03 Thread Chad Versace
On Thu 03 Nov 2016, Jason Ekstrand wrote: > > > On Thu, Nov 3, 2016 at 10:59 AM, Chad Versace > wrote: > > On Wed 02 Nov 2016, Jason Ekstrand wrote: > > @@ -1116,6 +1117,11 @@ VkResult anv_QueueSubmit( > >        result = anv_device_execbuf(devi

Re: [Mesa-dev] [PATCH 03/10] dri: extend fence extension to support native fd fences

2016-11-23 Thread Chad Versace
Patches 1-3 are Reviewed-by: Chad Versace Tested-by: Chad Versace I tested them with Rafael's Piglit tests and my in-flight i965 patches. However, patch 4 causes one of Rafael's tests to segfault. I've replied to patch 4 separately. _

Re: [Mesa-dev] [PATCH 04/10] egl: add EGL_ANDROID_native_fence_sync

2016-11-23 Thread Chad Versace
On Fri 18 Nov 2016, Rob Clark wrote: > From: Rob Clark > > With fixes from Chad squashed in, plus fixes for issues that Rafael > found while writing piglit tests. > > Cc: Chad Versace > Cc: Rafael Antognolli > Signed-off-by: Rob Clark > --- > src/eg

Re: [Mesa-dev] [PATCH] anv: Prefer in-tree headers to out-of-tree headers

2016-11-30 Thread Chad Versace
' or something similar was required > to update the out-of-tree headers to allow the build to succeed. > > Also avoids having to rebuild the entire thing after every 'make > install'. > > Cc: Rob Clark > Cc: Jason Ekstrand > Signed-off-by: Ville Syrjäl

Re: [Mesa-dev] [PATCH 00/10] mesa: support for EGL_ANDROID_native_fence_sync (vN+1)

2016-12-01 Thread Chad Versace
Hi Rob, just checking on the status on the patch set. Do you plan to send a revised series or commit them as-is? I ask because my i965 patches depend on your patches 1-4, and I'm trying to decide to when to resend them. On Fri 18 Nov 2016, Rob Clark wrote: > This patchset implements support for EG

[Mesa-dev] [PATCH] anv: Reject VkMemoryAllocateInfo::allocationSize == 0

2016-12-02 Thread Chad Versace
--- src/intel/vulkan/anv_device.c | 7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/intel/vulkan/anv_device.c b/src/intel/vulkan/anv_device.c index d594df7d3b..e3d278df73 100644 --- a/src/intel/vulkan/anv_device.c +++ b/src/intel/vulkan/anv_device.c @@ -1246,11 +1246,8

[Mesa-dev] [PATCH 1/2] i965/mt: Disable aux surfaces after making miptree shareable

2016-12-09 Thread Chad Versace
The entire goal of intel_miptree_make_shareable() is to permanently disable the miptree's aux surfaces. So set intel_mipmap_tree:disable_aux_buffers after the function's done with discarding down the aux surfaces. References: https://bugs.freedesktop.org/show_bug.cgi?id=98329 Cc: Haixia Shi Cc: T

[Mesa-dev] [PATCH 2/2] i965/mt: Disable HiZ when sharing depth buffer externally

2016-12-09 Thread Chad Versace
intel_miptree_make_shareable() discarded and disabled CCS. Fix it so that it discards and disables HiZ too. Fixes dEQP-EGL.functional.image.render_multiple_contexts.gles2_renderbuffer_depth16_depth_buffer on Skylake. Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=98329 Cc: Haixia Shi Cc: T

[Mesa-dev] [PATCH 0/2] i965: Fix dEQP-EGL.functional.image.render_multiple_contexts.gles2_renderbuffer_depth16_depth_buffer

2016-12-09 Thread Chad Versace
The inescapable vortex of HiZ finds me wherever I go... This series brings us one step closer to passing the Android N CTS. See https://bugs.freedesktop.org/show_bug.cgi?id=98329. Chad Versace (2): i965/mt: Disable aux surfaces after making miptree shareable i965/mt: Disable HiZ when

[Mesa-dev] [PATCH 2/2] i965/mt: Disable HiZ when sharing depth buffer externally (v2)

2016-12-09 Thread Chad Versace
intel_miptree_make_shareable() discarded and disabled CCS. Fix it so that it discards and disables HiZ too. Fixes dEQP-EGL.functional.image.render_multiple_contexts.gles2_renderbuffer_depth16_depth_buffer on Skylake. v2: Actually do what the commit message says. Discard the HiZ buffer. Fixes: h

[Mesa-dev] [PATCH] egl: Fix crashes in eglCreate*Surface()

2016-12-13 Thread Chad Versace
Don't dereference a null EGLDisplay. Fixes tests dEQP-EGL.functional.negative_api.create_pbuffer_surface dEQP-EGL.functional.negative_api.create_pixmap_surface Fixes: https://bugs.freedesktop.org/show_bug.cgi?id=99038 --- src/egl/main/eglapi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 del

Re: [Mesa-dev] [PATCH] egl: Fix crashes in eglCreate*Surface()

2016-12-14 Thread Chad Versace
On Wed 14 Dec 2016, Emil Velikov wrote: > On 13 December 2016 at 22:40, Chad Versace wrote: > > Don't dereference a null EGLDisplay. > > > > Fixes tests > > dEQP-EGL.functional.negative_api.create_pbuffer_surface > > dEQP-EGL.functional.negative_api.crea

Re: [Mesa-dev] [Mesa-stable] [PATCH 2/2] i965/mt: Disable HiZ when sharing depth buffer externally (v2)

2016-12-16 Thread Chad Versace
On Thu 15 Dec 2016, Emil Velikov wrote: > Hi Chad, > > On 10 December 2016 at 00:40, Chad Versace wrote: > > intel_miptree_make_shareable() discarded and disabled CCS. Fix it so > > that it discards and disables HiZ too. &g

Re: [Mesa-dev] [PATCH] Mesa: Fix error code for glTexImage3D in GLES

2016-12-16 Thread Chad Versace
On Fri 16 Dec 2016, Randy Xu wrote: > From: "Xu,Randy" > > The ES specification says that TexImage3D should return GL_INVALID_OPERATION > if the internal format is DEPTH_COMPONENT, DEPTH_-STENCIL or STENCIL_INDEX. > The current code returns INVALID_ENUM as _mesa_error_check_format_and_type is > u

Re: [Mesa-dev] [PATCH] Mesa: Fix error code for glTexImage3D in GLES

2016-12-16 Thread Chad Versace
On Fri 16 Dec 2016, Chad Versace wrote: > On Fri 16 Dec 2016, Randy Xu wrote: > > From: "Xu,Randy" > > > > The ES specification says that TexImage3D should return GL_INVALID_OPERATION > > if the internal format is DEPTH_COMPONENT, DEPTH_-STENCIL or STENCI

[Mesa-dev] New GBM backend for dEQP

2016-12-16 Thread Chad Versace
Happy Christmas to everyone who's busy squashing dEQP bugs. I wrote a new GBM backend for dEQP. I even submitted it to dEQP's upstream Gerrit. Pyry, dEQP's maintainer, told me over beer earlier this year that he would accept it if I submitted it, and if it wasn't too crazy. So, maybe it'll be ups

[Mesa-dev] [PATCH] egl: Check config's surface types in eglCreate*Surface()

2016-12-16 Thread Chad Versace
If the provided EGLConfig does not support the requested surface type, then emit EGL_BAD_MATCH. Fixes dEQP-EGL.functional.negative_api.create_pbuffer_surface on GBM. Cc: "13.0" --- src/egl/main/eglapi.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/egl/main/eglapi.c b/src/

Re: [Mesa-dev] New GBM backend for dEQP

2016-12-16 Thread Chad Versace
On Fri 16 Dec 2016, Chad Versace wrote: > Happy Christmas to everyone who's busy squashing dEQP bugs. > > I wrote a new GBM backend for dEQP. [...] > There's probably bugs. No surprises there. You probably want this Mesa patch before using dEQP on GBM. It fixes some EG

Re: [Mesa-dev] [PATCH] egl/dri2: implement query surface hook

2016-12-20 Thread Chad Versace
On Tue 20 Dec 2016, Tapani Pälli wrote: > This makes better guarantee that the values we return are > in sync what the underlying drawable currently has. > > Together with dEQP change bug #98327 this fixes following test: > >dEQP-EGL.functional.resize.surface_size.grow > > Signed-off-by: Tap

Re: [Mesa-dev] New GBM backend for dEQP

2016-12-20 Thread Chad Versace
On Mon 19 Dec 2016, Tapani Pälli wrote: > > > On 12/17/2016 03:58 AM, Chad Versace wrote: > > Happy Christmas to everyone who's busy squashing dEQP bugs. > > > > I wrote a new GBM backend for dEQP. I even submitted it to dEQP's > > upstream Gerrit.

Re: [Mesa-dev] [Mesa-stable] [PATCH] Mesa: Fix error code for glTexImage3D in GLES

2016-12-20 Thread Chad Versace
s no harm in adding yet another. I have more comments below. > -Original Message- > From: Ian Romanick [mailto:i...@freedesktop.org] > Sent: Saturday, December 17, 2016 6:02 AM > To: Chad Versace ; Xu, Randy ; > mesa-dev@lists.freedesktop.org; mesa-sta...@lists.freedesktop.org

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