Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-13 Thread Emil Velikov
t XXX/TODO/NOTE or alike. As a fall-back, set the LIBSENSORS_{CFLAGS,LIBS} here and use both of those throughout. Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-13 Thread Emil Velikov
of the overall NIC speed. >>> 3. lmsensor power, voltage and temperature sensors. >>> >> I'm not sure if these should be in the driver itself. In practise >> these do not have direct (co-)relation to the performance and/or >> experience thus they may be bett

Re: [Mesa-dev] [PATCH 02/14] egl: Tear down images and syncs at eglTerminate

2016-09-13 Thread Emil Velikov
On 12 September 2016 at 23:19, Adam Jackson wrote: > Signed-off-by: Adam Jackson This should be fine for stable, correct ? Cc: mesa-sta...@lists.freedesktop.org -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org ht

Re: [Mesa-dev] [PATCH 09/14] egl: Lock the display in _eglCreateSync's callers

2016-09-13 Thread Emil Velikov
ter the variable declaration. (More important) note: Keeping the _eglLockDisplay() in the top level (EGL API) while the unlock in the lower level (fooCommon) will come to bite us. We could update the RETURN_EGL_ERROR and co + all the call sites yet it's not something we have to do atm. -Emil

Re: [Mesa-dev] [PATCH 13/14] egl: Track EGL_KHR_debug state when going through EGL API calls

2016-09-13 Thread Emil Velikov
rrentContext (B) - surface - eglSwapInterval (B), eglGetCurrentSurface(B) - image - ok - sync - ok -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 14/14] egl: Implement EGL_KHR_debug

