[PATCH:xf86-video-vmware] Add 2560x1440 to supported resolutions.

2015-01-19 Thread Thomas Klausner
Native resolution on iMac 27. Reported missing by Benjamin Lorenz in http://gnats.netbsd.org/49094 Signed-off-by: Thomas Klausner w...@netbsd.org --- src/svga_modes.h | 1 + 1 file changed, 1 insertion(+) diff --git a/src/svga_modes.h b/src/svga_modes.h index 97d869e..c3aa1a3 100644 ---

Re: [xf86-video-ati] dri2: Enable BufferAge support

2015-01-19 Thread Michel Dänzer
On 19.01.2015 20:00, Chris Wilson wrote: For BufferAge support, we just have to guarrantee that we were not using the DRI2Buffer-flags field for anything else (i.e. it is always 0) and then to make sure that we exchange the flags field after buffer exchanges. radeon does not support

Re: [PATCH xserver V3] use xcb struct in render

2015-01-19 Thread Christian Linhart
Hi Jaya, Thank you for this patch revision. The code changes look good in this patch. There's just a tiny problem: It contains a hunk which adds a whitespace after a C-comment. I have added a comment below at the position where this happens. Maybe that can be fixed when merging? Otherwise

Re: [xorg 3/3] dri2: Reuse unused flags in GetBuffers protocol to pass last SBC

