i965: Avoid calloc/free in the CURBE upload process.
authorEric Anholt <eric@anholt.net>
Tue, 8 Jun 2010 20:55:53 +0000 (13:55 -0700)
committerEric Anholt <eric@anholt.net>
Wed, 9 Jun 2010 21:17:52 +0000 (14:17 -0700)
commit503eb57a003f51c25687e9cf0ad6f7939a757f1b
tree06d6a6612177552abc34481b6ac45bdd6b3250d7
parent45fb47d50c08bc4c11e4454883641501713e5710
i965: Avoid calloc/free in the CURBE upload process.

In exchange we end up with an extra memcpy, but that seems better than
calloc/free.  Each buffer is 4k maximum, and on the i965-streaming
branch this allocation was showing up as the top entry in
brw_validate_state profiling for cairo-gl.
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/brw_context.h
src/mesa/drivers/dri/i965/brw_curbe.c
src/mesa/drivers/dri/i965/brw_state_cache.c
src/mesa/drivers/dri/i965/brw_vtbl.c