i965/aub: Dump a final bitmap from DestroyContext.
authorKenneth Graunke <kenneth@whitecape.org>
Fri, 30 Mar 2012 06:37:09 +0000 (23:37 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 2 Apr 2012 20:47:53 +0000 (13:47 -0700)
commit252d3118dd40e9e3c577702b4c65a2d6cfd343b6
treebfc40c0fd8ef4655befc95d7d038243c74e7001d
parent42bc0b9b9dc31a15c08d409d14d25ccf19501255
i965/aub: Dump a final bitmap from DestroyContext.

Certain applications don't call SwapBuffers before exiting.  Yet, we'd
really like to see a bitmap containing the final rendered image even if
they choose never to present it.

In particular, Piglit tests (at least with -auto -fbo) fall into this
category.  Many of them failed to dump any images at all.

Dumping one final image at context destruction time seems to work.
We may wish to pursue a more elegant solution later.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Eric Anholt <eric@anholt.net>
src/mesa/drivers/dri/intel/intel_context.c
src/mesa/drivers/dri/intel/intel_screen.c
src/mesa/drivers/dri/intel/intel_screen.h