2015-01-19 Thread Chris Wilson
On Mon, Jan 19, 2015 at 11:00:40AM +, Chris Wilson wrote: @@ -1104,6 +1107,8 @@ DRI2SwapBuffers(ClientPtr client, DrawablePtr pDraw, CARD64 target_msc, * it as early as possible, just to be sure. */ *swap_target = pPriv-swap_count + pPriv-swapsPending + 1; +if

[PATCH v2] dri2: Reuse unused flags in GetBuffers protocol to pass last SBC

2015-01-19 Thread Chris Wilson
Allow mesa/dri2 to implement GLX_EXT_buffer_age by reporting the sbc of when the current back buffer was defined. As this may require ddx support, only set the value if enabled by the ddx and report the new semantics via a DRI2GetParam request. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk

[PATCH] Respect seat assignments when assigning drm devices to server

2015-01-19 Thread Jonathan Dieter
Currently xorg ignores the seat assignments for drm devices because the devices are initialized earlier in the code. Depending on race conditions, the first X server will get more than one of the drm devices, which breaks multiseat systems. This patch fixes that by rejecting drm devices that

[xorg 3/3] dri2: Reuse unused flags in GetBuffers protocol to pass last SBC

2015-01-19 Thread Chris Wilson
Allow mesa/dri2 to implement GLX_EXT_buffer_age by reporting the sbc of when the current back buffer was defined. As this may require ddx support, only set the value if enabled by the ddx and report the new semantics via a DRI2GetParam request. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk

Implement GLX_EXT_buffer_age for DRI2

2015-01-19 Thread Chris Wilson
In order to suport GLX_EXT_buffer_age in DRI2, we need to pass back the last swap buffer count that the back buffer was defined for. For simplicity, we can reuse an existing field in the DRI2GetBuffers reply that is not used by current drivers, the flags. Since we change the interpretation of this

[xorg 1/3] dri2: Allow GetBuffers to match any format

2015-01-19 Thread Chris Wilson
Since the introduction of DRI2GetBuffersWithFormat, the old DRI2GetBuffers interface would always recreate all buffers all the time as it was no longer agnostic to the format value being set by the DDXes. This causes an issue with clients intermixing the two requests, rendering any sharing or

[xf86-video-nouveau] dri2: Enable BufferAge support

2015-01-19 Thread Chris Wilson
For enable BufferAge support, we just have to be not using the DRI2Buffer-flags field for any purpose (i.e. it is always expected to be 0, as it is now) and to be sure to swap the flags field whenever we exchange buffers. As nouveau does not exactly support TripleBuffer, we don't have to worry

[dri2proto] Declare DRI2ParamXHasBufferAge

2015-01-19 Thread Chris Wilson
In order for X/DDX to reuse a driver specific field of the DRI2GetBuffers reply, we need to declare the change in semantics. To indicate that the flags field now continues the last swap buffers count instead, we introduce the has-buffer-age parameter. Signed-off-by: Chris Wilson

[mesa 9/9] glx/dri2: Implement getBufferAge

2015-01-19 Thread Chris Wilson
Within the DRI2GetBuffers return packet there is a 4-byte field that is currently unused by any driver, i.e. flags. With the co-operation of a suitably modified X server, we can pass the last SBC on which the buffer was defined (i.e. the last SwapBuffers for which it was used) and 0 if it is fresh

[xorg 2/3] dri2: Pass swap-interval=0 ScheduleSwap requests to the ddx

2015-01-19 Thread Chris Wilson
Allow the DDXes to opt-in and handle swap-interval=0 requests for themselves, for example by using asynchronous pageflips, rather than forcing a blit. This has the important side-effect of also disambiguating CopyRegion calls to always be client requests. References:

[mesa 7/9] glx/dri2: Add DRI2GetParam()

2015-01-19 Thread Chris Wilson
Available since the inclusion of dri2proto 1.4 is a DRI2 request to query and set certain parameters about the X/DDX configuration. This implements the getter request. Signed-off-by: Chris Wilson ch...@chris-wilson.co.uk --- src/glx/dri2.c | 29 + src/glx/dri2.h | 4

[mesa 8/9] glx/dri2: Move the wait after SwapBuffers into the next GetBuffers

2015-01-19 Thread Chris Wilson
As the SBC from the reply from SwapBuffers is not used immediately and can be easily determined by counting the new of SwapBuffers requests made by the client, we can defer the synchronisation point to the pending GetBuffers round trip. (We force the invalidation event in order to require the

[xf86-video-ati] dri2: Enable BufferAge support

2015-01-19 Thread Chris Wilson
For BufferAge support, we just have to guarrantee that we were not using the DRI2Buffer-flags field for anything else (i.e. it is always 0) and then to make sure that we exchange the flags field after buffer exchanges. radeon does not support TripleBuffering so we do not have to worry about

[PATCH:libXt 1/5] If CFLAGS_FOR_BUILD is not set, include CWARNFLAGS in default value

2015-01-19 Thread Alan Coopersmith
Help catch errors like missing prototypes in makestrs sooner. Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- configure.ac |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 1f95a5c..34e6aab 100644 --- a/configure.ac +++

[PATCH:libXt 4/5] makestrs: Replace strcpy()+strcat() calls with snprintf() calls

2015-01-19 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- util/makestrs.c |7 ++- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/util/makestrs.c b/util/makestrs.c index 7853f87..f872ec8 100644 --- a/util/makestrs.c +++ b/util/makestrs.c @@ -102,9 +102,7 @@ static FILE

[PATCH:libXt 3/5] makestrs: Replace malloc()+strcpy() calls with strdup() calls

2015-01-19 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- util/makestrs.c | 24 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/util/makestrs.c b/util/makestrs.c index 2c4dcc8..7853f87 100644 --- a/util/makestrs.c +++ b/util/makestrs.c @@ -498,9

[PATCH:libXt 5/5] makestrs: Use asprintf() if available

2015-01-19 Thread Alan Coopersmith
Signed-off-by: Alan Coopersmith alan.coopersm...@oracle.com --- configure.ac|5 - util/makestrs.c | 17 + 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 34e6aab..3633ec6 100644 --- a/configure.ac +++ b/configure.ac @@

[PATCH:libXt 2/5] makestrs: use strchr() instead of index()

2015-01-19 Thread Alan Coopersmith
Besides being supported by more standards, strchr() has the important characteristic of having a prototype included in string.h on Solaris so that 64-bit compiles know it returns a pointer, not an integer. (On Solaris, index() is only found in strings.h, for SunOS compatibility.) Without this

[PATCH] dix: Fix hang in ConfineToShape

2015-01-19 Thread Peter Harris
If the initial point is more than one pixel left, right, or below the bounding box of the region, ConfineToShape will enter an infinite loop. Avoid the infinite loop by resetting the position to the edge of the bounding box if the initial point is outside the bounding box. Signed-off-by: Peter

[PATCH] glamor: GL_TEXTURE_MAX_LEVEL is not available on GLES2

2015-01-19 Thread Maarten Lankhorst
Remove the calls to GL_TEXTURE_MAX_LEVEL. Setting the filtering is a sufficient hint to the driver about texture mipmap allocation. Signed-off-by: Maarten Lankhorst maarten.lankho...@ubuntu.com --- glamor/glamor_fbo.c| 1 - glamor/glamor_font.c | 1 - glamor/glamor_pixmap.c | 1 - 3 files

[PATCH] glamor: do not check for gl errors in glamor_build_program

2015-01-19 Thread Maarten Lankhorst
According to Eric Anholt the check for glGetError is not needed here. Because a opengl error might be set before this function is called keeping the check could result in glamor_build_program returning failure when building the shader succeeded. Signed-off-by: Maarten Lankhorst

[PATCH] glamor: workaround a libepoxy bug in glObjectLabel

2015-01-19 Thread Maarten Lankhorst
libepoxy doesn't handle this case well, and tries to look for the glObjectLabel symbol in GLES2. As a result, using glObjectLabelKHR with opengl, or glObjectLabel with GLES will crash. Signed-off-by: Maarten Lankhorst maarten.lankho...@ubuntu.com --- diff --git a/glamor/glamor_core.c

[PATCH] glamor: only use (un)pack_subimage when available

2015-01-19 Thread Maarten Lankhorst
Check for GL_EXT_unpack_subimage and GL_NV_pack_subimage to check if GL_(UN)PACK_ROW_LENGTH is available. Set the offsets manually to prevent calls to GL_(UN)PACK_SKIP_*. Check support for GL_NV_pack_subimage as suggested by Matt Turner. Signed-off-by: Maarten Lankhorst