2016-09-13 Thread Emil Velikov
t; + _EGL_FUNC_START(NULL, EGL_NONE, NULL, EGL_BAD_ALLOC); > + > + mtx_lock(_eglGlobal.Mutex); > + if (attribute >= EGL_DEBUG_MSG_CRITICAL_KHR && > + attribute <= EGL_DEBUG_MSG_INFO_KHR) { > + if (_eglGlobal.debugTypesEnabled & DebugBitFromType(at

Re: [Mesa-dev] [PATCH 09/14] egl: Lock the display in _eglCreateSync's callers

2016-09-13 Thread Emil Velikov
On 13 September 2016 at 15:39, Emil Velikov wrote: > On 12 September 2016 at 23:19, Adam Jackson wrote: > (More important) note: > Keeping the _eglLockDisplay() in the top level (EGL API) while the > unlock in the lower level (fooCommon) will come to bite us. We could

Re: [Mesa-dev] [PATCH 00/14] EGL_KHR_debug v3

2016-09-13 Thread Emil Velikov
others do. Patches 13 + 14 have a few bugs alongside the coding style issues. Everything else (1-12 incl.) is Reviewed-by: Emil Velikov Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] st/va: also honors interlaced preference when providing a video format

2016-09-13 Thread Emil Velikov
this. >> >> Totally untested/thought through, but maybe the env should default to on? > > > Agree, can you come up a patch for that? > > Also any outstanding patches for VA-API encode from you was reviewed, but > not committed? > if any, sent to me, I can push them.

Re: [Mesa-dev] [PATCH 14/14] egl: Implement EGL_KHR_debug

2016-09-13 Thread Emil Velikov
On 13 September 2016 at 18:55, Adam Jackson wrote: > On Tue, 2016-09-13 at 17:17 +0100, Emil Velikov wrote: > >> > + } else { >> > + _eglDebugReportFull(EGL_BAD_ALLOC, __func__, __func__, >> > + EGL_DEBUG_MSG_CRITICAL_KHR, N

Re: [Mesa-dev] [PATCH 09/14] egl: Lock the display in _eglCreateSync's callers

2016-09-13 Thread Emil Velikov
On 13 September 2016 at 19:14, Adam Jackson wrote: > On Tue, 2016-09-13 at 17:22 +0100, Emil Velikov wrote: > >> Actually, current code has a bunch of such bugs which this series addresses. >> Considering there's only a couple of those and they are pretty hard to >

Re: [Mesa-dev] [PATCH 09/14] egl: Lock the display in _eglCreateSync's callers

2016-09-14 Thread Emil Velikov
On 13 September 2016 at 19:22, Adam Jackson wrote: > On Tue, 2016-09-13 at 19:18 +0100, Emil Velikov wrote: > >> For the series as a whole ? >> Two words which contradict any software's stable scheme - new feature. > > Disagree, but I'm not the one running Mes

Re: [Mesa-dev] [PATCH 13/14] egl: Track EGL_KHR_debug state when going through EGL API calls

2016-09-14 Thread Emil Velikov
On 13 September 2016 at 17:46, Adam Jackson wrote: > On Tue, 2016-09-13 at 16:54 +0100, Emil Velikov wrote: >> Going through table 13.2 and the below there are some discrepancies. >> >> AFAICT some of those can be seen as spec bugs (B), while others seem >> to

Re: [Mesa-dev] [PATCH] Remove GL_GLEXT_PROTOTYPES guards from non-ext headers.

2016-09-14 Thread Emil Velikov
On 13 September 2016 at 21:05, Eric Anholt wrote: > Ilia Mirkin writes: > >> On Mon, Sep 12, 2016 at 11:55 AM, Emil Velikov >> wrote: >>> On 12 September 2016 at 15:35, Ilia Mirkin wrote: >>>> On Mon, Sep 12, 2016 at 10:10 AM, Emil Velikov >&g

Re: [Mesa-dev] [PATCH 09/14] egl: Lock the display in _eglCreateSync's callers

2016-09-14 Thread Emil Velikov
On 14 September 2016 at 13:36, Adam Jackson wrote: > On Wed, 2016-09-14 at 11:15 +0100, Emil Velikov wrote: > >> Nice one... I wonder if your view will be the same if you were never >> involved in distribution packaging? Guess we'll never know :-\ >> In case you'

Re: [Mesa-dev] [PATCH mesa] configure.ac: fix the name of the Wayland Scanner pc file

2016-09-14 Thread Emil Velikov
On 13 September 2016 at 17:31, Eric Engestrom wrote: > From: Brendan King > > The Wayland Scanner pkg-config file is called wayland-scanner.pc. > Nice one, thanks. Added the stable tag and pushed alongside the GBM cleanup patch. Emil

Re: [Mesa-dev] [PATCH v2] gallium: fix return value check

2016-09-14 Thread Emil Velikov
ai Hähnle >> Signed-off-by: Martina Kollarova > > Good cleanup :) > Reviewed-by: Eric Engestrom > > By the way, I noticed this hasn't landed, after almost a week. > Would anyone care to push it? Nicolai? > Just did. Thanks for the reminder ! Emil ___

Re: [Mesa-dev] [PATCH] gallium/winsys/kms: Close drm device filedescriptor on kms_dri_sw_winsys release

2016-09-14 Thread Emil Velikov
s the fd. Imho it might be worth going through the code paths adding comments about the fd ownership at different stages while fixing any leaks that you/others come across. Note: Multiple displays/Xinerama and GL-VDPAU interop are sensitive on the area, so I'd suggest testing things caref

Re: [Mesa-dev] [PATCH 13/14] egl: Track EGL_KHR_debug state when going through EGL API calls

2016-09-14 Thread Emil Velikov
On 14 September 2016 at 15:00, Adam Jackson wrote: > On Wed, 2016-09-14 at 12:08 +0100, Emil Velikov wrote: > >> Thanks for reminding me - eglQueryAPI should never throw an error, >> indeed. Since EGL_KHR_debug is applicable for functions_do_ throw an >> error, one should

Re: [Mesa-dev] [PATCH] st/vdpau: remove nouveau target

2016-09-15 Thread Emil Velikov
gt; Just to double-check - by "breakage" and "unusable" you mean that it's "awfully slow" correct ? Do you/others have any plan to update the state-tracker and/or nouveau to brings things back on par ? Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [ANNOUNCE] mesa 12.0.3

2016-09-15 Thread Emil Velikov
Hi all, Mesa 12.0.3 is now available. This is an emergency release addressing a number of regressions across all devices using the i965 driver. Emil Velikov (4): docs: add sha256 checksums for 12.0.2 Revert "i965/miptree: Stop multiplying cube depth by 6 in HiZ calcula

Re: [Mesa-dev] [PATCH] st/vdpau: remove nouveau target

2016-09-15 Thread Emil Velikov
On 15 September 2016 at 10:56, Emil Velikov wrote: > On 15 September 2016 at 02:54, Ilia Mirkin wrote: >> On Wed, Sep 14, 2016 at 9:52 PM, Ilia Mirkin wrote: >>> Recent changes have been made to the VDPAU state tracker to make it >>> unusable with nouveau. Don'

Re: [Mesa-dev] [PATCH] direct-to-native-GL for GLX clients on Cygwin ("Windows-DRI")

2016-09-15 Thread Emil Velikov
ows/Makefile > + src/glx/windows/windowsdriproto.pc So this is where windowsdriproto is. Can I suggest moving that into separate package/repo analogous to xf86driproto/dri2proto/dri3proto. Having it in ~jturney/ would be fine as a start, until an admin creates a repo in xorg

[Mesa-dev] [PATCH v2 16/30] egl/x11: don't populate dri2_dpy->dri2_loader_extension

2016-09-16 Thread Emil Velikov
From: Emil Velikov Analogous to the earlier android and wayland patches. As we're here we can drop exposing the old version of the extension. Any dri loader/driver interface use lower bound checking thus exposing dri2 loader v3 to a v2 capable driver is perfectly normal. v2: Preserve c

[Mesa-dev] [PATCH v2 20/30] egl/dri2: rework dri2_egl_display::extensions storage

2016-09-16 Thread Emil Velikov
From: Emil Velikov Remove the error prone fixed size array. While we're here also rename to loader_extensions like in the GLX code. v2: Rebase. Keep image_loader_extension within the wayland_drm dri2_loader_extensions list. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_d

[Mesa-dev] [PATCH v2 23/30] egl/dri2: add support for optional extensions in dri2_bind_extensions()

2016-09-16 Thread Emil Velikov
From: Emil Velikov Will allow us to reuse the function for optional extensions and fold a bit of code. v2: Make dri2_bind_extensions::optional flag an argument to dri2_bind_extensions (Kristian). Cc: Rob Clark Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 24

[Mesa-dev] [PATCH v2 25/30] egl/dri2: use dri2_bind_extensions to manage the optional extensions

2016-09-16 Thread Emil Velikov
From: Emil Velikov v2: dri2_bind_extensions() now takes optional as an argument. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 28 ++-- 1 file changed, 10 insertions(+), 18 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers

[Mesa-dev] [PATCH v2 26/30] egl/dri2: annotate dri2_extension_match instances as const data

2016-09-16 Thread Emil Velikov
From: Emil Velikov v2: Rebase. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/egl/drivers/dri2/egl_dri2.c b/src/egl/drivers/dri2/egl_dri2.c index d2ae25a..75070da 100644 --- a/src/egl

[Mesa-dev] [PATCH v2 30/30] egl/dri2: set WL_bind_wayland_display in a consistent way

2016-09-16 Thread Emil Velikov
From: Emil Velikov Introduce a helper and use it throughout the platform code. This allows us to reduce the amount of ifdef(s) and (potentially) use kms_swrast_dri.so for !drm platforms (namely wayland and x11). Note: in the future as other platforms (android, surfaceless) support the extension

Re: [Mesa-dev] [PATCH 00/30] egl: a ton of eglMakeCurrent inspired cleanups

2016-09-16 Thread Emil Velikov
On 25 August 2016 at 17:18, Emil Velikov wrote: > Hi all, > > With the resent noise in the egl area I decided to do some of the long > planned cleanup in the area. It spans across the following: > > - glapi missing glFlush and non-shared glapi are not an option > - enca

[Mesa-dev] [PATCH v2 1/7] egl/surfaceless: print out a message on zero configs for given format

2016-09-16 Thread Emil Velikov
From: Emil Velikov Currently we print a debug message if the total configs is non-zero only to do the same (at an error level) as we return from the function. Rework the message to print if we're missing a config for the given format. Signed-off-by: Emil Velikov Reviewed-by: Gurchetan

[Mesa-dev] [PATCH v2 2/7] egl/drm: introduce drm_add_configs_for_visuals() helper

2016-09-16 Thread Emil Velikov
From: Emil Velikov Factor out and rework the existing code so that it prints a debug message if we have zero configs for any visual. As a nice side effect we now provide a correct (sequential ID) when creating a config (via dri2_add_config). v2: Use correct comparison in loop conditional (Eric

[Mesa-dev] [PATCH v2 3/7] egl/android: tweak droid_add_configs_for_visuals()

2016-09-16 Thread Emil Velikov
From: Emil Velikov Iterate over the driver_configs first in order to cut down the number of getConfigAttrib() calls by a factor of 5. While we're here, also drop the sentinel of the visuals array. We already know its size so we can use that and save a few bytes. v2: Use correct comparis

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

2016-09-16 Thread Emil Velikov
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/platform_surfaceless.c | 15 --- 1 file changed, 8

[Mesa-dev] [PATCH v2 6/7] egl/x11: attribute for dri2_add_config failure

2016-09-16 Thread Emil Velikov
From: Emil Velikov ... in dri2_x11_add_configs_for_visuals(). Currently the latter does not consider that, thus in such cases it adds "empty" configs in the list. Properly account for things and as we do that we can reuse count, instead of calling _eglGetArraySize to deterime if w

[Mesa-dev] [PATCH v2 5/7] egl/wayland: introduce dri2_wl_add_configs_for_visuals() helper

2016-09-16 Thread Emil Velikov
From: Emil Velikov Analogous to previous commits - with an extra bonus. Current code, apart from not attributing the lack of 'per visual' and overall configs also overwrites the newly added config. Namely if the dpy supports two or more of the supported formats (XRGB, ARGB

[Mesa-dev] [PATCH v2 7/7] egl/drm: set eglError and provide an error message on failure

2016-09-16 Thread Emil Velikov
From: Emil Velikov v2: Remove gratuitous newline/semicolon (Eric) Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom --- src/egl/drivers/dri2/platform_drm.c | 21 +++-- 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/src/egl/drivers/dri2/platform_drm.c b

Re: [Mesa-dev] [PATCH 13/14] egl: Track EGL_KHR_debug state when going through EGL API calls (v3)

2016-09-16 Thread Emil Velikov
n _eglSetFuncName > - Pass draw surface (if any) to _EGL_FUNC_START in eglSwapInterval > > v3: > - Set dummy thread's CurrentAPI to EGL_OPENGL_ES_API not zero Maybe (only maybe) we want this as a one-line fix for stable. But regardless, this and v2 14/14 look a lot better and are R

Re: [Mesa-dev] [PATCH 2/3] glx/glvnd: Fix dispatch function names and indices

2016-09-16 Thread Emil Velikov
0+ entrypoints ... right ? Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] vl/dri3: handle the case of different GPU(v4.1)

2016-09-19 Thread Emil Velikov
ext in vl_dri3_screen_destroy and proper handling if context_create fails seems to be missing. -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH v3 0/3] Make eglExportDMABUFImageMESA return corresponding offset.

2016-09-19 Thread Emil Velikov
On 19 September 2016 at 16:38, Jason Ekstrand wrote: > It all looks fine to me. Feel free to add a > > Reviewed-by: Jason Ekstrand > > That said, my knowledge of the details of the DRI vfuncs is very limited so > I'd like to see Emil or Axel sign off on it too, especiall

Re: [Mesa-dev] [PATCH v3 0/3] Make eglExportDMABUFImageMESA return corresponding offset.

2016-09-21 Thread Emil Velikov
On 20 September 2016 at 09:32, Weng, Chuanbo wrote: > Hi Emil, > What you mentioned about style issue in last round is: > Please move the variable declaration in local scope and add > space between ){ > I think I have fixed these issue in this v

[Mesa-dev] [RFC 4/7] eglplatform.h: warn when the user hasn't provided a known platform

2016-09-22 Thread Emil Velikov
From: Emil Velikov --- include/EGL/eglplatform.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h index 16765fb..dc4a3e2 100644 --- a/include/EGL/eglplatform.h +++ b/include/EGL/eglplatform.h @@ -133,6 +133,7 @@ typedef Pixmap

[Mesa-dev] [RFC 3/7] eglplatform.h: Introduce EGL_USE_PLATFORM_APPLE_KHR

2016-09-22 Thread Emil Velikov
From: Emil Velikov --- XXX: This is the upstream/Khronos definition of it, although I'm not perfectly sure if/how many users depend on it. XXX: Worth folding with the original commit which introduces the EGL_USE PLATFORM... lot ? --- include/EGL/eglplatform.h | 6 ++ 1 file chang

[Mesa-dev] [RFC 6/7] Revert "build: fix EGL build when no X11 headers are present"

2016-09-22 Thread Emil Velikov
This reverts commit 1a7275de9a0088cedab17131eec82bd2cada26c3. No longer required/needed as-of last commit. Conflicts: configure.ac --- configure.ac | 7 --- 1 file changed, 7 deletions(-) diff --git a/configure.ac b/configure.ac index 0604ad9..d16447f 100644 --- a/configure.ac +++ b

[Mesa-dev] [RFC 7/7] eglplatform.h: remove buggy/fragile autodetection

2016-09-22 Thread Emil Velikov
From: Emil Velikov With the previous EGL_USE_PLATFORM_*_KHR in place one no longer needs any of this fragile and somewhat buggy heuristics. Users are responsible for requesting their preferred platform, with adding a default to none/native types. --- XXX: Similar to previous patch - something

[Mesa-dev] [RFC 1/7] eglplatform.h: introduce and use EGL_USE_PLATFORM_*_KHR

2016-09-22 Thread Emil Velikov
From: Emil Velikov In order to avoid the current, somewhat fragile detection in eglplatform.h introduce explicit platform selection. The approach is based on the one used in Vulkan and allows one to explicitly "request" the platform they will be using without the need of local hacks

[Mesa-dev] [RFC 2/7] eglplatform.h: introduce EGL_USE_PLATFORM_XCB_KHR

2016-09-22 Thread Emil Velikov
From: Emil Velikov There is no concept of display on XCB thus the connection is used instead. --- XXX: Pure XCB/Xlib-free implementation anyone ? --- include/EGL/eglplatform.h | 7 +++ 1 file changed, 7 insertions(+) diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h index

[Mesa-dev] [RFC 5/7] eglplatform.h: remove local mesa hacks/workarounds from eglplatform.h

2016-09-22 Thread Emil Velikov
From: Emil Velikov This commit effectively reverts the following: 7d642442d9339e5b65c30802c44091816cdf18be 400b833592d9aad7b2c4627a897380642d52189f 2c6186390c48e0d1f2b4d4136c11eb0bedfd1aec eddcecbf74da26716509c047b95e85b00c12bab4 c0f8c9911c82c576cdd82dabad4a2370ac53565c

[Mesa-dev] [RFC 0/7] eglplatform.h: removing local hacks and improving robustness

2016-09-22 Thread Emil Velikov
perfect world" solution, admittedly with the last 1-3 being rather debatable. Any and all input would be greatly appreciated ! Thanks Emil ** If we agree that we can remove the detection heuristics Emil Velikov (7): eglplatform.h: introduce and use EGL_USE_PLATFORM_*_KHR eglp

Re: [Mesa-dev] [PATCH 1/2] gbm/dri2: propagate errors when creating a DMA-BUF fd

2016-09-22 Thread Emil Velikov
+--- > src/gbm/main/gbm.c| 3 ++- Thanks for the patches. I've split this into two (loader src/gbm and "driver" src/gallium...) fixes, tagged for stable, applied some coding style polish and pushed the series to master. -Emil __

Re: [Mesa-dev] [PATCH] i915g: fix incorrect gl_FragCoord value

2016-09-22 Thread Emil Velikov
I've Cc'd Roland (the author of the commit 'breaking' this) and Stéphane (the author of this driver). Gents, any input on the above ? That said, please drop the unneeded brackets and add the following line in the commit message for v2. Cc: mesa-sta...@lists.freedesktop.org Thanks, Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] Expose ES 3.2 symbols in libGLESv2.so?

2016-09-22 Thread Emil Velikov
API is exported we might as well do the same for GLES 3.2. It's a bit shame on the (broken?) ABI side of things, but well we cannot do much at this point. I'm still finding my way around in Khronos, but I have a few ideas how one can update things going forward (GLES 3.3 anyone?). Regards, Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] gallium/winsys/kms: Close drm device filedescriptor on kms_dri_sw_winsys release

