st/dri: reuse depth-stencil and MSAA resources after DRI2 invalidate event
authorMarek Olšák <maraeo@gmail.com>
Sat, 1 Jun 2013 00:04:56 +0000 (02:04 +0200)
committerMarek Olšák <maraeo@gmail.com>
Thu, 13 Jun 2013 01:54:14 +0000 (03:54 +0200)
commit6c6cfc02c90663973e1a07f0596d1550bd35a38c
treec0104e737b18c0ea415cb0d85d54e363872939f7
parent683b065320dc6e15383be931648c6e7cbe175b40
st/dri: reuse depth-stencil and MSAA resources after DRI2 invalidate event

Page flipping generates an invalidate event every frame, causing reallocations
of all private resources (MSAA and depth-stencil).

Reusing the resources may improve performance (especially under memory
pressure).

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/dri/drm/dri2.c