layers: GH535 Add checks for Clear image errors
authorTobin Ehlis <tobine@google.com>
Thu, 19 May 2016 15:59:30 +0000 (09:59 -0600)
committerTobin Ehlis <tobine@google.com>
Thu, 19 May 2016 19:09:50 +0000 (13:09 -0600)
commitf67c311f6232b1904f7ac9b6d289ab7563e902a7
treef55f1c1b43210825ccd0c879b63d0c5c9e12e562
parent00ccb33277f7a0a8ac2fd30627c8b438d059ac56
layers: GH535 Add checks for Clear image errors

This adds two new checks to make sure that CmdClearColorImage is
not called with depth/stencil format image and that
CmdClearDepthStencilImage is not called with color format image.

Also add getImageState() helper function to image layer to
simplify/unify code for lookup of IMAGE_STATE from imageMap.
layers/image.cpp