xserver-multidpi/hw/dmx
Alan Coopersmith 2704bdb24a DMX glxproxy: Don't allocate & copy data just to free it unused
Two functions in the DMX glxproxy code loop over all the backend
screens, starting at the highest numbered and counting down to
the lowest.

Previously, for each screen, the code would allocate a buffer
large enough to read the reply from the backend, copy that reply
into the buffer, and then if it wasn't the final screen, free it.
Only the buffer from the final screen is used, to pass on to the
client in the reply.

This modifies it to just immediately discard the responses from
the screens as we loop through it, only doing the allocate & copy
work for the one buffer we pass back to the client.

Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Alex Deucher <aleander.deucher@amd.com>
2013-10-14 17:56:44 -07:00
..
config dmxVDLRead: if we opened a file, close it instead of leaking it 2013-04-24 14:22:36 -07:00
doc dix: Remove refs to mi backing store from docs 2012-09-23 10:31:39 -07:00
doxygen dmx: modernize doxygen generation. 2011-05-13 14:08:07 -07:00
examples Fix formatting of address operators 2012-12-05 18:09:48 -06:00
glxProxy DMX glxproxy: Don't allocate & copy data just to free it unused 2013-10-14 17:56:44 -07:00
input Merge remote-tracking branch 'whot/for-keith' 2013-10-04 13:54:55 -07:00
man dmx: Remove ShadowFB support 2013-09-10 13:28:23 -04:00
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
dmx_glxvisuals.c Xdmx: integer overflow in GetGLXFBConfigs() 2013-07-17 18:10:40 -07:00
dmx_glxvisuals.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmx-config.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmx.c Move extension initialisation prototypes into extinit.h 2012-07-09 23:06:41 -07:00
dmx.h dmx: Remove ShadowFB support 2013-09-10 13:28:23 -04:00
dmxcb.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxcb.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxclient.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxcmap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxcmap.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxcursor.c mipointer: Remove EnqueueEvent from miPointerScreenFuncRec 2013-09-10 13:28:23 -04:00
dmxcursor.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxdpms.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxdpms.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxextension.c api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
dmxextension.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxfont.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxfont.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxgc.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxgc.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxgcops.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxgcops.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxinit.c dmx: Remove ShadowFB support 2013-09-10 13:28:23 -04:00
dmxinit.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxinput.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxinput.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxlog.c dmx: Annotate dmxlog.c with _X_ATTRIBUTE_PRINTF and _X_NORETURN 2012-05-01 11:36:35 +10:00
dmxlog.h dmx: Annotate dmxlog.c with _X_ATTRIBUTE_PRINTF and _X_NORETURN 2012-05-01 11:36:35 +10:00
dmxpict.c dmx: Remove ShadowFB support 2013-09-10 13:28:23 -04:00
dmxpict.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxpixmap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxpixmap.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxprop.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxprop.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxscrinit.c dmx: Remove ShadowFB support 2013-09-10 13:28:23 -04:00
dmxscrinit.h api: rework the X server driver API to avoid global arrays. 2012-06-05 13:22:18 +01:00
dmxstat.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxstat.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxsync.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxsync.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxvisual.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxvisual.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
dmxwindow.c Fix formatting of address operators 2012-12-05 18:09:48 -06:00
dmxwindow.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Makefile.am dmx: Remove ShadowFB support 2013-09-10 13:28:23 -04:00