2016-09-22 Thread Emil Velikov
On 14 September 2016 at 15:04, Emil Velikov wrote: > Hi Lukasz, > > On 5 September 2016 at 17:48, Lukasz Spintzyk > wrote: >> This closes filedescriptor owned by kms_dri_sw_winsys struct. It fixes issue >> where removal of udl or evdi module used by DisplayLink devices w

Re: [Mesa-dev] [RFC] EGL_MESA_platform_surfaceless

2016-09-23 Thread Emil Velikov
n with the actual (present or not) winsys layer. There's nothing specific in the spec that needs addressing just a couple maybe nice ideas: - Consider exposing the extension on EGL_EXT_client_extensions + EGL_EXT_platform_base aware implementations - Worth adding a small example alike the other

Re: [Mesa-dev] [PATCH 2/3] st/va: Save surface chroma format in config

2016-09-27 Thread Emil Velikov
>rc = PIPE_H264_ENC_RATE_CONTROL_METHOD_DISABLE; >} > + if (attrib_list[i].type == VAConfigAttribRTFormat) { > + if (attrib_list[i].value & VA_RT_FORMAT_YUV420) { s/&/==/ ? Regards, Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 1/5] st/omx/dec/h265: add scaling list data

2016-09-27 Thread Emil Velikov
e_id, matrix_id; > + > + for (size_id = 0; size_id < 4; ++size_id) { Why would one loop over size_id, if close of everything in the loop is special cased on the size_id ? -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 3/5] st/omx/dec/h265: decoder size should follow from sps

2016-09-27 Thread Emil Velikov
On 23 September 2016 at 17:32, Leo Liu wrote: > So that it will pass correct size to width(height)_in_samples in > uvd message buffer. > The st code is device agnostic. s/uvd/hardware/ perhaps ? -Emil ___ mesa-dev mailing list

Re: [Mesa-dev] [PATCH 5/5] st/omx/dec/h265: fix the skip for before and after list

2016-09-27 Thread Emil Velikov
faict 3-5 are bugfixes so please add a bit more context in the commit message and Cc: mesa-sta...@lists.freedesktop.org Reviewed-by: Emil Velikov Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] v2 st/va Avoid VBR bitrate calculation overflow

