mesa/main: Extend _mesa_get_format_bits to accept new pnames
authorAntia Puentes <apuentes@igalia.com>
Tue, 1 Dec 2015 18:34:21 +0000 (19:34 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:06 +0000 (15:14 +0100)
commit675418182b822810e1371407740d1a9793a812d3
treebe3a1bff4a1b3e8c98e53d7c833b44c4201e65fa
parent4a8dae62478377226bf63fcc69629daa0e80a97d
mesa/main: Extend _mesa_get_format_bits to accept new pnames

The new pnames accepted by the function are:

        - INTERNALFORMAT_RED_SIZE
        - INTERNALFORMAT_GREEN_SIZE
        - INTERNALFORMAT_BLUE_SIZE
        - INTERNALFORMAT_ALPHA_SIZE
        - INTERNALFORMAT_DEPTH_SIZE
        - INTERNALFORMAT_STENCIL_SIZE

It will be used by the ARB_internalformat_query2 implementation to
implement those pnames.

Reviewed-by: Dave Airlie <airlied@redhat.com>
src/mesa/main/formats.c