Re: [Mesa-dev] [PATCH 15/23] main: add binary support to ProgramBinary

2017-12-07 Thread Tapani Pälli
13,14,15 Reviewed-by: Tapani Pälli On 11/29/2017 03:24 AM, Timothy Arceri wrote: From: Jordan Justen V2: call generic mesa_program_binary() helper rather than driver function directly to allow greater code sharing. Signed-off-by: Timothy Arceri Signed-off-by: Jordan Justen (v1

Re: [Mesa-dev] [PATCH] egl/android: Provide an option for the backend to expose KHR_image

2017-12-07 Thread Tapani Pälli
Looks good, indeed KHR_image spec does not require KHR_image_pixmap or KHR_image_base. Wayland might also be able to enable this but not sure if makes sense there or not. Reviewed-by: Tapani Pälli On 07.12.2017 15:34, Harish Krupo wrote: From android cts 8.0_r4, a new test case checks if

Re: [Mesa-dev] [PATCH 12/23] mesa: Add Mesa ARB_get_program_binary helper functions

2017-12-07 Thread Tapani Pälli
. Reviewed-by: Tapani Pälli On 29.11.2017 03:24, Timothy Arceri wrote: From: Jordan Justen V2 (Timothy Arceri): - add extra code comment - stop passing around void *binary and just pass program_binary_header *hdr instead. - move to src/mesa/main rather than src/util V3 (Timothy Ar

Re: [Mesa-dev] [PATCH 04/23] main, glsl: Add UniformDataDefaults which stores uniform defaults

2017-12-07 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 11/29/2017 03:24 AM, Timothy Arceri wrote: From: Jordan Justen The ARB_get_program_binary extension requires that uniform values in a program be restored to their initial value just after linking. This patch saves off the initial values just after linking. When

Re: [Mesa-dev] V3 i965/Gallium ARB_get_program_binary support

2017-12-07 Thread Tapani Pälli
On 12/07/2017 01:47 PM, Tapani Pälli wrote: Hi; I've been testing this functionality with little app I have and I noticed one thing by accident. If I call link twice for a regular program like this: glLinkProgram(program); glLinkProgram(program); everything's fine, sequentia

Re: [Mesa-dev] V3 i965/Gallium ARB_get_program_binary support

2017-12-07 Thread Tapani Pälli
Hi; I've been testing this functionality with little app I have and I noticed one thing by accident. If I call link twice for a regular program like this: glLinkProgram(program); glLinkProgram(program); everything's fine, sequential calls do not generate errors. However for program loaded v

Re: [Mesa-dev] [PATCH 23/23] docs: Update GL_ARB_get_program_binary docs to support 1 format

2017-12-06 Thread Tapani Pälli
Acked-by: Tapani Pälli On 11/29/2017 03:24 AM, Timothy Arceri wrote: From: Jordan Justen Signed-off-by: Jordan Justen --- docs/features.txt | 2 +- docs/relnotes/17.4.0.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/features.txt b/docs

Re: [Mesa-dev] [PATCH 22/23] i965: Add ARB_get_program_binary support using nir_serialization

2017-12-06 Thread Tapani Pälli
LGTM Reviewed-by: Tapani Pälli On 11/29/2017 03:24 AM, Timothy Arceri wrote: From: Jordan Justen This resolves an apparent game bug described in 85564. The game doesn't properly handle ARB_get_program_binary with 0 supported formats. V2 (Timothy Arceri): - less driver code as mor

Re: [Mesa-dev] [PATCH 09/22] mesa: Add GL_RGBA + GL_UNSIGNED_INT_2_10_10_10_REV for OES read type.

2017-12-04 Thread Tapani Pälli
On 04.12.2017 20:45, Marek Olšák wrote: Do we need to handle B10G10R10X2 as well? Good catch, that is missing indeed. Also noticed that dEQP wide color test does not test BGRX. Marek On Wed, Nov 29, 2017 at 5:20 AM, Mario Kleiner wrote: This format + type combo is good for BGRA1010102 f

Re: [Mesa-dev] [PATCH 0/4] enable GL_EXT_disjoint_timer_query

2017-12-03 Thread Tapani Pälli
ping! On 11/20/2017 09:18 AM, Tapani Pälli wrote: This series enables mostly existing functionality but adds the disjoint state required by this extension. WebGL tests seem to utilize desktop extension GL_EXT_timer_query but I wrote a separate simple Piglit test for this. Tapani Pälli (4

Re: [Mesa-dev] [PATCH 12/22] egl/x11: Handle depth 30 drawables for EGL_KHR_image_pixmap.

2017-12-01 Thread Tapani Pälli
Patches 9,10,11,12 LGTM Reviewed-by: Tapani Pälli On 29.11.2017 06:20, Mario Kleiner wrote: Enables eglCreateImageKHR() with target set to EGL_NATIVE_PIXMAP_KHR to handle color depth 30 X11 drawables. Note that in theory the drawable depth 32 case in the current implementation is ambiguous

Re: [Mesa-dev] [PATCH 08/22] i965/screen: Honor 'allow_rgb10_configs' option. (v2)

2017-12-01 Thread Tapani Pälli
Not sure of the end results of discussion on this drirc option but personally I think it is good to have as temporary workaround. Patches 7,8 Reviewed-by: Tapani Pälli On 29.11.2017 06:20, Mario Kleiner wrote: Allows to prevent exposing RGB10 configs and visuals to clients. v2: Rename

Re: [Mesa-dev] [PATCH 06/22] i965/screen: Add XRGB2101010 and ARGB2101010 support for DRI3.

2017-12-01 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 29.11.2017 06:20, Mario Kleiner wrote: Allow DRI3/Present buffer sharing for 10 bpc buffers. Otherwise composited desktops under DRI3 will only display black client areas for redirected windows. Signed-off-by: Mario Kleiner --- src/mesa/drivers/dri/i965

Re: [Mesa-dev] [PATCH 03/22] i965: Support accelerated blit for depth 30 formats. (v2)

2017-12-01 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 29.11.2017 06:20, Mario Kleiner wrote: Extend intel_miptree_blit() to handle at least ARGB2101010 -> XRGB2101010, ARGB2101010 -> ARGB2101010, and XRGB2101010 -> XRGB2101010 via the BLT engine, but not XRGB2101010 -> ARGB2101010 yet. This works as

Re: [Mesa-dev] [PATCH 02/22] i965: Support xrgb/argb2101010 formats for glx_texture_from_pixmap.

2017-12-01 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 29.11.2017 06:20, Mario Kleiner wrote: Makes compositing under X11/GLX work. Signed-off-by: Mario Kleiner --- src/mesa/drivers/dri/i965/intel_tex_image.c | 12 ++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri

Re: [Mesa-dev] [PATCH 01/22] i965/screen: Add basic support for rendering 10 bpc/depth 30 framebuffers. (v3)

2017-12-01 Thread Tapani Pälli
! Update num_formats from 3 to 5, to keep the special Android handling intact. v3: Use num_formats = ARRAY_SIZE(formats) - 2 as suggested by Tapani, to only exclude the last 2 Android formats, add Tapani's r-b. Signed-off-by: Mario Kleiner Reviewed-by: Tapani Pälli --- src

Re: [Mesa-dev] [PATCH] meta: Fix ClearTexture with GL_DEPTH_COMPONENT.

2017-12-01 Thread Tapani Pälli
TENCIL it is always intialized but maybe initialize at declaration? + _mesa_unpack_float_z_row(texImage->TexFormat, 1 /* n */, + clearValue, &depthValue); + } } else { depthValue = 0.0f; stencilValue = 0; with warning c

Re: [Mesa-dev] [PATCH] intel/isl: Declare private array as static const

2017-11-29 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 11/29/2017 09:10 PM, Chad Versace wrote: It's array isl_drm.c:modifier_info[] . --- src/intel/isl/isl_drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/isl/isl_drm.c b/src/intel/isl/isl_drm.c index eb3c6f59138..31895e

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

2017-11-29 Thread Tapani Pälli
On 11/30/2017 06:13 AM, Tomasz Figa wrote: On Thu, Nov 30, 2017 at 3:43 AM, Robert Foss wrote: Hey, On Tue, 2017-11-28 at 11:49 +, Emil Velikov wrote: On 28 November 2017 at 10:45, Tapani Pälli wrote: Hi; On 11/27/2017 04:14 PM, Robert Foss wrote: From: Tomasz Figa There is no

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

2017-11-29 Thread Tapani Pälli
On 29.11.2017 20:43, Robert Foss wrote: Hey, On Tue, 2017-11-28 at 11:49 +, Emil Velikov wrote: On 28 November 2017 at 10:45, Tapani Pälli wrote: Hi; On 11/27/2017 04:14 PM, Robert Foss wrote: From: Tomasz Figa There is no API available to properly query the

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

2017-11-28 Thread Tapani Pälli
On 11/28/2017 07:38 PM, Rob Herring wrote: On Tue, Nov 28, 2017 at 8:42 AM, Tomasz Figa wrote: On Tue, Nov 28, 2017 at 11:27 PM, Rob Herring wrote: On Tue, Nov 28, 2017 at 5:49 AM, Emil Velikov wrote: On 28 November 2017 at 10:45, Tapani Pälli wrote: Hi; On 11/27/2017 04:14 PM

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

2017-11-28 Thread Tapani Pälli
Hi; On 11/27/2017 04:14 PM, Robert Foss wrote: From: Tomasz Figa There is no API available to properly query the IMPLEMENTATION_DEFINED format. As a workaround we rely here on gralloc allocating either an arbitrary YCbCr 4:2:0 or RGBX_, with the latter being recognized by lock_ycbcr failin

Re: [Mesa-dev] [PATCH 11/24] spirv_extensions: add list of extensions and to_string method

2017-11-27 Thread Tapani Pälli
On 11/15/2017 03:22 PM, Eduardo Lima Mitev wrote: From: Alejandro Piñeiro Ideally this should be generated somehow. One option would be gather all the extension dependencies listed on the core grammar, but there would be the possibility of not including some of the extensions. Note that spir

Re: [Mesa-dev] [PATCH 5/5] Android: copy -fno*math* options from the autotools build

2017-11-26 Thread Tapani Pälli
Acked-by: Tapani Pälli On 11/24/2017 04:25 PM, Emil Velikov wrote: From: Emil Velikov Add -fno-math-errno and -fno-trapping-math to the build. Mesa does not depend on the functionality provided, thus this should result in slightly faster code and smaller binaries. Cc: Tapani Pälli Cc: Rob

Re: [Mesa-dev] [PATCH 4/5] Android: add Wundef to the build flags

2017-11-26 Thread Tapani Pälli
Acked-by: Tapani Pälli On 11/24/2017 04:25 PM, Emil Velikov wrote: From: Emil Velikov The compiler will warns us when we're misusing undefined macros. Note: this will trigger a bunch of warnings, which will be resolved ASAP. Cc: Tapani Pälli Cc: Rob Herring Signed-off-by: Emil Ve

Re: [Mesa-dev] 10-bit Mesa/Gallium support

2017-11-23 Thread Tapani Pälli
On 11/23/2017 08:31 PM, Mario Kleiner wrote: On 11/23/2017 06:45 PM, Ilia Mirkin wrote: On Thu, Nov 23, 2017 at 12:35 PM, Marek Olšák wrote: Hi everybody, Mario, feel free to push your patches if you haven't yet. (except the workaround) Hi, just started 10 minutes ago with rebasing my c

[Mesa-dev] [PATCH v2] mesa: add AllowGLSLCrossStageInterpolationMismatch workaround

2017-11-23 Thread Tapani Pälli
This fixes issues seen with certain versions of Unreal Engine 4 editor and games built with that using GLSL 4.30. v2: add driinfo_gallium change (Emil Velikov) Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97852 Bugzilla: https://bugs.freedesktop.org

Re: [Mesa-dev] [PATCH] mesa: add AllowGLSLCrossStageInterpolationMismatch workaround

2017-11-23 Thread Tapani Pälli
On 11/23/2017 06:09 PM, Emil Velikov wrote: On 23 November 2017 at 05:54, Tapani Pälli wrote: This fixes issues seen with certain versions of Unreal Engine 4 editor and games built with that using GLSL 4.30. Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id

[Mesa-dev] [PATCH] mesa: add AllowGLSLCrossStageInterpolationMismatch workaround

2017-11-22 Thread Tapani Pälli
This fixes issues seen with certain versions of Unreal Engine 4 editor and games built with that using GLSL 4.30. Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=97852 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103801 --- src/compiler/glsl

Re: [Mesa-dev] [PATCH] mesa/gles: adjust internal format in glTexSubImage2D error checks

2017-11-20 Thread Tapani Pälli
Forgot to add: Cc: "17.3" On 11/21/2017 08:35 AM, Tapani Pälli wrote: When floating point textures are created on OpenGL ES 2.0, driver is free to choose used internal format. Mesa makes this decision in adjust_for_oes_float_texture. Error checking for glTexImage2D properly checks

[Mesa-dev] [PATCH] mesa/gles: adjust internal format in glTexSubImage2D error checks

2017-11-20 Thread Tapani Pälli
-CTS.gtf.GL2ExtensionTests.texture_float.texture_float (when running test with MESA_GLES_VERSION_OVERRIDE=2.0) Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=103227 --- src/mesa/main/teximage.c | 56 +++- 1 file changed, 55

Re: [Mesa-dev] [PATCH] nir/clone: Free clone_state after use (to fix memory leak)

2017-11-20 Thread Tapani Pälli
On 11/20/2017 10:35 AM, Eduardo Lima Mitev wrote: Ping? This patch fixes an active memory leak. Any comments? Thanks. How to reproduce this leak? Eduardo On 11/14/2017 11:18 PM, Eduardo Lima Mitev wrote: In nir_cf_list_clone(), a state_clone object is initialized but never freed, causin

[Mesa-dev] [PATCH] intel: fix diasm_info memory leaks

2017-11-20 Thread Tapani Pälli
Fixes: 4f82b1728719 ("i965: Rewrite disassembly annotation code") Cc: Matt Turner Signed-off-by: Tapani Pälli --- src/intel/compiler/brw_fs_generator.cpp | 2 +- src/intel/compiler/brw_vec4_generator.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/inte

[Mesa-dev] [PATCH 1/4] mesa: add DisjointOperation to gl_shared_state

2017-11-19 Thread Tapani Pälli
This state will be used by EXT_disjoint_timer_query. As first usage, patch sets DisjointOperation true when gpu reset happens. Signed-off-by: Tapani Pälli --- src/mesa/main/mtypes.h | 8 src/mesa/main/robustness.c | 1 + 2 files changed, 9 insertions(+) diff --git a/src/mesa/main

[Mesa-dev] [PATCH 0/4] enable GL_EXT_disjoint_timer_query

2017-11-19 Thread Tapani Pälli
This series enables mostly existing functionality but adds the disjoint state required by this extension. WebGL tests seem to utilize desktop extension GL_EXT_timer_query but I wrote a separate simple Piglit test for this. Tapani Pälli (4): mesa: add DisjointOperation to gl_shared_state i965

[Mesa-dev] [PATCH 2/4] i965: set DisjointOperation true on timestamp overflow

2017-11-19 Thread Tapani Pälli
Signed-off-by: Tapani Pälli --- src/mesa/drivers/dri/i965/brw_queryobj.c | 4 1 file changed, 4 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_queryobj.c b/src/mesa/drivers/dri/i965/brw_queryobj.c index bd3f5738eb..b7885430c6 100644 --- a/src/mesa/drivers/dri/i965/brw_queryobj.c

[Mesa-dev] [PATCH 3/4] glapi: add GL_EXT_disjoint_timer_query

2017-11-19 Thread Tapani Pälli
Most entrypoints already available via other extensions like GL_EXT_occlusion_query_boolean, GL_EXT_timer_query. Signed-off-by: Tapani Pälli --- src/mapi/glapi/gen/es_EXT.xml | 16 src/mapi/glapi/gen/gl_API.xml | 4 ++-- src/mesa/main/tests

[Mesa-dev] [PATCH 4/4] mesa: enable GL_EXT_disjoint_timer_query extension

2017-11-19 Thread Tapani Pälli
imple' passes with these changes. No changes/regression observed in Intel CI. Signed-off-by: Tapani Pälli --- src/mesa/main/extensions_table.h | 1 + src/mesa/main/get.c | 17 + src/mesa/main/get_hash_params.py | 5 + src/mesa/main/glheader.h | 4

Re: [Mesa-dev] [PATCH mesa] egl: fix var type

2017-11-16 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 11/16/2017 12:16 PM, Eric Engestrom wrote: queryImage() takes an `int*`, compiler is warning about the signed<->unsigned pointer mismatch. Fixes: 0db36caa192b129cb4f2 "egl/wayland: Add a fallback when fourcc query isn't supported"

Re: [Mesa-dev] [PATCH 0/3] Misc GLX cleanups

2017-11-13 Thread Tapani Pälli
I sent one small observation for patch 2, otherwise changes LGTM Series is Reviewed-by: Tapani Pälli On 11/09/2017 11:57 PM, Adam Jackson wrote: Testing the EXT_no_config_context series revealed that a bunch more things were broken than I expected. While I work my way through that, here'

Re: [Mesa-dev] [PATCH 2/3] glx/drisw: Fix glXMakeCurrent(dpy, None, ctx)

2017-11-13 Thread Tapani Pälli
On 11/09/2017 11:57 PM, Adam Jackson wrote: This is perfectly legal in GL 3.0+. Fixes piglit/glx-create-context-no-current-framebuffer. glx-create-context-current-no-framebuffer Signed-off-by: Adam Jackson --- src/glx/drisw_glx.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions

Re: [Mesa-dev] [PATCH] egl: EXT_pixel_format_float plumbing

2017-11-12 Thread Tapani Pälli
Hi; On 11/09/2017 07:03 PM, Eric Engestrom wrote: On Thursday, 2017-11-09 09:40:43 +0200, Tapani Pälli wrote: Patch adds support and capability to match with new surface attribute, component type. Currently no configs with floating point type are exposed. Have you tested android O with this

Re: [Mesa-dev] [PATCH 10/17] main: Allow non-zero NUM_PROGRAM_BINARY_FORMATS

2017-11-11 Thread Tapani Pälli
On 11/11/2017 10:14 AM, Jordan Justen wrote: On 2017-11-09 03:16:46, Tapani Pälli wrote: On 11/09/2017 08:42 AM, Jordan Justen wrote: Signed-off-by: Jordan Justen --- src/mesa/main/get_hash_params.py | 2 +- src/mesa/main/mtypes.h | 3 +++ 2 files changed, 4 insertions

Re: [Mesa-dev] [PATCH 10/17] main: Allow non-zero NUM_PROGRAM_BINARY_FORMATS

2017-11-09 Thread Tapani Pälli
On 11/09/2017 08:42 AM, Jordan Justen wrote: Signed-off-by: Jordan Justen --- src/mesa/main/get_hash_params.py | 2 +- src/mesa/main/mtypes.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/mesa/main/get_hash_params.py b/src/mesa/main/get_hash_params.py

Re: [Mesa-dev] [PATCH 1/3] i965: Make a better helper function for UBO/SSBO/ABO surface handling.

2017-11-09 Thread Tapani Pälli
On 11/09/2017 11:43 AM, Tapani Pälli wrote: AFAICT functionality is identical; (except for the AutomaticSize check of course) Reviewed-by: Tapani Pälli On 11/09/2017 10:45 AM, Kenneth Graunke wrote: This fixes the missing AutomaticSize handling in the ABO code, removes a bunch of

Re: [Mesa-dev] [PATCH 1/3] i965: Make a better helper function for UBO/SSBO/ABO surface handling.

2017-11-09 Thread Tapani Pälli
AFAICT functionality is identical; Reviewed-by: Tapani Pälli On 11/09/2017 10:45 AM, Kenneth Graunke wrote: This fixes the missing AutomaticSize handling in the ABO code, removes a bunch of duplicated code, and drops an extra layer of wrapping around brw_emit_buffer_surface_state(). --- src

[Mesa-dev] [PATCH] egl: EXT_pixel_format_float plumbing

2017-11-08 Thread Tapani Pälli
-EGL.functional.choose_config.color_component_type_ext.fixed dEQP-EGL.functional.choose_config.color_component_type_ext.float Signed-off-by: Tapani Pälli --- src/egl/drivers/dri2/egl_dri2.c | 2 ++ src/egl/main/eglapi.c | 1 + src/egl/main/eglconfig.c| 9 + src/egl/main/eglconfig.h

Re: [Mesa-dev] [PATCH 3/3] mesa: rework how we free gl_shader_program_data

2017-11-07 Thread Tapani Pälli
On 11/08/2017 08:59 AM, Timothy Arceri wrote: On 08/11/17 16:58, Tapani Pälli wrote: One question below ... On 11/08/2017 03:41 AM, Timothy Arceri wrote: When I introduced gl_shader_program_data one of the intentions was to fix a bug where a failed linking attempt freed data required by a

Re: [Mesa-dev] [PATCH v3] i965: expose SRGB visuals and turn on EGL_KHR_gl_colorspace

2017-11-07 Thread Tapani Pälli
On 11/08/2017 07:25 AM, Kenneth Graunke wrote: On Thursday, November 2, 2017 1:48:34 AM PST Tapani Pälli wrote: Patch exposes sRGB visuals and adds DRI integer query support for __DRI2_RENDERER_HAS_FRAMEBUFFER_SRGB. Further changes make sure that we mark if the app explicitly wanted sRGB and

Re: [Mesa-dev] [PATCH 3/3] mesa: rework how we free gl_shader_program_data

2017-11-07 Thread Tapani Pälli
One question below ... On 11/08/2017 03:41 AM, Timothy Arceri wrote: When I introduced gl_shader_program_data one of the intentions was to fix a bug where a failed linking attempt freed data required by a currently active program. However I seem to have failed to finish hooking up the final step

Re: [Mesa-dev] [PATCH] Android: update CleanSpec.mk

2017-11-05 Thread Tapani Pälli
On 11/06/2017 04:08 AM, Chih-Wei Huang wrote: 2017-11-03 19:02 GMT+08:00 Tapani Pälli : On 11/03/2017 12:30 PM, Chih-Wei Huang wrote: 2017-11-03 15:47 GMT+08:00 Tapani Pälli : Hi Chih-Wei; This looks good to me. Only thing that causes a bit of headache is ... what is the difference between

Re: [Mesa-dev] [PATCH] Android: update CleanSpec.mk

2017-11-03 Thread Tapani Pälli
On 11/03/2017 12:30 PM, Chih-Wei Huang wrote: 2017-11-03 15:47 GMT+08:00 Tapani Pälli : Hi Chih-Wei; This looks good to me. Only thing that causes a bit of headache is ... what is the difference between PRODUCT_OUT, OUT_DIR and TARGET_OUT? OUT_DIR is also set to "out" if it

Re: [Mesa-dev] [PATCH] Android: update CleanSpec.mk

2017-11-03 Thread Tapani Pälli
Hi Chih-Wei; This looks good to me. Only thing that causes a bit of headache is ... what is the difference between PRODUCT_OUT, OUT_DIR and TARGET_OUT? On 11/03/2017 09:36 AM, Chih-Wei Huang wrote: The libraries are moved to /vendor since commit c3f75d48. Clean all old files for incremental b

[Mesa-dev] [PATCH v3] i965: expose SRGB visuals and turn on EGL_KHR_gl_colorspace

2017-11-02 Thread Tapani Pälli
likov) update num_formats correctly (reported by dev...@gmail.com) v3: cleanup, remove redundant is_srgb rename explicit_srgb as 'need_srgb' to follow style better Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102264 Bugzilla: https://bugs.

Re: [Mesa-dev] [PATCH 1/2] intel/fs: Alloc pull constants off mem_ctx

2017-11-01 Thread Tapani Pälli
On 11/01/2017 06:33 PM, Jason Ekstrand wrote: Do either of you mind if I cc the first one to stable?  It does fix a potential memory leak in the case where compilation fails. IMO CC stable would be fine for that one. On Wed, Nov 1, 2017 at 9:26 AM, Tapani Pälli <mailto:tapani

Re: [Mesa-dev] [PATCH 1/2] intel/fs: Alloc pull constants off mem_ctx

2017-11-01 Thread Tapani Pälli
series Reviewed-by: Tapani Pälli On 11/01/2017 06:00 PM, Jason Ekstrand wrote: It doesn't actually matter since the only user of push constants, i965, ralloc_steals it back to NULL but it's more consistent and probably fixes memory leaks in some error cases. --- src/intel/compiler/

Re: [Mesa-dev] [PATCH] i965: fix blorp stage_prog_data->param leak

2017-11-01 Thread Tapani Pälli
On 11/01/2017 04:55 PM, Jason Ekstrand wrote: On Wed, Nov 1, 2017 at 7:53 AM, Jason Ekstrand <mailto:ja...@jlekstrand.net>> wrote: On Fri, Oct 27, 2017 at 5:55 AM, Tapani Pälli mailto:tapani.pa...@intel.com>> wrote: Patch uses mem_ctx for allocation to ensure p

Re: [Mesa-dev] [PATCH] i965: fix blorp stage_prog_data->param leak

2017-11-01 Thread Tapani Pälli
is OK with you. Let me know otherwise. Yes, that is fine. I threw the stable tag in last minute 'just in case'. On Fri, 2017-10-27 at 15:55 +0300, Tapani Pälli wrote: Patch uses mem_ctx for allocation to ensure param array gets freed later, in blorp clear case this happens in blorp_pa

[Mesa-dev] [PATCH] i965: fix blorp stage_prog_data->param leak

2017-10-27 Thread Tapani Pälli
==by 0x12EFC4AF: brw_blorp_clear_color (brw_blorp.c:1326) ==6164==by 0x12EFF72B: brw_clear (brw_clear.c:297) Signed-off-by: Tapani Pälli --- src/intel/compiler/brw_fs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/compiler/brw_fs.cpp b/src/intel/compiler

Re: [Mesa-dev] [PATCH] i965: unref push_const_bo in intelDestroyContext

2017-10-27 Thread Tapani Pälli
On 10/27/2017 12:57 PM, Kenneth Graunke wrote: On Friday, October 27, 2017 2:08:36 AM PDT Emil Velikov wrote: On 27 October 2017 at 07:52, Tapani Pälli wrote: Valgrind shows that leak is caused by gen6_upload_push_constant, add unref push_const_bo per stage to destructor to fix this (like

[Mesa-dev] [PATCH 2/2] i965: unref push_const_bo in intelDestroyContext

2017-10-27 Thread Tapani Pälli
, Emil) Fixes: 24891d7c05 ("i965: Store per-stage push constant BO pointers.") Signed-off-by: Tapani Pälli Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/drivers/dri/i965/brw_context.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.c

[Mesa-dev] [PATCH 1/2] i965: remove if conditions from scratch_bo unref

2017-10-27 Thread Tapani Pälli
brw_bo_unreference handles NULL case Signed-off-by: Tapani Pälli --- src/mesa/drivers/dri/i965/brw_context.c | 16 ++-- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index c8de074638

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

2017-10-27 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 10/27/2017 01:48 AM, Mauro Rossi wrote: Having moved gallium_dri.so library to /vendor/lib/dri also symlinks need to be coherently created using TARGET_OUT_VENDOR insted of TARGET_OUT or all non Intel drivers will not be loaded with Android N and earlier, thus

[Mesa-dev] [PATCH] i965: unref push_const_bo in intelDestroyContext

2017-10-26 Thread Tapani Pälli
nt BO pointers.") Signed-off-by: Tapani Pälli Cc: mesa-sta...@lists.freedesktop.org --- src/mesa/drivers/dri/i965/brw_context.c | 11 +++ 1 file changed, 11 insertions(+) diff --git a/src/mesa/drivers/dri/i965/brw_context.c b/src/mesa/drivers/dri/i965/brw_context.c index c8de074638..

Re: [Mesa-dev] [PATCH] mesa: Accept GL_BACK in get_fb0_attachment with ARB_ES3_1_compatibility.

2017-10-26 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 10/26/2017 11:26 PM, Kenneth Graunke wrote: According to the ARB_ES3_1_compatibility specification, glGetFramebufferAttachmentParameteriv is supposed to accept BACK, and it behaves exactly like BACK_LEFT. Fixes a GL error in GFXBench 5 Aztec Ruins. Cc: mesa-sta

Re: [Mesa-dev] [PATCH 2/2] gles2: support for GL_EXT_occlusion_query_boolean

2017-10-24 Thread Tapani Pälli
On 10/24/2017 09:56 PM, Eric Anholt wrote: Tapani Pälli writes: From: Harish Krupo Following test checking entrypoints passes: dEQP-EGL.functional.get_proc_address.extension.gl_ext_occlusion_query_boolean Piglit test 'ext_occlusion_query_boolean-any-samples' passes

Re: [Mesa-dev] [PATCH 1/2] mesa: enum checks for GL_EXT_occlusion_query_boolean

2017-10-23 Thread Tapani Pälli
gentle ping .. (after this we could also enable GL_EXT_disjoint_timer_query and have more queries available for gles) On 10/04/2017 02:56 PM, Tapani Pälli wrote: Some of the checks are valid for generic ES 3.2 as well. Signed-off-by: Tapani Pälli --- src/mesa/main/queryobj.c | 44

Re: [Mesa-dev] [PATCH 1/8] mesa: handle OES_texture_half_float formats in _mesa_base_tex_format()

2017-10-23 Thread Tapani Pälli
Maybe combine common items with ARB_texture_float check below? You could introduce something like: if (ctx->Extensions.ARB_texture_float || ctx->Extensions.OES_texture_half_float) { ... } if (ctx->Extensions.ARB_texture_float || ctx->Extensions.OES_texture_float) { ... } On 10/20/2017 11:

Re: [Mesa-dev] [PATCH] mesa/bufferobj: fix atomic offset/size get

2017-10-12 Thread Tapani Pälli
On 10/12/2017 11:14 PM, Dave Airlie wrote: On 12 October 2017 at 18:22, Tapani Pälli wrote: On 10/12/2017 11:14 AM, Dave Airlie wrote: On 12 Oct. 2017 15:40, "Tapani Pälli" mailto:tapani.pa...@intel.com>> wrote: On 10/12/2017 02:34 AM, Dave Airlie wrote:

Re: [Mesa-dev] [PATCH] anv: Implement VK_ANDROID_native_buffer (v5)

2017-10-12 Thread Tapani Pälli
On 10/09/2017 06:56 PM, Chad Versace wrote: On Mon 25 Sep 2017, Tapani Pälli wrote: On 09/22/2017 03:09 AM, Chad Versace wrote: On Thu 21 Sep 2017, Tapani Pälli wrote: Hi Chad; The build works ok now on Android-IA. There is still something wrong with 'exec async' though.

Re: [Mesa-dev] [PATCH] mesa/bufferobj: fix atomic offset/size get

2017-10-12 Thread Tapani Pälli
On 10/12/2017 11:14 AM, Dave Airlie wrote: On 12 Oct. 2017 15:40, "Tapani Pälli" <mailto:tapani.pa...@intel.com>> wrote: On 10/12/2017 02:34 AM, Dave Airlie wrote: From: Dave Airlie mailto:airl...@redhat.com>> When I realigned the buffero

Re: [Mesa-dev] [PATCH] mesa/bufferobj: fix atomic offset/size get

2017-10-11 Thread Tapani Pälli
On 10/12/2017 02:34 AM, Dave Airlie wrote: From: Dave Airlie When I realigned the bufferobj code, I didn't see the getters were different, realign the getters to work the same as ssbo. Alternatively you could set these values as 0 in bind_buffer_base_atomic_buffer()? Not sure if it's any b

Re: [Mesa-dev] [RFC 1/3] mesa: Add new fast mtx_t mutex type for basic use cases

2017-10-10 Thread Tapani Pälli
ok another one too ... On 10/10/2017 01:03 PM, Tapani Pälli wrote: one error found below .. On 10/10/2017 05:45 AM, Timothy Arceri wrote: While modern pthread mutexes are very fast, they still incur a call to an external DSO and overhead of the generality and features of pthread mutexes

Re: [Mesa-dev] [PATCH 02/15] i965/screen: Add basic support for rendering 10 bpc/depth 30 framebuffers. (v2)

2017-10-10 Thread Tapani Pälli
_formats = ARRAY_SIZE(formats); else - num_formats = 3; + num_formats = 5; How about following: num_formats = ARRAY_SIZE(formats) - 2; /* all - RGBA_ORDERING formats */ (I'm suggesting it here https://patchwork.freedesktop.org/patch/177410/) Not a big deal though, with or without

Re: [Mesa-dev] [PATCH 01/15] i965: Complete 'expose RGBA visuals only on Android'

2017-10-10 Thread Tapani Pälli
Reviewed-by: Tapani Pälli I think this fix can/should land separately from the set. On 10/06/2017 07:11 PM, Mario Kleiner wrote: Commit 731ba6924a2ed6cdf47a78fd637a91a19ddcf9ed "expose RGBA visuals only on Android" replaced ARRAY_SIZE(formats) by num_formats, but there are 3 loops

Re: [Mesa-dev] [RFC 1/3] mesa: Add new fast mtx_t mutex type for basic use cases

2017-10-10 Thread Tapani Pälli
one error found below .. On 10/10/2017 05:45 AM, Timothy Arceri wrote: While modern pthread mutexes are very fast, they still incur a call to an external DSO and overhead of the generality and features of pthread mutexes. Most mutexes in mesa only needs lock/unlock, and the idea here is that we

Re: [Mesa-dev] Testing out Kristian's fast mtx patch

2017-10-10 Thread Tapani Pälli
It's possible that this series could help with CPU intensive 3DMark ... FYI Yogesh. On 10/10/2017 05:45 AM, Timothy Arceri wrote: After a recent discussion about this code from 2015 I was curious to give it a try. The outstanding review item was that we shouldn't be replacing the C11 mtx type/

Re: [Mesa-dev] [PATCH 03/14] intel: Move definition of LOG_TAG from header into Makefiles

2017-10-09 Thread Tapani Pälli
On 09/28/2017 03:11 AM, Chad Versace wrote: This patch prevents compilation failures in upcoming Android Vulkan patches, failures due to redefinition of LOG_TAG in Android system headers. This patch does not change the value of LOG_TAG. It remains "INTEL-MESA". (I don't like it, though. The al

[Mesa-dev] [PATCH] anv: fix null pointer dereference

2017-10-08 Thread Tapani Pälli
CID: 1419033 Signed-off-by: Tapani Pälli --- src/intel/vulkan/anv_image.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/intel/vulkan/anv_image.c b/src/intel/vulkan/anv_image.c index 487ff27594..c8ebdce0b4 100644 --- a/src/intel/vulkan/anv_image.c +++ b/src/intel/vulkan/anv_image.c

Re: [Mesa-dev] [PATCH] i965: pass wanted format to intel_miptree_create_for_dri_image

2017-10-05 Thread Tapani Pälli
On 10/06/2017 03:00 AM, Jason Ekstrand wrote: On Wed, Oct 4, 2017 at 6:32 AM, Tapani Pälli <mailto:tapani.pa...@intel.com>> wrote: Change b3a44ae7a4 caused regressions on Android where DRI and renderbuffer can disagree on the format being used. This patch removes the c

[Mesa-dev] [PATCH] i965: pass wanted format to intel_miptree_create_for_dri_image

2017-10-04 Thread Tapani Pälli
wanted but take format from renderbuffer instead of DRI image. This patch fixes regressions seen with following test sets: dEQP-EGL.functional.color_clears* dEQP-EGL.functional.render* Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102999 --- src/mesa

[Mesa-dev] [PATCH 1/2] mesa: enum checks for GL_EXT_occlusion_query_boolean

2017-10-04 Thread Tapani Pälli
Some of the checks are valid for generic ES 3.2 as well. Signed-off-by: Tapani Pälli --- src/mesa/main/queryobj.c | 44 1 file changed, 44 insertions(+) diff --git a/src/mesa/main/queryobj.c b/src/mesa/main/queryobj.c index 46535d7b4c..d966814a76

[Mesa-dev] [PATCH 2/2] gles2: support for GL_EXT_occlusion_query_boolean

2017-10-04 Thread Tapani Pälli
r Intel CI. v2: add es2="2.0" for glapi entrypoints, clean up xml dispatch_sanity changes (fix 'make check') Signed-off-by: Harish Krupo Signed-off-by: Tapani Pälli --- src/mapi/glapi/gen/es_EXT.xml | 51 + src/mesa/main/extensi

Re: [Mesa-dev] [PATCH 1/7] egl: Support IMG_context_priority

2017-10-03 Thread Tapani Pälli
FYI I've tested this series using your 'preemption' branch on KBL and 'egl-context-priority' test passes. The other Piglit test I sent ('egl-context-priority-runtime') does not always pass but I think the problem is actually in the test itself, it's making assumptions that are not true. I will

[Mesa-dev] [PATCH] android: fix build issues with brw_nir_trig_workarounds.c

2017-10-03 Thread Tapani Pälli
Fixes: 848da66222 ("intel: use a flag instead of setting PYTHONPATH") Signed-off-by: Tapani Pälli --- src/intel/Android.compiler.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/Android.compiler.mk b/src/intel/Android.compiler.mk index 37d75b5679..

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

2017-10-03 Thread Tapani Pälli
On 10/02/2017 01:05 AM, Rob Herring wrote: FYI, 2 Android build errors on i965 and r600 started in the last week. I've been traveling and haven't investigated. Sorry, I've been busy debugging some regressions we have. I'll send a fix for the i965 build in a minute. It broke due to build syst

Re: [Mesa-dev] initial meson port

2017-09-27 Thread Tapani Pälli
On 09/27/2017 08:57 PM, Rob Herring wrote: On Wed, Sep 27, 2017 at 12:38 PM, Eric Anholt wrote: Dylan Baker writes: [ Unknown signature status ] I've gone ahead and pushed the Vulkan drivers meson builds. For those interested in helping finish the conversion, I have a branch "wip/meson-4"

Re: [Mesa-dev] [PATCH] meson: remove duplicate libisl dependency in anv

2017-09-27 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 09/28/2017 02:26 AM, Dylan Baker wrote: Signed-off-by: Dylan Baker CC: Kristian Høgsberg --- src/intel/vulkan/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/intel/vulkan/meson.build b/src/intel/vulkan/meson.build index

Re: [Mesa-dev] [PATCH] anv: Implement VK_ANDROID_native_buffer (v5)

2017-09-24 Thread Tapani Pälli
On 09/22/2017 03:09 AM, Chad Versace wrote: On Thu 21 Sep 2017, Tapani Pälli wrote: Hi Chad; The build works ok now on Android-IA. There is still something wrong with 'exec async' though. It behaves differently with small/big apps but eventually I think it just starts to block ..

Re: [Mesa-dev] [PATCH v2] Android: move libraries to /vendor

2017-09-21 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 09/21/2017 06:28 PM, Rob Herring wrote: As part of Treble project in Android O, all the device specific files have to be located in a separate vendor partition. This is done by setting LOCAL_PROPRIETARY_MODULE (the name is misleading). This change will not break

Re: [Mesa-dev] [PATCH] anv: Implement VK_ANDROID_native_buffer (v5)

2017-09-21 Thread Tapani Pälli
that. Please don't consider that to be a blocker though, we can easily carry such patch in Android-IA and debug it further. For this patch: Reviewed-by: Tapani Pälli On 09/19/2017 12:44 AM, Chad Versace wrote: This implementation is correct (afaict), but takes two shortcuts regarding th

Re: [Mesa-dev] [PATCH] i965/screen: Check that given format is valid

2017-09-21 Thread Tapani Pälli
Reviewed-by: Tapani Pälli On 09/21/2017 10:22 AM, Topi Pohjolainen wrote: CID: 1418110 Fixes: 939b53d3325 "i965/screen: Implement queryDmaBufFormatModifierAttirbs" CC: Jason Ekstrand Signed-off-by: Topi Pohjolainen --- src/mesa/drivers/dri/i965/intel_screen.c | 2 ++ 1 file

[Mesa-dev] [PATCH] mesa: free current ComputeProgram state in _mesa_free_context_data

2017-09-19 Thread Tapani Pälli
This is already done for other programs stages, fixes a leak when using compute programs. Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102844 --- src/mesa/main/context.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/main/context.c b/src

Re: [Mesa-dev] [PATCH] Android: move libraries to /vendor

2017-09-19 Thread Tapani Pälli
On 09/20/2017 12:57 AM, Rob Herring wrote: As part of Treble project in Android O, all the device specific files have to be located in a separate vendor partition. This is done by setting LOCAL_PROPRIETARY_MODULE (the name is misleading). This change will not break existing platforms without a

[Mesa-dev] [PATCH v2] i965: expose SRGB visuals and turn on EGL_KHR_gl_colorspace

2017-09-18 Thread Tapani Pälli
likov) update num_formats correctly (reported by dev...@gmail.com) Signed-off-by: Tapani Pälli Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102264 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102354 Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102503 --- I've te

Re: [Mesa-dev] [PATCH] i965: fix build warning on clang

2017-09-17 Thread Tapani Pälli
On 09/15/2017 07:40 PM, Matt Turner wrote: On Thu, Sep 14, 2017 at 12:26 AM, Tapani Pälli wrote: fixes following warning: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') cast is needed to avoid this tu

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

2017-09-15 Thread Tapani Pälli
On 09/15/2017 01:06 AM, Chad Versace wrote: This implementation is correct (afaict), but takes two shortcuts regarding the import/export of Android sync fds. Shortcut 1. When Android calls vkAcquireImageANDROID to import a sync fd into a VkSemaphore or VkFence, the driver instead simply

Re: [Mesa-dev] [PATCH] i965: fix build warning on clang

2017-09-14 Thread Tapani Pälli
On 09/14/2017 09:31 PM, Jordan Justen wrote: On 2017-09-14 00:26:39, Tapani Pälli wrote: fixes following warning: warning: format specifies type 'long' but the argument has type 'uint64_t' (aka 'unsigned long long') cast is needed to avoid this turning

Re: [Mesa-dev] [PATCH 1/2] anv: android build system changes

2017-09-14 Thread Tapani Pälli
On 09/14/2017 07:54 PM, Rob Herring wrote: On Thu, Sep 14, 2017 at 1:57 AM, Tapani Pälli wrote: Following changes are made to support VK_ANDROID_native_buffer: - bring in vk_android_native_buffer.xml - rename target as vulkan.$(TARGET_BOARD_PLATFORM) - use

Re: [Mesa-dev] [PATCH 2/2] anv: set has_exec_async to false on Android

2017-09-14 Thread Tapani Pälli
On 09/15/2017 01:09 AM, Chad Versace wrote: On Thu 14 Sep 2017, Emil Velikov wrote: On 14 September 2017 at 07:57, Tapani Pälli wrote: Other WSI implementations set has_exec_async false for WSI buffers, so far haven't found a place to do it so we just claim to not have async exec. W

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