gallium: add st_api feature mask to prevent advertising MS visuals
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Mon, 21 May 2012 21:46:11 +0000 (23:46 +0200)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Tue, 29 May 2012 13:01:41 +0000 (15:01 +0200)
commitf80c2874eca86a12517fbe2f4c15287edfb4dc89
treecbe6d3abf5a18eaea7348337712da66ee1337614
parent6404095fbab74a6194081374bd56786d07c5d561
gallium: add st_api feature mask to prevent advertising MS visuals

v2: use a define for the maximum sample count
v3: also test odd sample counts (r300 supports MS3)

While multisample renderbuffers are supported by mesa, MS visuals
are not, so we need a way to tell dri/st not to advertise them even
if the gallium driver does support multisampled surfaces.

Otherwise applications selecting these non-functional visuals would
run into trouble ...

Reviewed-by: Brian Paul <brianp@vmware.com>
src/gallium/include/state_tracker/st_api.h
src/gallium/state_trackers/dri/common/dri_screen.c
src/gallium/state_trackers/vega/vg_manager.c
src/mesa/state_tracker/st_manager.c