What's the right way to call xcb_connect_to_display_with_auth_info() given a Xauthority file?

2014-10-17 Thread Laércio de Sousa
When I try to establish a XCB connection to a given display stored in a string e.g. dpy, I know I can do it in two different ways: 1. Simply call xcb_connect(dpy, NULL), or 2. Set environment variable DISPLAY to the value of dpy and call xcb_connect(NULL, NULL). However, if my X server

Re: [PATCH 1/2] Allocate enough room for both reset flags attributes

2014-10-17 Thread Adam Jackson
On Thu, 2014-10-09 at 05:42 -0700, Alan Coopersmith wrote: ctx_attribs had room for 3 pairs of attributes, but if both flags reset attributes were being returned it was storing 4 pairs in the array. Found by Coverity #53442: Out-of-bounds write This could cause an immediate crash or

Re: [PATCH 1/4] dri2: Import a copy of Mesa's PCI ID - driver name mappings.

2014-10-17 Thread Adam Jackson
On Fri, 2014-10-10 at 11:09 +0200, Eric Anholt wrote: +CHIPSET(0xA011, IGD_GM, Intel(R) IGD) +CHIPSET(0xA001, IGD_G,Intel(R) IGD) Can we not? Pineview, right? Or Atom D4xx/D5xx/N4xx/N5xx, or whatever, but IGD is worse than useless. +CHIPSET(0x2E02, g4x, Intel(R) Integrated

Re: displaying an image on a window

2014-10-17 Thread Adam Jackson
On Thu, 2014-10-16 at 03:56 -0400, Philip Rushik wrote: Upon further investigation, I see that the server does actually respond with an error message. Specifically a MATCH error, however, it claims that the offending ID is the GC, not the window. I create the GC with the root window as

Re: [PATCH] Xext/shm: Detach SHM segment after Pixmap is released

2014-10-17 Thread Adam Jackson
On Thu, 2014-10-16 at 16:22 +0100, Chris Wilson wrote: On Thu, Oct 16, 2014 at 02:09:08PM +0100, Chris Wilson wrote: The GPU may still have a reference to the SHM segment which would only be finally released when the Pixmap is destroy. So we can only detach the SHM segment (and thereby

Re: What's the right way to call xcb_connect_to_display_with_auth_info() given a Xauthority file?

2014-10-17 Thread Uli Schlachter
Hi, Am 17.10.2014 um 14:55 schrieb Laércio de Sousa: [...] I would like to establish this connection without having to set environment variable XAUTHORITY. I know there's a funcion in XCB API called xcb_connect_to_display_with_auth_info() which receives a xcb_auth_info_t struct, but I have

Re: [PATCH 1/4] dri2: Import a copy of Mesa's PCI ID - driver name mappings.

2014-10-17 Thread Eric Anholt
Adam Jackson a...@nwnk.net writes: On Fri, 2014-10-10 at 11:09 +0200, Eric Anholt wrote: +CHIPSET(0xA011, IGD_GM, Intel(R) IGD) +CHIPSET(0xA001, IGD_G,Intel(R) IGD) Can we not? Pineview, right? Or Atom D4xx/D5xx/N4xx/N5xx, or whatever, but IGD is worse than useless.

Re: [PATCH 1/4] dri2: Import a copy of Mesa's PCI ID - driver name mappings.

2014-10-17 Thread Alex Deucher
On Fri, Oct 17, 2014 at 12:08 PM, Eric Anholt e...@anholt.net wrote: Adam Jackson a...@nwnk.net writes: On Fri, 2014-10-10 at 11:09 +0200, Eric Anholt wrote: +CHIPSET(0xA011, IGD_GM, Intel(R) IGD) +CHIPSET(0xA001, IGD_G,Intel(R) IGD) Can we not? Pineview, right? Or Atom

Re: What's the right way to call xcb_connect_to_display_with_auth_info() given a Xauthority file?

2014-10-17 Thread Laércio de Sousa
Hmm... I've got it! Based on your feedback, I've written a small patch for xcb_{util,auth}.c introducing a new function xcb_connect_with_auth_file(). I'll submit it to Xcb mailing list. Thank you very much! 2014-10-17 11:31 GMT-03:00 Uli Schlachter psyc...@znc.in: Hi, Am 17.10.2014 um 14:55

Translating XkbApplyMappingChange() et al. to xcb-xkb

2014-10-17 Thread Laércio de Sousa
Hi there! I'm currently working on a full XCB backend for xf86-video-nested driver. I'm able to translate all Xlib-related code in file xlibclient.c to XCB, except some Xkb related parts which force me to maintain a minimal XCB-Xlib mix. I would like to translate some Xkb functions used in

Re: Translating XkbApplyMappingChange() et al. to xcb-xkb

2014-10-17 Thread Ran Benita
On Fri, Oct 17, 2014 at 03:39:17PM -0300, Laércio de Sousa wrote: Hi there! I'm currently working on a full XCB backend for xf86-video-nested driver. I'm able to translate all Xlib-related code in file xlibclient.c to XCB, except some Xkb related parts which force me to maintain a minimal

Re: displaying an image on a window

2014-10-17 Thread Philip Rushik
On Oct 17, 2014 10:21 AM, Adam Jackson a...@nwnk.net wrote: On Thu, 2014-10-16 at 03:56 -0400, Philip Rushik wrote: Upon further investigation, I see that the server does actually respond with an error message. Specifically a MATCH error, however, it claims that the offending ID is the

Re: vesa and 2560x1440

2014-10-17 Thread basteon
hello, I made dmesg output from ssh connected from another host. here what modprobe -a radeon tells: [ 453.397377] [drm] Initialized drm 1.1.0 20060810 [ 453.493254] [drm] radeon defaulting to kernel modesetting. [ 453.493260] [drm] radeon kernel modesetting enabled. [ 453.493330] radeon