Re: [Mesa-dev] [PATCH 4/4] drisw/glx: use XShm if possible

2015-06-10 Thread Adam Jackson
inishes the ShmPutImage, that we'd see an inconsistent screen state for a moment. So I think this wants an XSync after XShmPutImage (which dings windowed fps by ~50 but doesn't seem to bother fullscreen at all). With those two things fixed, the

[Mesa-dev] [PATCH] glx: Fix image size computation for EXT_texture_integer (v2)

2015-07-21 Thread Adam Jackson
Without this this extension basically can't work in indirect contexts, TexImage2D will compute the image size as 0 and we'll send no image data to the server. v2: Add EXT_texture_integer to the client extension list too (Ian) Signed-off-by: Adam Jackson --- src/glx/compsize.c

[Mesa-dev] [PATCH] r600/sb: Fix an &/&& mistake

2015-07-21 Thread Adam Jackson
'~' [-Wparentheses] if (!trans & fbs) It happens to be harmless; if fbs is ever non-zero, it will be VEC_210, which is 5, so (!trans & 5) == 1 and the branch works as expected. But logical AND is clearly what was meant. Signed-off-by: Adam Jackson --- src/gallium/drivers/

[Mesa-dev] llvmpipe broken on Skylake Pentium (LP_NATIVE_VECTOR_WIDTH=128)

2015-10-12 Thread Adam Jackson
I'm having some difficulty getting llvmpipe working on a Skylake Pentium, which has the charming property of not having AVX support at all (Skylake Cores have AVX2, and Xeons have AVX512, but Pentium seems to be the new way of spelling Celeron). Currently I'm trying this with llvm 3.6.2 and Mesa 1

Re: [Mesa-dev] llvmpipe broken on Skylake Pentium (LP_NATIVE_VECTOR_WIDTH=128)

