radv: don't call radeon_check_space in radv_BindDescriptorSets
authorFredrik Höglund <fredrik@kde.org>
Sat, 1 Apr 2017 13:03:09 +0000 (15:03 +0200)
committerFredrik Höglund <fredrik@kde.org>
Thu, 6 Apr 2017 22:54:46 +0000 (00:54 +0200)
This appears to be a leftover from an earlier version of this function.
Nothing is emitted into the CS.

Signed-off-by: Fredrik Höglund <fredrik@kde.org>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
src/amd/vulkan/radv_cmd_buffer.c

index 992dc123a21a5380c117f364851b081c1bbc91e1..dbe8bf136c6df6dd740e35e57630ac22bf345735 100644 (file)
@@ -1903,9 +1903,6 @@ void radv_CmdBindDescriptorSets(
        RADV_FROM_HANDLE(radv_pipeline_layout, layout, _layout);
        unsigned dyn_idx = 0;
 
-       MAYBE_UNUSED unsigned cdw_max = radeon_check_space(cmd_buffer->device->ws,
-                                                          cmd_buffer->cs, MAX_SETS * 4 * 6);
-
        for (unsigned i = 0; i < descriptorSetCount; ++i) {
                unsigned idx = i + firstSet;
                RADV_FROM_HANDLE(radv_descriptor_set, set, pDescriptorSets[i]);
@@ -1931,8 +1928,6 @@ void radv_CmdBindDescriptorSets(
                                             set->layout->dynamic_shader_stages;
                }
        }
-
-       assert(cmd_buffer->cs->cdw <= cdw_max);
 }
 
 static bool radv_init_push_descriptor_set(struct radv_cmd_buffer *cmd_buffer,