st/mesa: implement a simple cache for glDrawPixels
authorBrian Paul <brianp@vmware.com>
Fri, 19 Feb 2016 15:51:51 +0000 (08:51 -0700)
committerBrian Paul <brianp@vmware.com>
Fri, 19 Feb 2016 15:51:51 +0000 (08:51 -0700)
commit44f48fead5ba62a7e5b12bbadafa2c393a5329aa
treea25d6c534337f36588fa102f99ae9043be63ea2d
parent71dcc067a56e76246841ae9208893db186d4b73e
st/mesa: implement a simple cache for glDrawPixels

Instead of discarding the texture we created, keep it around in case
the next glDrawPixels draws the same image again.  This is intended
to help application which draw the same image several times in a row,
either within a frame or subsequent frames.

Reviewed-by: Charmaine Lee <charmainel@vmware.com>
src/mesa/state_tracker/st_cb_drawpixels.c
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_context.h