2015-10-12 Thread Adam Jackson
On Mon, 2015-10-12 at 21:57 +0200, Roland Scheidegger wrote: > Note that the vector width doesn't really control if avx is used or not, > since that's a decision which llvm does on its own (we do set it > manually if we detect avx on our own, but llvm will use avx anyway even > if we don't if it t

Re: [Mesa-dev] llvmpipe broken on Skylake Pentium (LP_NATIVE_VECTOR_WIDTH=128)

2015-10-13 Thread Adam Jackson
On Mon, 2015-10-12 at 22:55 +0200, Roland Scheidegger wrote: > I don't know that looks like a generic string you're getting back. > x86-64 IIRC implies sse2 in llvm, but not the other sseX flags (and if > we detected sse41 we're going to use intrinsics for these, which then > may not be available

[Mesa-dev] [PATCH] i915: For the love all that is holy, stop saying "IGD"

2015-01-28 Thread Adam Jackson
a001 and a011 are pineview chips. Say so. Signed-off-by: Adam Jackson --- include/pci_ids/i915_pci_ids.h| 4 ++-- src/mesa/drivers/dri/i915/intel_chipset.h | 14 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/include/pci_ids/i915_pci_ids.h b/include

[Mesa-dev] X test suite regression due to gallivm change

2017-02-23 Thread Adam Jackson
Starting from: > commit 320d1191c61a0a82444605c12e5c4b2ee0b241eb > Author: Jose Fonseca > Date:   Mon Apr 4 00:05:33 2016 +0100 > > gallivm: Use llvm.fmuladd.*. > > Reviewed-by: Roland Scheidegger 'make check' in xserver no longer passes on Xephyr+glamor+llvmpipe. At least, not on

Re: [Mesa-dev] X test suite regression due to gallivm change

2017-02-23 Thread Adam Jackson
On Thu, 2017-02-23 at 21:59 +0100, Roland Scheidegger wrote: > So, what does the failing test do? Not much, curiously. There are five that fail and they're all fairly trivial, although the xts harness makes that hard to see. XClearArea/6 and XClearWindow/4 set the window background pixmap to Non

[Mesa-dev] [PATCH] glx: Fix __glXWireToEvent for BufferSwapComplete

2015-07-31 Thread Adam Jackson
: Adam Jackson --- src/glx/glxext.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glx/glxext.c b/src/glx/glxext.c index fdc24d4..dc87fb9 100644 --- a/src/glx/glxext.c +++ b/src/glx/glxext.c @@ -138,6 +138,9 @@ __glXWireToEvent(Display *dpy, XEvent *event, xEvent *wire) if (!glxDraw

Re: [Mesa-dev] [PATCH] glx: Fix __glXWireToEvent for BufferSwapComplete

2015-08-05 Thread Adam Jackson
On Tue, 2015-08-04 at 19:38 -0700, Eric Anholt wrote: > In the Pbuffer path, we get serial from awire. Why's this one > different? Because I copied it from the dri2 path not the pbuffer path. This idiom is more correct, _XSetLastRequestRead is how you notify xlib of the advance in serials so it

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

2016-09-13 Thread Adam Jackson
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 be missing (M) >  - thread - eglBindAPI (M) Not really missing, but tricky. _EGL_FUNC_START c

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

2016-09-13 Thread Adam Jackson
On Tue, 2016-09-13 at 17:17 +0100, Emil Velikov wrote: > > +  } else { > > + _eglDebugReportFull(EGL_BAD_ALLOC, __func__, __func__, > > +   EGL_DEBUG_MSG_CRITICAL_KHR, NULL, NULL); > > + return EGL_BAD_ALLOC; > > +  } > > Nit: Please use the same style as the "

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

2016-09-13 Thread Adam Jackson
From: Kyle Brenneman This decorates every EGL entrypoint with _EGL_FUNC_START, which records the function name and primary dispatch object label in the current thread state. It also adds debug report functions and calls them when appropriate. This would be useful enough for debugging on its own,

[Mesa-dev] [PATCH 14/14] egl: Implement EGL_KHR_debug (v2)

2016-09-13 Thread Adam Jackson
From: Kyle Brenneman Wire up the debug entrypoints to EGL dispatch, and add the extension string to the client extension list. v2: - Lots of style fixes - Fix missing EGLAPIENTRYs - Factor out valid attribute check - Lock display in eglLabelObjectKHR as needed, and use RETURN_EGL_* - Move "EGL_K

[Mesa-dev] [PATCH 08/14] egl: Factor out _eglCreateImageCommon (v2)

2016-09-13 Thread Adam Jackson
From: Kyle Brenneman v2: - Pass disp to RETURN_EGL_ERROR so we unlock the display --- src/egl/main/eglapi.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index a74e5e4..ba4826a 100644 --- a/src/egl/main/eglap

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

2016-09-13 Thread Adam Jackson
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 > hit I won't bother with respinning the patches. > > That is unless we want them for stab

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

2016-09-13 Thread Adam Jackson
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 Mesa's stable branch, so my opinion doesn't count here. - ajax _

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

2016-09-13 Thread Adam Jackson
On Tue, 2016-09-13 at 14:14 -0600, Kyle Brenneman wrote: > On 09/13/2016 11:57 AM, Adam Jackson wrote: > > @@ -37,7 +39,7 @@ > >    > >   /* This should be kept in sync with _eglInitThreadInfo() */ > >   #define _EGL_THREAD_INFO_INITIALIZER \ > > -   { EGL_S

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

2016-09-14 Thread Adam Jackson
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've forgotten things have been like that for a long time - > long before I jumped in. I wasn'

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

2016-09-14 Thread Adam Jackson
From: Kyle Brenneman This decorates every EGL entrypoint with _EGL_FUNC_START, which records the function name and primary dispatch object label in the current thread state. It also adds debug report functions and calls them when appropriate. This would be useful enough for debugging on its own,

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

2016-09-14 Thread Adam Jackson
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 leave the API out of the spec text shouldn't they ? I mean, sure, but this patch i

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

2016-09-14 Thread Adam Jackson
On Wed, 2016-09-14 at 14:29 +0100, Emil Velikov wrote: > It's surprising that you haven't heard about this, considering it's > been in use for more than three years. Guess you simply forgot ? Most of my own patches to Mesa have been so far from being "features" that I've never had to care. - aja

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

2016-09-14 Thread Adam Jackson
On Tue, 2016-09-13 at 17:30 +0100, Emil Velikov wrote: > Everything else (1-12 incl.) is > Reviewed-by: Emil Velikov Merged these, thanks. - ajax ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/m

[Mesa-dev] [PATCH 1/3] glx/glvnd: Don't modify the dummy slot in the dispatch table

2016-09-14 Thread Adam Jackson
Signed-off-by: Adam Jackson --- src/glx/glxglvnd.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/glx/glxglvnd.c b/src/glx/glxglvnd.c index 098304d..2fc9b00 100644 --- a/src/glx/glxglvnd.c +++ b/src/glx/glxglvnd.c @@ -50,6 +50,9 @@ static void __glXGLVNDSetDispatchIndex(const GLubyte

Re: [Mesa-dev] [PATCH] glvnd: Fix dynamic GLX entrypoint lookup

2016-09-14 Thread Adam Jackson
On Mon, 2016-09-05 at 11:23 +0100, Eric Engestrom wrote: > > +static int > > +compare(const void *l, const void *r) > > +{ > > +const char *s = *(const char **)r; > > Shouldn't we do the same with `l`? No. 'l' is the key we're looking for (the function name), r is the current element of the a

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

2016-09-14 Thread Adam Jackson
As this array was not actually sorted, FindGLXFunction's binary search would only sometimes work. Signed-off-by: Adam Jackson --- src/glx/g_glxglvnddispatchfuncs.c | 254 ++-- src/glx/g_glxglvnddispatchindices.h | 36 ++--- 2 files changed, 144 inser

[Mesa-dev] [PATCH 3/3] glx/glvnd: Use bsearch() in FindGLXFunction instead of open-coding it

2016-09-14 Thread Adam Jackson
Signed-off-by: Adam Jackson --- src/glx/glxglvnd.c | 30 ++ 1 file changed, 14 insertions(+), 16 deletions(-) diff --git a/src/glx/glxglvnd.c b/src/glx/glxglvnd.c index 2fc9b00..b6b4151 100644 --- a/src/glx/glxglvnd.c +++ b/src/glx/glxglvnd.c @@ -1,11 +1,11

[Mesa-dev] [PATCH 0/2] intel: Enable EGL_KHR_gl_texture_3D_image

2016-09-21 Thread Adam Jackson
This extension is a prerequisite for EGL 1.5, but the Intel drivers don't report support for it, and I'm not really sure why, the driver code certainly looks prepared for it. That said, I haven't tested either of these patches, and I'm not aware of any apps using the feature (certainly nothing in p

[Mesa-dev] [PATCH 2/2] i965: Enable EGL_KHR_gl_texture_3D_image

2016-09-21 Thread Adam Jackson
Signed-off-by: Adam Jackson --- src/mesa/drivers/dri/i965/intel_screen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_screen.c b/src/mesa/drivers/dri/i965/intel_screen.c index 82d4203..63b02530 100644 --- a/src/mesa/drivers/dri/i965/intel_screen.c +++ b

[Mesa-dev] [PATCH 1/2] i915: Enable EGL_KHR_gl_texture_3D_image

2016-09-21 Thread Adam Jackson
Signed-off-by: Adam Jackson --- src/mesa/drivers/dri/i915/intel_screen.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mesa/drivers/dri/i915/intel_screen.c b/src/mesa/drivers/dri/i915/intel_screen.c index 19f7a6a..a78e250 100644 --- a/src/mesa/drivers/dri/i915/intel_screen.c +++ b

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

2016-10-05 Thread Adam Jackson
On Fri, 2016-09-16 at 18:33 +0100, Emil Velikov wrote: > But regardless, this and v2 14/14 look a lot better and are > > Reviewed-by: Emil Velikov Merged, thanks. - ajax ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedeskto

[Mesa-dev] [PATCH] reviewers: Throw myself on the GLX grenade

2016-10-06 Thread Adam Jackson
Signed-off-by: Adam Jackson --- REVIEWERS | 4 1 file changed, 4 insertions(+) diff --git a/REVIEWERS b/REVIEWERS index f7574b3..f822421 100644 --- a/REVIEWERS +++ b/REVIEWERS @@ -104,3 +104,7 @@ F: src/egl/drivers/dri2/platform_wayland.c FREEDRENO R: Rob Clark F: src/gallium

Re: [Mesa-dev] [PATCH] dri2: Insert a synchronisation point for glXWaitX

2016-08-16 Thread Adam Jackson
l your X > > requests have been processed, so that any GL batchbuffer flushes happen > > after that. > > Quoting Adam Jackson: > > This is a bit incorrect. For direct contexts, DRI2's WaitX becomes > DRI2CopyRegion from real-front to fake-front. That _does_ generate a >

Re: [Mesa-dev] [PATCH] dri2: Insert a synchronisation point for glXWaitX

2016-08-17 Thread Adam Jackson
On Wed, 2016-08-17 at 08:17 -0700, Eric Anholt wrote:   > All I'm saying is that it's the thing that was intentionally used for > this purpose in DRI1 and early DRI2, and maybe if it works we shouldn't > just accidentally drop it in a refactor. I don't see how the patch in this thread does that. I

Re: [Mesa-dev] [PATCH] dri2: Insert a synchronisation point for glXWaitX

2016-08-17 Thread Adam Jackson
On Wed, 2016-08-17 at 17:50 +0100, Chris Wilson wrote: > On Wed, Aug 17, 2016 at 12:13:23PM -0400, Adam Jackson wrote: > > > > On Wed, 2016-08-17 at 08:17 -0700, Eric Anholt wrote: > >   > > > > > > All I'm saying is that it's the thing that was

Re: [Mesa-dev] [PATCH] glx/glvnd: list the strcmp arguments in correct order

2016-09-02 Thread Adam Jackson
On Thu, 2016-09-01 at 10:36 +0100, Emil Velikov wrote: > > From: Emil Velikov > > Currently, due to the inverse order, strcmp will produce negative result > when the needle is towards the start of the haystack. Thus on the next > iteration(s) we'll end up further towards the end and eventually fa

[Mesa-dev] [PATCH] glvnd: Fix dynamic GLX entrypoint lookup

2016-09-02 Thread Adam Jackson
The dynamic dispatch table needs to be sorted properly, the entrypoints shouldn't duplicate the 'glX' prefix, and please just use bsearch() instead of open-coding it. Signed-off-by: Adam Jackson --- src/glx/g_glxglvnddispatchfuncs.c | 254 ++

Re: [Mesa-dev] [PATCH 4/6] EGL: Call the EGL_KHR_debug callback on errors.

2016-09-06 Thread Adam Jackson
On Wed, 2016-07-06 at 10:33 -0600, Kyle Brenneman wrote: > @@ -292,6 +292,24 @@ _eglError(EGLint errCode, const char *msg) > return EGL_FALSE; >  } >   > +EGLBoolean > +_eglError(EGLint errCode, const char *msg) > +{ > +   if (errCode != EGL_SUCCESS) { > +  EGLint type; > +  if (errCod

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

2016-09-07 Thread Adam Jackson
no longer checks for a conflicting context. In addition, calling eglMakeCurrent with EGL_NO_CONTEXT will now release the current context regardless of the current API. v2: Rebased against master (Adam Jackson) Reviewed-by: Adam Jackson --- src/egl/main/eglapi.c | 42

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

2016-09-07 Thread Adam Jackson
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 then unbind context" p

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

2016-09-07 Thread Adam Jackson
On Wed, 2016-09-07 at 22:07 +0100, Emil Velikov wrote: > Was going to mention this but it slipped through. Can we get a proper > spec quote in the code ? I guess the logic through eglCreateContext (the only place where the API difference matters) is a little contorted, certainly took me more than

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

2016-09-07 Thread Adam Jackson
Signed-off-by: Adam Jackson --- src/egl/main/eglcontext.c | 10 ++ 1 file changed, 10 insertions(+) diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index ebc004d..057b60f 100644 --- a/src/egl/main/eglcontext.c +++ b/src/egl/main/eglcontext.c @@ -457,6 +457,16

[Mesa-dev] [PATCH 0/7] Implement EGL_KHR_debug (v2)

2016-09-08 Thread Adam Jackson
This rebases Kyle's series atop master (the change to treat GL and GLES identically created some merge conflicts), and ports a fix from glvnd's handling of DebugMessageControl. I'm working on piglits to cover this, and a very basic first test is on the list now. As glvnd's EGL interface essentiall

[Mesa-dev] [PATCH 1/7] EGL: Update eglext.h

2016-09-08 Thread Adam Jackson
From: Kyle Brenneman Updated eglext.h to revision 32074 from the Khronos repository. Added two #includes to egltypedefs.h. Both were in the previous version of eglext.h but not in the new one. Reviewed-by: Adam Jackson --- include/EGL/eglext.h | 36

[Mesa-dev] [PATCH 5/7] EGL: Record the debug object label in _EGLThreadInfo

2016-09-08 Thread Adam Jackson
command name and object label parameters from _eglDebugReport, and made it look them up from the current _EGLThreadInfo. Added a separate _eglDebugReportFull function to allow the caller to specify the command and label. Reviewed-by: Adam Jackson --- src/egl/main/eglapi.c | 183

[Mesa-dev] [PATCH 2/7] EGL: Implement eglLabelObjectKHR

2016-09-08 Thread Adam Jackson
From: Kyle Brenneman Added a label to the _EGLThreadInfo, _EGLDisplay, and EGLResource structs. Implemented the function eglLabelObjectKHR. Reviewed-by: Adam Jackson --- src/egl/main/eglapi.c | 63 +++ src/egl/main/eglcurrent.c | 9 +++ src

[Mesa-dev] [PATCH 3/7] EGL: Implement remaining functions from EGL_KHR_debug

2016-09-08 Thread Adam Jackson
is to replace existing calls to _eglError with _eglDebugReport. Reviewed-by: Adam Jackson --- src/egl/main/eglapi.c | 64 +++ src/egl/main/eglcurrent.c | 37 +-- src/egl/main/eglcurrent.h | 15 +++ src/egl/main

[Mesa-dev] [PATCH 4/7] EGL: Call the EGL_KHR_debug callback on errors

2016-09-08 Thread Adam Jackson
EGL_KHR_debug, since the callback will be missing object labels and messages in most cases. Later changes can update the _eglError calls to provide more info. Reviewed-by: Adam Jackson --- src/egl/main/eglapi.c | 142 -- src/egl/main/eglcurrent.c | 35

[Mesa-dev] [PATCH 6/7] EGL: Fix some command names for EGL_KHR_debug

2016-09-08 Thread Adam Jackson
the wrong function name to the EGL_KHR_debug callback. [ajax: Fixed up eglWaitClient] Reviewed-by: Adam Jackson --- src/egl/main/eglapi.c | 214 +- 1 file changed, 125 insertions(+), 89 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main

[Mesa-dev] [PATCH 7/7] egl: Fix DebugMessageControl(callback, NULL)

2016-09-08 Thread Adam Jackson
Treat a null attribute list as meaning "don't change attributes". This is semantically equivalent to a list consisting of just EGL_NONE. Signed-off-by: Adam Jackson --- src/egl/main/eglapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/main/eglapi.c

Re: [Mesa-dev] [PATCH 3/7] EGL: Implement remaining functions from EGL_KHR_debug

2016-09-08 Thread Adam Jackson
On Thu, 2016-09-08 at 11:57 -0600, Kyle Brenneman wrote: > This one has the a bug in it where it doesn't set the callback if  > (attrib_list == NULL), plus the more minor bug where it doesn't check  > for invalid attributes if (callback == NULL). The first one is the same  > bug you noticed in libg

[Mesa-dev] [PATCH 1/3] egl: QueryContext on a configless context returns zero

2016-09-09 Thread Adam Jackson
e KHR behaviour. Signed-off-by: Adam Jackson --- src/egl/main/eglcontext.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/egl/main/eglcontext.c b/src/egl/main/eglcontext.c index 58740c3..7eac79a 100644 --- a/src/egl/main/eglcontext.c +++ b/src/egl/main/eglcont

[Mesa-dev] [PATCH 0/3] Implement EGL_KHR_no_config_context

2016-09-09 Thread Adam Jackson
KHR_no_config_context is virtually identical to MESA_configless_context, where they differ is only where the Mesa spec is silent, and for the most part the code already did what the Khronos spec wants. Fix up the one corner case, and mark the Mesa extension as superseded. - ajax _

[Mesa-dev] [PATCH 2/3] egl: Rename MESA_configless_context bit to KHR_no_config_context

2016-09-09 Thread Adam Jackson
Keep the old name in the extension string, but refer to the KHR extension internally. Signed-off-by: Adam Jackson --- src/egl/drivers/dri2/egl_dri2.c | 2 +- src/egl/main/eglapi.c | 6 -- src/egl/main/eglcontext.c | 4 ++-- src/egl/main/egldisplay.h | 2 +- 4 files

[Mesa-dev] [PATCH 3/3] docs: Note MESA_configless_context as superseded

2016-09-09 Thread Adam Jackson
Signed-off-by: Adam Jackson --- docs/specs/MESA_configless_context.spec | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/specs/MESA_configless_context.spec b/docs/specs/MESA_configless_context.spec index f2fafb3..d7ba62d 100644 --- a/docs/specs

Re: [Mesa-dev] [PATCH 2/7] EGL: Implement eglLabelObjectKHR

2016-09-09 Thread Adam Jackson
On Fri, 2016-09-09 at 11:27 +0100, Emil Velikov wrote: > > On 8 September 2016 at 18:46, Adam Jackson wrote: > > From: Kyle Brenneman > > Added a label to the _EGLThreadInfo, _EGLDisplay, and EGLResource > structs. Implemented the function eglLabelObjectKHR. > > >

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

2016-09-12 Thread Adam Jackson
This gets us to basically the same end state as before, but I've rearranged the sequence of changes to be a little easier to review and not introduce broken intermediate states. 01 updates eglext.h to the very latest. 02 is a bugfix for leaking images and syncs at eglTerminate, pointed out in revi

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

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman This decorates every EGL entrypoint with _EGL_FUNC_START, which records the function name and primary dispatch object label in the current thread state. It also adds debug report functions and calls them when appropriate. This would be useful enough for debugging on its own,

[Mesa-dev] [PATCH 07/14] egl: Factor out _eglWaitClientCommon

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman --- src/egl/main/eglapi.c | 11 --- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index fac2d18..a74e5e4 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1081,8 +1081,8 @@ eglCopyBuffers(

[Mesa-dev] [PATCH 04/14] egl: Factor out _eglGetPlatformDisplayCommon

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman --- src/egl/main/eglapi.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index ba8305e..df355a5 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -295,9 +295,9 @@ eglGetDis

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

2016-09-12 Thread Adam Jackson
Signed-off-by: Adam Jackson --- src/egl/main/egldisplay.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/src/egl/main/egldisplay.c b/src/egl/main/egldisplay.c index bbc3063..3d4eb81 100644 --- a/src/egl/main/egldisplay.c +++ b/src/egl/main/egldisplay.c @@ -44,6 +44,8

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

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman --- src/egl/main/eglapi.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index 658d0d7..dc61d5f 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1384,11 +1384,10 @@ eglDestroy

[Mesa-dev] [PATCH 03/14] egl: Fix typo

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman --- src/egl/main/eglglobals.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/egl/main/eglglobals.c b/src/egl/main/eglglobals.c index 938d953..04bb5ba 100644 --- a/src/egl/main/eglglobals.c +++ b/src/egl/main/eglglobals.c @@ -50,7 +50,7 @@ struct _egl

[Mesa-dev] [PATCH 05/14] egl: Use _eglCreateWindowSurfaceCommon consistently

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman This moves the native window fixup to a helper function so we don't repeat ourselves. --- src/egl/main/eglapi.c | 28 ++-- 1 file changed, 18 insertions(+), 10 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index df355a5..dd2

[Mesa-dev] [PATCH 10/14] egl: Factor out _eglWaitSyncCommon

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman --- src/egl/main/eglapi.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index dc61d5f..c285c20 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1509,11 +1509,9 @@ eglCli

[Mesa-dev] [PATCH 11/14] egl: Factor out _eglGetSyncAttribCommon

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman --- src/egl/main/eglapi.c | 18 +- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index c285c20..0477ad9 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1570,11 +1570,9 @@ eglSig

[Mesa-dev] [PATCH 12/14] egl: Add storage for EGL_KHR_debug's state to EGL objects

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman --- src/egl/main/eglcurrent.c | 3 +-- src/egl/main/eglcurrent.h | 8 src/egl/main/egldisplay.h | 4 src/egl/main/eglglobals.c | 5 - src/egl/main/eglglobals.h | 10 ++ 5 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/egl/main

[Mesa-dev] [PATCH 06/14] egl: Use _eglCreatePixmapSurfaceCommon consistently

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman This moves the native pixmap fixup to a helper function so we don't repeat ourselves. --- src/egl/main/eglapi.c | 36 +--- 1 file changed, 21 insertions(+), 15 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index dd2b

[Mesa-dev] [PATCH 01/14] egl: Update eglext.h (v2)

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman Updated eglext.h to revision 33111 from the Khronos repository. v2: - Don't (re)move extension includes from eglext.h (Emil Velikov) - Bump to revision 33111 (Adam Jackson) Reviewed-by: Adam Jackson --- include/EGL/eglext.h

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

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman Wire up the debug entrypoints to EGL dispatch, and add the extension string to the client extension list. --- src/egl/main/eglapi.c | 140 ++ src/egl/main/eglglobals.c | 3 +- 2 files changed, 142 insertions(+), 1 deletion(-)

[Mesa-dev] [PATCH 08/14] egl: Factor out _eglCreateImageCommon

2016-09-12 Thread Adam Jackson
From: Kyle Brenneman --- src/egl/main/eglapi.c | 16 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/src/egl/main/eglapi.c b/src/egl/main/eglapi.c index a74e5e4..658d0d7 100644 --- a/src/egl/main/eglapi.c +++ b/src/egl/main/eglapi.c @@ -1309,11 +1309,10 @@ eglRele

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

2016-10-17 Thread Adam Jackson
On Fri, 2016-10-14 at 10:48 -0700, Chad Versace wrote: > 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 whethe

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

2016-10-19 Thread Adam Jackson
On Fri, 2016-09-16 at 19:07 +0100, Emil Velikov wrote: > On 14 September 2016 at 19:06, Adam Jackson wrote: > > As this array was not actually sorted, FindGLXFunction's binary search > > would only sometimes work. > > > > This commit message is a bit

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

2016-10-31 Thread Adam Jackson
On Fri, 2016-10-28 at 17:11 +0100, Emil Velikov wrote: > > On 19 October 2016 at 18:39, Adam Jackson wrote: > > The "implementation" in Mesa would be __glXBindTexImageEXT. One could > > argue that dispatch_* could be smart enough to recognize their own > > dispa

Re: [Mesa-dev] [PATCH 2/3] dri3: Flush and wait for X rendering upon glXWaitX()

2016-11-01 Thread Adam Jackson
On Sat, 2016-10-22 at 11:00 +0100, Chris Wilson wrote: > @@ -113,6 +113,11 @@ loader_dri3_drawable_fini(struct loader_dri3_drawable > *draw) >   dri3_free_render_buffer(draw, draw->buffers[i]); > } >   > +   if (draw->sync_fence) { > +  xcb_sync_destroy_fence(draw->conn, draw->syn

Re: [Mesa-dev] [PATCH 1/3] dri2: Serialize with all X rendering on glXWaitX()

2016-11-01 Thread Adam Jackson
i/i965/intel_screen.c|  5 ++-- >  src/mesa/drivers/dri/i965/intel_tex_image.c |  5 ++-- >  8 files changed, 71 insertions(+), 38 deletions(-) Hm, adding myself to REVIEWERS for src/glx/ doesn't seem to have done much. Also I'd still really like to see a server-side call chain for WaitX/Wa

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

2016-11-01 Thread Adam Jackson
On Mon, 2016-10-31 at 20:28 +, Emil Velikov wrote: > > > > One user, xdriinfo(1), which is admittedly pretty useless. But the > > glvnd code in mesa definitely implements dispatch for it (libglvnd > > itself does not, but is not expected to). > > libglvnd doesn't dispatch to it one cannot rea

Re: [Mesa-dev] [PATCH 2/3] dri3: Flush and wait for X rendering upon glXWaitX()

2016-11-02 Thread Adam Jackson
On Tue, 2016-11-01 at 20:48 +, Chris Wilson wrote: > The fence_fd is closed by xcb_dri3_fence_from_fd() as > xcb_send_request_with_fds() always calls close(). > -Chris D'oh! You are correct. Objection withdrawn. - ajax ___ mesa-dev mailing list mes

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

2016-11-03 Thread Adam Jackson
On Thu, 2016-11-03 at 16:21 +, Emil Velikov wrote: > I'm not a fan of keeping legacy stuff with only one (pretty useless) > user. Not to mention that the glXGetDriverConfig plumbing is missing > [in here]. But as you feel so strongly in keeping it ... Maybe I wasn't clear. I don't care at all

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

2016-11-03 Thread Adam Jackson
On Thu, 2016-11-03 at 17:28 +, Emil Velikov wrote: > Your earlier reply did not have ack/nack on the topic of dropping it, > thus the above reads as a justification why one would wants to keep > it. I thought "useless" expressed my opinion of the value of the feature quite well. But I didn't

Re: [Mesa-dev] [PATCH 8/8] egldevice: implement eglQueryDisplayAttribEXT

2016-07-21 Thread Adam Jackson
On Fri, 2015-07-24 at 16:20 +0200, Jonny Lamb wrote: > This adds a new vfunc to _EGLDriver, QueryDeviceName, which should > return a const string of the device name (usually in the format > '/dev/dri/cardN'). > > The EGLDevice could perhaps be cached in the EGLDisplay but there > usually aren't lo

Re: [Mesa-dev] [PATCH 8/8] egldevice: implement eglQueryDisplayAttribEXT

2016-07-21 Thread Adam Jackson
On Thu, 2016-07-21 at 16:18 +0100, Daniel Stone wrote: > On 21 July 2016 at 15:11, Emil Velikov wrote: > > I'd suggest opting for the drmDevice libdrm API. It can provide a list > > of devices with all the nodes and other misc info. Thus we could use > > the render/card/other node as any point as

[Mesa-dev] [PATCH 1/3] glx: Hide xGLXMakeCurrentReply inside SendMakeCurrentRequest

2013-10-04 Thread Adam Jackson
Signed-off-by: Adam Jackson --- src/glx/indirect_glx.c | 16 +--- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/glx/indirect_glx.c b/src/glx/indirect_glx.c index f8944a7..d0457fe 100644 --- a/src/glx/indirect_glx.c +++ b/src/glx/indirect_glx.c @@ -59,8 +59,9

[Mesa-dev] [PATCH 3/3] glx: Generate fewer errors in MakeContextCurrent

2013-10-04 Thread Adam Jackson
not fix piglit/glx-create-context-current-no-framebuffer, but is a prerequisite for fixing it. Signed-off-by: Adam Jackson --- src/glx/glxcurrent.c | 10 -- 1 file changed, 10 deletions(-) diff --git a/src/glx/glxcurrent.c b/src/glx/glxcurrent.c index 3d8893c..a6884cf 100644 --- a

[Mesa-dev] [PATCH 2/3] glx: Propagate failures from SendMakeCurrentRequest where possible

2013-10-04 Thread Adam Jackson
Signed-off-by: Adam Jackson --- src/glx/indirect_glx.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/glx/indirect_glx.c b/src/glx/indirect_glx.c index d0457fe..d27b019 100644 --- a/src/glx/indirect_glx.c +++ b/src/glx/indirect_glx.c @@ -132,6 +132,7

[Mesa-dev] [PATCH] glx: Fix return value from indirect_bind_context

2013-10-25 Thread Adam Jackson
_XReply returns 1 on success, but indirect_bind_context returns 0 on success. Signed-off-by: Adam Jackson --- src/glx/indirect_glx.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/glx/indirect_glx.c b/src/glx/indirect_glx.c index d27b019..28b8cd0 100644 --- a

Re: [Mesa-dev] [PATCH] glx: Fix return value from indirect_bind_context

2013-10-25 Thread Adam Jackson
On Fri, 2013-10-25 at 12:59 -0700, Ian Romanick wrote: > Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=70486 > Reviewed-and-tested-by: Ian Romanick Pushed, thanks and sorry. - ajax ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http

Re: [Mesa-dev] [PATCH] glx: Verify that drawable creation on the client side actually worked

2013-02-27 Thread Adam Jackson
On Wed, 2013-02-27 at 14:02 +, Jon TURNEY wrote: > Attached is a patch to fix. Pushed, thanks. - ajax ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/mesa-dev

[Mesa-dev] [PATCH] PowerPC: Altivec IROUND operation

2013-04-01 Thread Adam Jackson
From: Adhemerval Zanella This adds another rounding mode to the enum, which happens otherwise to match SSE4.1's rounding modes. This should be safe as long as the IROUND case never hits the SSE4.1 path. Reviewed-by: Adam Jackson Signed-off-by: Adhemerval Zanella --- src/gallium/auxi

[Mesa-dev] [PATCH] llvmpipe: add print for int128

2013-04-01 Thread Adam Jackson
From: Adhemerval Zanella Reviewed-by: Adam Jackson Signed-off-by: Adhemerval Zanella --- src/gallium/auxiliary/gallivm/lp_bld_printf.c | 56 +++ 1 file changed, 39 insertions(+), 17 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_printf.c b/src/gallium

Re: [Mesa-dev] [PATCH] mesa: don't memcmp() off the end of a cache key.

2013-04-01 Thread Adam Jackson
On Mon, 2013-04-01 at 13:04 +1300, Chris Forbes wrote: > @@ -38,6 +38,7 @@ struct cache_item > { > GLuint hash; > void *key; > + GLuint keysize; > struct gl_program *program; > struct cache_item *next; > }; Since GLuint is 32 bits, this creates another hole in the struct on LP

[Mesa-dev] [PATCH] llvmpipe: Work without sse2 if llvm is new enough

2013-04-04 Thread Adam Jackson
At least on llvm 3.2 this appears to work fine. Tested on an Athlon XP 2600+, which has sse and 3dnow but not sse2. Signed-off-by: Adam Jackson --- src/gallium/drivers/llvmpipe/lp_screen.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/gallium/drivers/llvmpipe

Re: [Mesa-dev] [PATCH 0/2] Turning swrast into DRI2 drivers

2014-04-15 Thread Adam Jackson
On Sat, 2014-04-12 at 02:25 +0200, Giovanni Campagna wrote: > Hi everyone, > > Some time ago I sent patches to enable the swrast driver on > GBM/DRM, and I did them in the dumbest way possible (that is, > having GBM implement the dri-swrast interface), to make sure > it would work without kernel s

[Mesa-dev] [PATCH] radeonsi: Don't use anonymous struct trick in atom tracking

2014-04-22 Thread Adam Jackson
I'm somewhat impressed that current gccs will let you do this, but sufficiently old ones (including 4.4.7 in RHEL6) won't. Signed-off-by: Adam Jackson --- src/gallium/drivers/radeonsi/si_descriptors.c | 6 +++--- src/gallium/drivers/radeonsi/si_hw_context.c | 2 +- src/gallium/driver

[Mesa-dev] [PATCH] glx: Don't uselessly dlopen libGL within libGL

2014-05-29 Thread Adam Jackson
This is entirely pointless. The DRI driver does not need any symbols from libGL, even if it did libGL would already be available to resolve them because that's how dlopen works. Signed-off-by: Adam Jackson --- src/glx/dri_common.c | 8 +--- 1 file changed, 1 insertion(+), 7 dele

Re: [Mesa-dev] [PATCH] glx: Don't uselessly dlopen libGL within libGL

2014-05-30 Thread Adam Jackson
On Thu, 2014-05-29 at 15:10 -0700, Ian Romanick wrote: > That code was originally added by: > > commit 061a3fe34051327fba418cc99599ecff0016ee15 > Author: Michel Dänzer > Date: Mon Aug 14 15:53:37 2006 + > > Bug #7169: Attempt to make libGL symbols visible to drivers. > > Some

Re: [Mesa-dev] [PATCH v2 0/3] Software rasterizer in the DRM EGL platform

2014-06-02 Thread Adam Jackson
On Thu, 2014-05-15 at 01:58 +0100, Emil Velikov wrote: > On 05/05/14 17:07, Giovanni Campagna wrote: > > This is my second attempt to bring swrast to the DRM EGL platform. > > It includes both the legacy loader, which will work with any > > swrast driver, and the new gallium winsys which works with

[Mesa-dev] [PATCH] linux: Don't emit a .note.ABI-tag section anymore (#26663)

2013-04-23 Thread Adam Jackson
We don't support pre-2.6 kernels anyway - the install docs say 2.6.28 for DRI - and apparently this confuses ld.so's sorting when multiple libGLs are installed. Just remove it. Signed-off-by: Adam Jackson --- src/mapi/entry_x86-64_tls.h | 13 - src/mapi/entry

[Mesa-dev] [PATCH] gallivm: Fix altivec intrinsics for 8xi16 add/sub

2013-04-26 Thread Adam Jackson
Signed-off-by: Adam Jackson --- src/gallium/auxiliary/gallivm/lp_bld_arit.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c index ec05026..524a8e7 100644 --- a/src/gallium/auxiliary

  1   2   3   4   5   >