From 21d9d249270d45a65d2cfa57bdd0a1736db5b9ab Mon Sep 17 00:00:00 2001 From: Chris Forbes Date: Wed, 16 Aug 2017 12:56:01 -0700 Subject: layers: (re)-add viewport and scissor cbstatus flags 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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/layers/core_validation_types.h b/layers/core_validation_types.h index 800610b7..f94cbd8c 100644 --- a/layers/core_validation_types.h +++ b/layers/core_validation_types.h @@ -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 }; -- cgit v1.2.3