mesa/glformats: Consider DEPTH/STENCIL when resolving a mesa_format
authorEduardo Lima Mitev <elima@igalia.com>
Wed, 3 Feb 2016 09:57:10 +0000 (10:57 +0100)
committerEduardo Lima Mitev <elima@igalia.com>
Thu, 3 Mar 2016 14:14:07 +0000 (15:14 +0100)
commite064f43485b63053f5786f680407f15bc203763f
treee25c4224acf151d5f4dbfef76b0b964b0b6bbd6e
parentec299602a6a1db209e8e93c0853ccad1eb4ffa72
mesa/glformats: Consider DEPTH/STENCIL when resolving a mesa_format

_mesa_format_from_format_and_type() is currently not considering DEPTH and
STENCIL formats, which are not array formats and are not handled anywhere.

This patch adds cases for common combinations of DEPTH/STENCIL format and
types.

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