st/egl: Cache the pipe surface used in flush_frontbuffer.
authorChia-I Wu <olv@lunarg.com>
Fri, 12 Mar 2010 16:48:23 +0000 (00:48 +0800)
committerChia-I Wu <olv@lunarg.com>
Sat, 13 Mar 2010 05:05:21 +0000 (13:05 +0800)
commit9222c0934910172daf2405b0e581becdfbc80405
treeb24e9ad80a06a753d2a9118d8c3b3749fa41728f
parent5d66fc6e3a78f3ebdbeac647a786063293750abb
st/egl: Cache the pipe surface used in flush_frontbuffer.

It is very likely that the same surface will be flushed again and again.
Caching the surface should reduce the overhead of surface creation.
src/gallium/state_trackers/egl/x11/native_ximage.c