2016-09-27 Thread Emil Velikov
Since Leo is on vacation I will probably collect all remaining mesa patches > and commit them later today. > Christian please s/v2 st/va /st/va: / the commit message and add Cc: mesa-sta...@lists.freedesktop.org Thanks Emil Andy: git format-patch

Re: [Mesa-dev] [RFC] egl: stop claiming support for pbuffer + msaa (RFC)

2016-09-27 Thread Emil Velikov
? Can you apply a minor polish to the comment - "XXX/TODO: pbuffer + MSAA does not work + QT bugreport" or alike. Cc: mesa-sta...@lists.freedesktop.org Reviewed-by: Emil Velikov Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] glx: don't expose systemTimeExtension for DRI2/DRI3/DRISW

2016-09-27 Thread Emil Velikov
Used/applicable to only dri1 drivers. Signed-off-by: Emil Velikov --- If anyone wants to go ahead and start moving the DRI1 only functionality to src/glx/dri[1] that'll be appreciated. --- src/glx/dri2_glx.c | 2 -- src/glx/dri3_glx.c | 1 - src/glx/drisw_glx.c | 1 - 3 files chang

[Mesa-dev] [PATCH] egl: use unsigned int index when iterating over attrib_list

2016-09-27 Thread Emil Velikov
From: Emil Velikov Otherwise one can overflow the signed variable and (attempt to) cause all sorts of strange behaviour. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 2 +- src/egl/main/eglconfig.c| 3 ++- src/egl/main/eglcontext.c | 3 ++- src/egl/main

