radv: Only enter the immutable samplers init loop when we have some.

Reviewed-by: Dave Airlie <airlied@redhat.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
This commit is contained in:
Bas Nieuwenhuizen
2017-09-17 12:59:24 +02:00
parent 68dc19d400
commit ef721c77f1
2 changed files with 18 additions and 12 deletions

View File

@@ -68,6 +68,8 @@ struct radv_descriptor_set_layout {
/* Number of dynamic offsets used by this descriptor set */
uint16_t dynamic_offset_count;
bool has_immutable_samplers;
/* Bindings in this descriptor set */
struct radv_descriptor_set_binding_layout binding[0];
};