summaryrefslogtreecommitdiffstats
path: root/m4
diff options
context:
space:
mode:
authorIan Romanick <[email protected]>2013-04-15 12:25:18 -0700
committerIan Romanick <[email protected]>2013-04-16 10:18:14 -0700
commit025f03f3b70989d27a20fea42763e3ccac946aa4 (patch)
treefca8bdc702baf717f5470ea3ceef2d43023d5742 /m4
parenta27c6e1aea1d048e0c701ca59c3c5bcf12b69d7b (diff)
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 <[email protected]> Reviewed-by: Brian Paul <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'm4')
0 files changed, 0 insertions, 0 deletions