layers: (re)-add viewport and scissor cbstatus flags
authorChris Forbes <chrisforbes@google.com>
Wed, 16 Aug 2017 19:56:01 +0000 (12:56 -0700)
committerChris Forbes <chrisf@ijw.co.nz>
Thu, 17 Aug 2017 16:49:34 +0000 (09:49 -0700)
We won't actually check these at draw time since we have more precise
per-viewport and per-scissor support there, but we need these in order
to easily reject CmdSetViewport/CmdSetScissor when the pipeline doesn't
have the appropriate dynamic state enabled.

layers/core_validation_types.h

index 800610b70e397e20ceaa6f4b6c25f089c6977efb..f94cbd8c1377234989d82049052037fb5978d156 100644 (file)
@@ -460,8 +460,10 @@ enum CBStatusFlagBits {
     CBSTATUS_STENCIL_READ_MASK_SET  = 0x00000010,   // Stencil read mask has been set
     CBSTATUS_STENCIL_WRITE_MASK_SET = 0x00000020,   // Stencil write mask has been set
     CBSTATUS_STENCIL_REFERENCE_SET  = 0x00000040,   // Stencil reference has been set
-    CBSTATUS_INDEX_BUFFER_BOUND     = 0x00000080,   // Index buffer has been set
-    CBSTATUS_ALL_STATE_SET          = 0x0000007F,   // All state set (intentionally exclude index buffer)
+    CBSTATUS_VIEWPORT_SET           = 0x00000080,
+    CBSTATUS_SCISSOR_SET            = 0x00000100,
+    CBSTATUS_INDEX_BUFFER_BOUND     = 0x00000200,   // Index buffer has been set
+    CBSTATUS_ALL_STATE_SET          = 0x000001FF,   // All state set (intentionally exclude index buffer)
     // clang-format on
 };