mesa: check fbo completeness based on internal format, not driver format
authorIlia Mirkin <imirkin@alum.mit.edu>
Thu, 18 Feb 2016 01:31:38 +0000 (20:31 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 19 Feb 2016 16:30:33 +0000 (11:30 -0500)
commit68c4af1c1942d30665f3f99654e8f35b175d1256
treea50d34091f31e3c616b40e214c866638827b5aca
parent0eb7b5c2a3f17d64e85247c1f4907ce20bc57a73
mesa: check fbo completeness based on internal format, not driver format

The base format is a function of the user-requested format, while the
driver format is not. So we should use the base format instead.

The driver format can be anything. Specifically in the stencil-only
case, it might be a depth/stencil format. However we still want to
refuse such an attachment when bound to GL_DEPTH.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c