mesa: add Layered field to framebuffers
authorJordan Justen <jordan.l.justen@intel.com>
Thu, 18 Apr 2013 17:20:05 +0000 (10:20 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Wed, 1 May 2013 22:31:48 +0000 (15:31 -0700)
commit5da8288911bfd104756dfe6dc02be998208dd4cb
tree404d2fe853f1cfd07e9e58ca27bbdfa065926da7
parenta62808085a09bbf45519567e3a3a83aa485821f6
mesa: add Layered field to framebuffers

When checking framebuffer completeness, we test each attachment.
We verify that all attachments are consistent in terms of layers.

1. They must all be layered, or all non-layered
2. If they are layered, they must match in depth

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/fbobject.c
src/mesa/main/mtypes.h