radv: declare new extended dynamic states
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 13 Apr 2020 09:29:28 +0000 (11:29 +0200)
committerMarge Bot <eric+marge@anholt.net>
Mon, 13 Jul 2020 08:31:54 +0000 (08:31 +0000)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5718>

src/amd/vulkan/radv_private.h

index 644dcd0d81c6e0c1cf0e9d24ae3f5abf826c067e..6903af4255f6983fbf2dae7ab97f045458deba80 100644 (file)
@@ -940,42 +940,62 @@ struct radv_buffer {
 };
 
 enum radv_dynamic_state_bits {
-       RADV_DYNAMIC_VIEWPORT             = 1 << 0,
-       RADV_DYNAMIC_SCISSOR              = 1 << 1,
-       RADV_DYNAMIC_LINE_WIDTH           = 1 << 2,
-       RADV_DYNAMIC_DEPTH_BIAS           = 1 << 3,
-       RADV_DYNAMIC_BLEND_CONSTANTS      = 1 << 4,
-       RADV_DYNAMIC_DEPTH_BOUNDS         = 1 << 5,
-       RADV_DYNAMIC_STENCIL_COMPARE_MASK = 1 << 6,
-       RADV_DYNAMIC_STENCIL_WRITE_MASK   = 1 << 7,
-       RADV_DYNAMIC_STENCIL_REFERENCE    = 1 << 8,
-       RADV_DYNAMIC_DISCARD_RECTANGLE    = 1 << 9,
-       RADV_DYNAMIC_SAMPLE_LOCATIONS     = 1 << 10,
-       RADV_DYNAMIC_LINE_STIPPLE         = 1 << 11,
-       RADV_DYNAMIC_ALL                  = (1 << 12) - 1,
+       RADV_DYNAMIC_VIEWPORT                           = 1 << 0,
+       RADV_DYNAMIC_SCISSOR                            = 1 << 1,
+       RADV_DYNAMIC_LINE_WIDTH                         = 1 << 2,
+       RADV_DYNAMIC_DEPTH_BIAS                         = 1 << 3,
+       RADV_DYNAMIC_BLEND_CONSTANTS                    = 1 << 4,
+       RADV_DYNAMIC_DEPTH_BOUNDS                       = 1 << 5,
+       RADV_DYNAMIC_STENCIL_COMPARE_MASK               = 1 << 6,
+       RADV_DYNAMIC_STENCIL_WRITE_MASK                 = 1 << 7,
+       RADV_DYNAMIC_STENCIL_REFERENCE                  = 1 << 8,
+       RADV_DYNAMIC_DISCARD_RECTANGLE                  = 1 << 9,
+       RADV_DYNAMIC_SAMPLE_LOCATIONS                   = 1 << 10,
+       RADV_DYNAMIC_LINE_STIPPLE                       = 1 << 11,
+       RADV_DYNAMIC_CULL_MODE                          = 1 << 12,
+       RADV_DYNAMIC_FRONT_FACE                         = 1 << 13,
+       RADV_DYNAMIC_PRIMITIVE_TOPOLOGY                 = 1 << 14,
+       RADV_DYNAMIC_DEPTH_TEST_ENABLE                  = 1 << 15,
+       RADV_DYNAMIC_DEPTH_WRITE_ENABLE                 = 1 << 16,
+       RADV_DYNAMIC_DEPTH_COMPARE_OP                   = 1 << 17,
+       RADV_DYNAMIC_DEPTH_BOUNDS_TEST_ENABLE           = 1 << 18,
+       RADV_DYNAMIC_STENCIL_TEST_ENABLE                = 1 << 19,
+       RADV_DYNAMIC_STENCIL_OP                         = 1 << 20,
+       RADV_DYNAMIC_VERTEX_INPUT_BINDING_STRIDE        = 1 << 21,
+       RADV_DYNAMIC_ALL                                = (1 << 22) - 1,
 };
 
 enum radv_cmd_dirty_bits {
        /* Keep the dynamic state dirty bits in sync with
         * enum radv_dynamic_state_bits */
-       RADV_CMD_DIRTY_DYNAMIC_VIEWPORT                  = 1 << 0,
-       RADV_CMD_DIRTY_DYNAMIC_SCISSOR                   = 1 << 1,
-       RADV_CMD_DIRTY_DYNAMIC_LINE_WIDTH                = 1 << 2,
-       RADV_CMD_DIRTY_DYNAMIC_DEPTH_BIAS                = 1 << 3,
-       RADV_CMD_DIRTY_DYNAMIC_BLEND_CONSTANTS           = 1 << 4,
-       RADV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS              = 1 << 5,
-       RADV_CMD_DIRTY_DYNAMIC_STENCIL_COMPARE_MASK      = 1 << 6,
-       RADV_CMD_DIRTY_DYNAMIC_STENCIL_WRITE_MASK        = 1 << 7,
-       RADV_CMD_DIRTY_DYNAMIC_STENCIL_REFERENCE         = 1 << 8,
-       RADV_CMD_DIRTY_DYNAMIC_DISCARD_RECTANGLE         = 1 << 9,
-       RADV_CMD_DIRTY_DYNAMIC_SAMPLE_LOCATIONS          = 1 << 10,
-       RADV_CMD_DIRTY_DYNAMIC_LINE_STIPPLE              = 1 << 11,
-       RADV_CMD_DIRTY_DYNAMIC_ALL                       = (1 << 12) - 1,
-       RADV_CMD_DIRTY_PIPELINE                          = 1 << 12,
-       RADV_CMD_DIRTY_INDEX_BUFFER                      = 1 << 13,
-       RADV_CMD_DIRTY_FRAMEBUFFER                       = 1 << 14,
-       RADV_CMD_DIRTY_VERTEX_BUFFER                     = 1 << 15,
-       RADV_CMD_DIRTY_STREAMOUT_BUFFER                  = 1 << 16,
+       RADV_CMD_DIRTY_DYNAMIC_VIEWPORT                         = 1 << 0,
+       RADV_CMD_DIRTY_DYNAMIC_SCISSOR                          = 1 << 1,
+       RADV_CMD_DIRTY_DYNAMIC_LINE_WIDTH                       = 1 << 2,
+       RADV_CMD_DIRTY_DYNAMIC_DEPTH_BIAS                       = 1 << 3,
+       RADV_CMD_DIRTY_DYNAMIC_BLEND_CONSTANTS                  = 1 << 4,
+       RADV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS                     = 1 << 5,
+       RADV_CMD_DIRTY_DYNAMIC_STENCIL_COMPARE_MASK             = 1 << 6,
+       RADV_CMD_DIRTY_DYNAMIC_STENCIL_WRITE_MASK               = 1 << 7,
+       RADV_CMD_DIRTY_DYNAMIC_STENCIL_REFERENCE                = 1 << 8,
+       RADV_CMD_DIRTY_DYNAMIC_DISCARD_RECTANGLE                = 1 << 9,
+       RADV_CMD_DIRTY_DYNAMIC_SAMPLE_LOCATIONS                 = 1 << 10,
+       RADV_CMD_DIRTY_DYNAMIC_LINE_STIPPLE                     = 1 << 11,
+       RADV_CMD_DIRTY_DYNAMIC_CULL_MODE                        = 1 << 12,
+       RADV_CMD_DIRTY_DYNAMIC_FRONT_FACE                       = 1 << 13,
+       RADV_CMD_DIRTY_DYNAMIC_PRIMITIVE_TOPOLOGY               = 1 << 14,
+       RADV_CMD_DIRTY_DYNAMIC_DEPTH_TEST_ENABLE                = 1 << 15,
+       RADV_CMD_DIRTY_DYNAMIC_DEPTH_WRITE_ENABLE               = 1 << 16,
+       RADV_CMD_DIRTY_DYNAMIC_DEPTH_COMPARE_OP                 = 1 << 17,
+       RADV_CMD_DIRTY_DYNAMIC_DEPTH_BOUNDS_TEST_ENABLE         = 1 << 18,
+       RADV_CMD_DIRTY_DYNAMIC_STENCIL_TEST_ENABLE              = 1 << 19,
+       RADV_CMD_DIRTY_DYNAMIC_STENCIL_OP                       = 1 << 20,
+       RADV_CMD_DIRTY_DYNAMIC_VERTEX_INPUT_BINDING_STRIDE      = 1 << 21,
+       RADV_CMD_DIRTY_DYNAMIC_ALL                              = (1 << 22) - 1,
+       RADV_CMD_DIRTY_PIPELINE                                 = 1 << 22,
+       RADV_CMD_DIRTY_INDEX_BUFFER                             = 1 << 23,
+       RADV_CMD_DIRTY_FRAMEBUFFER                              = 1 << 24,
+       RADV_CMD_DIRTY_VERTEX_BUFFER                            = 1 << 25,
+       RADV_CMD_DIRTY_STREAMOUT_BUFFER                         = 1 << 26,
 };
 
 enum radv_cmd_flush_bits {