st/dri: refactor dri_fill_in_modes
authorMarek Olšák <maraeo@gmail.com>
Mon, 3 Dec 2012 02:21:04 +0000 (03:21 +0100)
committerMarek Olšák <maraeo@gmail.com>
Fri, 7 Dec 2012 13:19:28 +0000 (14:19 +0100)
commit985649b5963f2ad4bfe00abf573b1a53b28ed453
tree03f8e180001e7380db17866aa71049e0a7612179
parent39737e17e7a61535a35669756161005a7a5c887b
st/dri: refactor dri_fill_in_modes

- We can use a single loop for adding new configs.
- The useless parameter depth_bits is removed.
- The maximum number of samples is bumped to 32.
- We can support Z16_UNORM and Z32_UNORM unconditionally since the zbuffers
  are private.

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