Re: [Mesa-dev] [RFC 1/7] eglplatform.h: introduce and use EGL_USE_PLATFORM_*_KHR

2016-09-27 Thread Emil Velikov
On 25 September 2016 at 00:17, Eric Engestrom wrote: > On Thu, Sep 22, 2016 at 09:38:06AM +0100, Emil Velikov wrote: >> From: Emil Velikov >> >> In order to avoid the current, somewhat fragile detection in >> eglplatform.h introduce explicit platform selection. >>

Re: [Mesa-dev] st/omx/dec/h265: Correct the timestamping (derived from commit 3b6bda665a5a890f2c98e19d2939d7de92b8cb4c)

2016-09-27 Thread Emil Velikov
On 27 September 2016 at 13:13, Christian König wrote: > Hi Indrajit, > > please send this patch once more as text mail. I can't commit it like this. > Having a commit message is strongly recommended. A fixes and/or stable tag would be even better

Re: [Mesa-dev] [PATCH] egl: use unsigned int index when iterating over attrib_list

2016-09-27 Thread Emil Velikov
On 27 September 2016 at 16:18, Eric Engestrom wrote: > On Tue, Sep 27, 2016 at 04:10:53PM +0200, Nicolai Hähnle wrote: >> On 27.09.2016 14:40, Emil Velikov wrote: >> > From: Emil Velikov >> > >> > Otherwise one can overflow the signed variable and (attempt

[Mesa-dev] Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?)

