From 77499414d74d631feffe2a228652713198ee3f6a Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Mon, 13 Apr 2020 11:29:28 +0200 Subject: [PATCH] radv: declare new extended dynamic states Signed-off-by: Samuel Pitoiset Reviewed-by: Bas Nieuwenhuizen Part-of: --- src/amd/vulkan/radv_private.h | 82 ++++++++++++++++++++++------------- 1 file changed, 51 insertions(+), 31 deletions(-) diff --git a/src/amd/vulkan/radv_private.h b/src/amd/vulkan/radv_private.h index 644dcd0d81c..6903af4255f 100644 --- a/src/amd/vulkan/radv_private.h +++ b/src/amd/vulkan/radv_private.h @@ -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 { -- 2.30.2