st/dri: implement MSAA for GLX/DRI2 framebuffers
authorMarek Olšák <maraeo@gmail.com>
Mon, 3 Dec 2012 04:36:08 +0000 (05:36 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 7 Dec 2012 13:19:29 +0000 (14:19 +0100)
commit35840ab189595b817fa8b1a1df8cc92474a7c38d
tree8c24773dedcfc0663c1388ed77ba30dc34212ed6
parent919f788b92362676fa368d9950532f82f762cdfb
st/dri: implement MSAA for GLX/DRI2 framebuffers

All MSAA buffers are allocated privately and resolved into the DRI-provided
back and front buffers.

If an MSAA visual is chosen, the buffers st/mesa receives are all
multi-sample. st/mesa doesn't have access to the single-sample buffers
in that case.

This makes MSAA work in games like Nexuiz.

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/state_trackers/dri/common/dri_drawable.c
src/gallium/state_trackers/dri/common/dri_drawable.h
src/gallium/state_trackers/dri/common/dri_screen.c
src/gallium/state_trackers/dri/drm/dri2.c
src/mesa/state_tracker/st_manager.c