2016-09-29 Thread Emil Velikov
e complete. Devs, let me know if there's a "must have" feature that we want in 12.1. Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC] ralloc: use jemalloc for faster GLSL compilation

2016-09-29 Thread Emil Velikov
or all Mesa code > would be more robust. > ... this doesn't is not a wise move. Don't force jemalloc onto everyone without having an explicit ACK from a wide audience, please ? Considering the static/shared link (or w/o jemalloc all together) distributions will have their preferences/policies which won't align with my/your view. Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [RFC] egl: stop claiming support for pbuffer + msaa (RFC)

2016-09-29 Thread Emil Velikov
On 27 September 2016 at 13:47, Marek Olšák wrote: > On Tue, Sep 27, 2016 at 2:34 PM, Emil Velikov > wrote: >> On 26 September 2016 at 08:41, Tapani Pälli wrote: >>> This fixes a crash in egl-create-msaa-pbuffer-surface Piglit test >>> and same crash in many dEQP E

Re: [Mesa-dev] [PATCH 7/7] egl: Unify the EGLint/EGLAttrib paths in eglCreateSync*

2016-09-29 Thread Emil Velikov
eof(int_list[0]) != sizeof(attrib_list[0]). -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 0/7] egl: Fixes and cleanups for EGLSync

2016-09-29 Thread Emil Velikov
he following. No regressions found. Ratios are pass/fail. > > BEFORE AFTER > dEQP-EGL.functional.fence_sync.* deadlock 27/0 > dEQP-EGL.functional.reusable_sync.* : 8/17 8/17 > piglit egl_khr_fence_sync pass pass > Wi

Re: [Mesa-dev] [PATCH 7/7] egl: Unify the EGLint/EGLAttrib paths in eglCreateSync*

2016-09-29 Thread Emil Velikov
t used afaics) and b) we'll error out if the user provides an empty/null list (not the most useful thing to do, but still). Afaics all the EGL 1.5 entry points either explicitly state that attrib_list can be null or empty or say that all the unspecified attribs will be set to their defa

Re: [Mesa-dev] [RFC] ralloc: use jemalloc for faster GLSL compilation

2016-09-29 Thread Emil Velikov
On 29 September 2016 at 18:48, Marek Olšák wrote: > On Thu, Sep 29, 2016 at 4:56 PM, Emil Velikov > wrote: >> On 29 September 2016 at 11:48, Marek Olšák wrote: >>> On Thu, Sep 29, 2016 at 11:20 AM, Nicolai Hähnle wrote: >>>> On 28.09.2016 18:49, Marek Olš

[Mesa-dev] [PATCH 1/3] glx: correctly mask the drawableType for GLX_ARB_fbconfig_float

2016-09-30 Thread Emil Velikov
From: Emil Velikov The comment/spec says - only for pbuffer drawables, while the code clears the window/pixmap bit. Practise what you preach and apply the trivial tweak. In practise this should not cause functional change. Signed-off-by: Emil Velikov --- src/glx/glxext.c | 2 +- 1 file

[Mesa-dev] [PATCH 2/3] glx: return GL_FALSE from glx_screen_init where applicable.

2016-09-30 Thread Emil Velikov
From: Emil Velikov Return GL_FALSE if we fail to find any fb/visual configs, otherwise we end up with all sorts of chaos further down the GLX stack. Signed-off-by: Emil Velikov --- src/glx/glxext.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/glx/glxext.c b

