st/mesa: use table-driven approach to exposing extensions for formats (v3)
authorMarek Olšák <maraeo@gmail.com>
Wed, 25 Jan 2012 00:01:54 +0000 (01:01 +0100)
committerMarek Olšák <maraeo@gmail.com>
Sun, 29 Jan 2012 01:19:58 +0000 (02:19 +0100)
commit41a4e274a4e78087ce8eafbabc3713ed75bb4759
tree625b4dc34b55acd2d93a02519027d3ed731ca1d0
parentc21d7b1e30edfc0e400836705645d188a0f538cd
st/mesa: use table-driven approach to exposing extensions for formats (v3)

The check for ctx->API was unnecessary, because OES extensions are not exposed
in desktop GL.

Also require renderbuffer support for ARB_texture_rgb10_a2ui,
as per the spec.

Tested by comparing old and new glxinfo with softpipe and r600g.

v2: fix bugs
v3: rename need_only_one -> need_at_least_one
    rename num_elements -> num_mappings
    add comments
    use const when appropriate

Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_extensions.c