From: Chris Forbes Date: Wed, 16 Aug 2017 19:56:01 +0000 (-0700) Subject: layers: (re)-add viewport and scissor cbstatus flags X-Git-Tag: submit/tizen/20181227.054638~823 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=21d9d249270d45a65d2cfa57bdd0a1736db5b9ab;p=platform%2Fupstream%2FVulkan-Tools.git 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. --- 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 };