[Mesa-dev] [PATCH 3/3] glx: rename choose_visual(), drop const argument

2016-09-30 Thread Emil Velikov
From: Emil Velikov The function deals with fb (style) configs, thus using "visual" in the name is misleading. Which in itself had led to the use of fbconfig_style_tags argument. Rename the function to reflect what it does and drop the unneeded argument. Signed-off-by: Emil Velikov

Re: [Mesa-dev] Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?)

2016-09-30 Thread Emil Velikov
On 30 September 2016 at 02:31, Dave Airlie wrote: > On 30 September 2016 at 01:07, Jason Ekstrand wrote: >> On Sep 29, 2016 7:56 AM, "Emil Velikov" wrote: >>> >>> On 28 September 2016 at 19:53, Marek Olšák wrote: >>> > Hi, >>> > >

Re: [Mesa-dev] Mesa 13.0.0 release plan (Was Re: Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?))

2016-09-30 Thread Emil Velikov
On 30 September 2016 at 03:31, Timothy Arceri wrote: > On Thu, 2016-09-29 at 19:17 -0700, Jason Ekstrand wrote: > > On Sep 29, 2016 5:14 PM, "Timothy Arceri" > wrote: >> >> On Thu, 2016-09-29 at 15:56 +0100, Emil Velikov wrote: >> > On 28

[Mesa-dev] [PATCH] egl: remove explicit config_id management from dri2_add_config()

2016-09-30 Thread Emil Velikov
From: Emil Velikov Currently we only saved the id to memcpy the whole _EGLConfig to write back the exact same id value. Remove the unneeded and confusing/misleading code. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/src

Re: [Mesa-dev] [PATCH v2] egl: stop claiming support for pbuffer + msaa

2016-09-30 Thread Emil Velikov
509 > > v2: Ian pointed out that v1 removed support for all multisample > configs, including window ones. This one removes pbuffer bit > when adding configs, now only pbuffer+msaa gets rejected and > window+msaa continues to work. Fixed also comment (Emil) > > Signed-

Re: [Mesa-dev] [Mesa-stable] [PATCH] egl/drm, gallium: replace all calls to dup(2) with fcntl(F_DUPFD_CLOEXEC)

2016-09-30 Thread Emil Velikov
p a bit, even though it's quite trivial fix. Please do either - one per subsystem (file effectively) or egl, gallium/auxiliary, st/dri, st/xa & gallium/winsys ? Thanks again ! Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] docs: update the list of Mesa major versions and API support

2016-09-30 Thread Emil Velikov
gt; +Version 9.0 of Mesa also included the first release of the Clover state > +tracker for OpenCL. > + > Mentioning Clover whist omitting VDPAU/OMX and others is a bit meh. Either way, thanks for the update Brian. Reviewed-by: Emil Velikov -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH] HUD: Add support for block I/O, network I/O and lmsensor stats

2016-09-30 Thread Emil Velikov
test "x$enable_lmsensors" = xyes) > +if test "x$enable_lmsensors" = xyes ; then > +DEFINES="${DEFINES} -DHAVE_LIBSENSORS=1" > +LIBSENSORS_LDFLAGS="-lsensors" > +else > +LIBSENSORS_LDFLAGS="" > +fi > +AC_SUBST(LIBS

Re: [Mesa-dev] Mesa 13.0.0 release plan (Was Re: Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?))

2016-09-30 Thread Emil Velikov
On 30 September 2016 at 15:57, Ian Romanick wrote: > On 09/30/2016 06:23 AM, Brian Paul wrote: >> On 09/30/2016 04:59 AM, Emil Velikov wrote: >>> On 30 September 2016 at 03:31, Timothy Arceri >>> wrote: >>>> On Thu, 2016-09-29 at 19:17 -0700, Jason Ekstran

Re: [Mesa-dev] [PATCH] autoconf: Make header install distinct for various APIs

2016-10-03 Thread Emil Velikov
clear that this header should not be installed. Then again looking at our current wildcard installing ... seems like it was. Please drop this file from the install stage ? > +endif > +endif > + > +if HAVE_COMMON_OSMESA > +osmesadir = $(includedir)/GL > +osmesa_HEADERS = $(top

Re: [Mesa-dev] [PATCH 10/30] egl/dri2: rework dri2_make_current code flow

2016-10-03 Thread Emil Velikov
On 25 September 2016 at 04:24, Eric Engestrom wrote: > On Thu, Aug 25, 2016 at 05:18:32PM +0100, Emil Velikov wrote: >> From: Emil Velikov >> >> Duplicate a few lines at the expense of making the code-flow clearer >> while adding a few extra comments ;-) >&g

[Mesa-dev] [PATCH v2 10/30] egl/dri2: rework dri2_make_current code flow

2016-10-03 Thread Emil Velikov
From: Emil Velikov Fold duplicate conditional blocks and add a few extra comments ;-) v2: Bring back the explicit "unbind" logic (Eric), remove NULL derefs. Signed-off-by: Emil Velikov --- src/egl/drivers/dri2/egl_dri2.c | 72 - 1 file c

