radv: drop radv_cmd_dirty_mask_t typedef
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Tue, 14 Nov 2017 16:27:27 +0000 (17:27 +0100)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 15 Nov 2017 08:01:01 +0000 (09:01 +0100)
I don't think we will need a 64-bit unsigned integer for the
dirty flags in the future, and there is still 20 bits left.

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_pipeline.c
src/amd/vulkan/radv_private.h

index f006dc98c05f7cd659760c3bde6beccb0bc8a13e..faffca83308063b240a766482c7738e8988aa885 100644 (file)
@@ -1019,7 +1019,7 @@ static void
 radv_pipeline_init_dynamic_state(struct radv_pipeline *pipeline,
                                 const VkGraphicsPipelineCreateInfo *pCreateInfo)
 {
-       radv_cmd_dirty_mask_t states = RADV_CMD_DIRTY_DYNAMIC_ALL;
+       uint32_t states = RADV_CMD_DIRTY_DYNAMIC_ALL;
        RADV_FROM_HANDLE(radv_render_pass, pass, pCreateInfo->renderPass);
        struct radv_subpass *subpass = &pass->subpasses[pCreateInfo->subpass];
 
index 8b03591b5cb969827fe6e1bc52debf0c34a649c5..a416f38a7303c1ec4a18a3230ea4399a3935af91 100644 (file)
@@ -702,7 +702,6 @@ enum radv_cmd_dirty_bits {
        RADV_CMD_DIRTY_INDEX_BUFFER                      = 1 << 10,
        RADV_CMD_DIRTY_FRAMEBUFFER                       = 1 << 11,
 };
-typedef uint32_t radv_cmd_dirty_mask_t;
 
 enum radv_cmd_flush_bits {
        RADV_CMD_FLAG_INV_ICACHE = 1 << 0,
@@ -817,7 +816,7 @@ struct radv_cmd_state {
 
        bool                                          push_descriptors_dirty;
        bool predicating;
-       radv_cmd_dirty_mask_t                         dirty;
+       uint32_t                                      dirty;
 
        struct radv_pipeline *                        pipeline;
        struct radv_pipeline *                        emitted_pipeline;