summaryrefslogtreecommitdiffstats
path: root/src/amd
diff options
context:
space:
mode:
authorFredrik Höglund <[email protected]>2017-04-01 15:03:09 +0200
committerFredrik Höglund <[email protected]>2017-04-07 00:54:46 +0200
commitfd0f539e60f1f34d1a1f97dc978411647f837253 (patch)
treeddd5f3bbf214d416643bc24e39384e18ba68f5a4 /src/amd
parentc1f8c83cb66b765f496b7f41259109d0d546bf5c (diff)
radv: don't call radeon_check_space in radv_BindDescriptorSets
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 <[email protected]> Reviewed-by: Bas Nieuwenhuizen <[email protected]>
Diffstat (limited to 'src/amd')
-rw-r--r--src/amd/vulkan/radv_cmd_buffer.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/amd/vulkan/radv_cmd_buffer.c b/src/amd/vulkan/radv_cmd_buffer.c
index 992dc123a21..dbe8bf136c6 100644
--- a/src/amd/vulkan/radv_cmd_buffer.c
+++ b/src/amd/vulkan/radv_cmd_buffer.c
@@ -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,