Re: [Mesa-dev] Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?)

2016-10-04 Thread Emil Velikov
On 4 October 2016 at 02:05, Rob Clark wrote: > On Thu, Sep 29, 2016 at 10:56 AM, Emil Velikov > wrote: >> On 28 September 2016 at 19:53, Marek Olšák wrote: >>> Hi, >>> >>> It's been almost 4 months since the 12.0 branch was created, and soon >&g

Re: [Mesa-dev] Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?)

2016-10-04 Thread Emil Velikov
hey deserve more cleaning and testing, but if it's Oct 7, we'll try be on > time. > 14th it is. As mentioned before: _don't_ wait for the last week to get things merged. Once you're reasonably happy just send the new work review and commit it. Same applies for bugfixes :-) T

Re: [Mesa-dev] [PATCH 1/4] amd/common: add nir->llvm translation.

2016-10-04 Thread Emil Velikov
er.cpp ac_llvm_util.c ac_llvm_util.h ac_nir_to_llvm.c ac_nir_to_llvm.h ac_radeon_winsys.h > +#pragma once > + Please don't use pragma once, but ifdef FOO/define FOO guards. Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] radv initial submission

2016-10-04 Thread Emil Velikov
It'll be worth when porting newer anv changes. As a follow up we might want to check that the common headers don't get overwritten at install stage (factor out the vulkan_include* and/or move to reuse the Khronos ones). Well done and keep up the nice work :-) Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 2/4] radv/winsys: import the amdgpu winsys for the radv vulkan driver.

2016-10-04 Thread Emil Velikov
eral is using pragma's > over usual header guards.. You guys likely did this for rapid dev but I > think we should fix them to be guards before merge. > Seems like ANV is doing the same, so one shouldn't point fingers at RADV. That said, gents can

Re: [Mesa-dev] [PATCH] util: use GCC atomic intrinsics with explicit memory model

2016-10-04 Thread Emil Velikov
src/util/u_atomic.h | 21 + > 2 files changed, 32 insertions(+) > On the build side the patch looks great, I haven't looked at the atomic specifics. Reviewed-by: Emil Velikov -Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] Mesa 12.1.0 release plan (Was Re: Next Mesa release, anyone?)

2016-10-04 Thread Emil Velikov
On 4 October 2016 at 15:57, Rob Herring wrote: > On Tue, Oct 4, 2016 at 5:26 AM, Emil Velikov wrote: >> On 4 October 2016 at 02:05, Rob Clark wrote: >>> On Thu, Sep 29, 2016 at 10:56 AM, Emil Velikov >>> wrote: >>>> On 28 September 2016 at 19:53, Marek O

Re: [Mesa-dev] [PATCH 7/7] egl: Unify the EGLint/EGLAttrib paths in eglCreateSync*

2016-10-05 Thread Emil Velikov
On 4 October 2016 at 22:31, Chad Versace wrote: > On Thu 29 Sep 2016, Emil Velikov wrote: >> On 28 September 2016 at 07:28, Chad Versace wrote: >> > Pre-patch, there were two code paths for parsing EGLSync attribute >> > lists: one path for old-style EGLint list

Re: [Mesa-dev] radv initial submission

2016-10-05 Thread Emil Velikov
it. >> As a follow up we might want to check that the common headers don't >> get overwritten at install stage (factor out the vulkan_include* >> and/or move to reuse the Khronos ones). > > This would be a problem with anv now wouldn't it? > Sort of... it depends on a number of factors. Thanks again, Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 2/2] radv: Add new flag for LLVM dependecies with vulkan

2016-10-05 Thread Emil Velikov
make the LLVM requirement implicit as requesting a driver which uses LLVM. Even then, some modules can optionally make use of it (LLVM) for which we'll still need the toggle :-\ Afaict RADV does not use the gallium aux module so the above should not be needed, no ? -Emil __

Re: [Mesa-dev] radv vs vulkan loader

2016-10-05 Thread Emil Velikov
that should be fixed in LLVM. Namely: if a library sets up a state it should cleanup after itself. That aside, does the radv vulkan driver have unresolved/undefined symbols (check via $ldd -r libvulkan_foo.so) with your workaround ? If not we {c,sh}ould drop the library from the link chain. Alterna

Re: [Mesa-dev] [PATCH 02/75] gallium/util: Really allow aliasing for u_box_union_*

2016-10-06 Thread Emil Velikov
ription of the bug is greatly recommended. Thanks Emil ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev

Re: [Mesa-dev] [PATCH 04/75] st/nine: Fix some check flags

2016-10-06 Thread Emil Velikov
On 5 October 2016 at 21:08, Axel Davy wrote: > Uses the new defines introduced in previous commit. > Please describe why the newly introduced flags are used over the present ones. Worth copying some of the in-source comment or referencing it ?

<    7   8   9   10   11   12   13   14   15   16   >