struct sw_span is again allocated on the stack, but the arrays of span
authorBrian Paul <brian.paul@tungstengraphics.com>
Wed, 7 Aug 2002 00:45:07 +0000 (00:45 +0000)
committerBrian Paul <brian.paul@tungstengraphics.com>
Wed, 7 Aug 2002 00:45:07 +0000 (00:45 +0000)
commit77df88727cb0a423dd5cb41498c2302d9df4fce7
tree98234cef23e87e196b3628095196daed47bf6dce
parent2353e96c320d4bd26d10dc29b57df3e9f882e6d3
struct sw_span is again allocated on the stack, but the arrays of span
data are broken out into a new struct span_arrays which is allocated
per-context (to avoid huge stack allocations - a problem on Windows).
This lets us use span.redStep instead of span->redStep (for example) to
hopefully get slightly better performance in the triangle functions.
25 files changed:
src/mesa/drivers/osmesa/osmesa.c
src/mesa/drivers/x11/xm_tri.c
src/mesa/swrast/s_aaline.c
src/mesa/swrast/s_aalinetemp.h
src/mesa/swrast/s_aatritemp.h
src/mesa/swrast/s_alpha.c
src/mesa/swrast/s_bitmap.c
src/mesa/swrast/s_blend.c
src/mesa/swrast/s_context.c
src/mesa/swrast/s_context.h
src/mesa/swrast/s_copypix.c
src/mesa/swrast/s_depth.c
src/mesa/swrast/s_drawpix.c
src/mesa/swrast/s_fog.c
src/mesa/swrast/s_lines.c
src/mesa/swrast/s_logic.c
src/mesa/swrast/s_masking.c
src/mesa/swrast/s_pixeltex.c
src/mesa/swrast/s_pointtemp.h
src/mesa/swrast/s_span.c
src/mesa/swrast/s_stencil.c
src/mesa/swrast/s_texture.c
src/mesa/swrast/s_triangle.c
src/mesa/swrast/s_zoom.c
src/mesa/swrast/swrast.h