xserver-multidpi/hw/dmx/glxProxy
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
..
compsize.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
compsize.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
g_disptab.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
g_disptab.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
g_renderswap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
global.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxcmds.c glxproxy: Don't track GLCLientm{aj,in}orVersion 2013-09-11 14:37:31 -04:00
glxcmds.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxcmdsswap.c Fix formatting of address operators 2012-12-05 18:09:48 -06:00
glxcontext.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxdrawable.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxerror.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxext.c glxproxy: Don't track GLCLientm{aj,in}orVersion 2013-09-11 14:37:31 -04:00
glxext.h Move extension initialisation prototypes into extinit.h 2012-07-09 23:06:41 -07:00
glxfbconfig.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxfbconfig.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxscreens.c glxproxy: Use _XEatDataWords (from Xlib 1.6) instead of _XEatData 2013-07-17 18:10:41 -07:00
glxscreens.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxserver.h glxproxy: Don't track GLCLientm{aj,in}orVersion 2013-09-11 14:37:31 -04:00
glxsingle.c DMX glxproxy: Don't allocate & copy data just to free it unused 2013-10-14 17:56:44 -07:00
glxsingle.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxswap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxswap.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxutil.h dmx/glx: Remove unused __glXNop 2013-09-11 14:37:31 -04:00
glxvendor.c DMX glxproxy: Don't allocate & copy data just to free it unused 2013-10-14 17:56:44 -07:00
glxvendor.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxvisuals.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
glxvisuals.h Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
Makefile.am dmx/glx: Remove unused __glXNop 2013-09-11 14:37:31 -04:00
render2swap.c Introduce a consistent coding style 2012-03-21 13:54:42 -07:00
renderpixswap.c Fix formatting of address operators 2012-12-05 18:09:48 -06:00
unpack.h Remove unneccesary casts from WriteToClient calls 2012-07-09 19:12:56 -07:00