mesa/src
Ian Romanick 025f03f3b7 mesa/swrast: Move memory allocation outside the blit loop
Assume the maximum pixel size (16 bytes per pixel).  In addition to
moving redundant malloc and free calls outside the loop, this fixes a
potential resource leak when a surface is mapped and the malloc fails.
This also makes blit_nearest look a bit more like blit_linear.

v2: Use MAX_PIXEL_BYTES instead of 16.  Suggested by Ken.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
2013-04-16 10:18:14 -07:00
..
egl egl/dri2: NULL check value returned by dri2_create_surface 2013-04-12 16:24:48 -07:00
gallium r600g: Workaround for a harware bug with nested loops on Cayman 2013-04-16 18:02:11 +04:00
gbm gbm: Remember to init format on gbm_dri_bo_create. 2013-02-07 20:00:52 -05:00
getopt
glsl glsl: Fix hypothetical NULL dereference related to process_array_type 2013-04-12 16:24:44 -07:00
glx build: Rename sources.mak -> Makefile.sources 2013-04-15 12:04:25 -07:00
gtest gtest: Build it only for 'make check'. 2013-01-13 12:38:44 +01:00
mapi build: Get rid of CORE_DIRS 2013-04-15 12:04:25 -07:00
mesa mesa/swrast: Move memory allocation outside the blit loop 2013-04-16 10:18:14 -07:00
Makefile.am build: Remove GALLIUM_DIRS 2013-04-15 12:04:26 -07:00
SConscript Remove libGLU 2012-08-31 10:58:15 -07:00