#ifndef RADV_DESCRIPTOR_SET_H
#define RADV_DESCRIPTOR_SET_H
-#include <vulkan/vulkan.h>
+#include "radv_constants.h"
-#define MAX_SETS 32
+#include <vulkan/vulkan.h>
struct radv_descriptor_set_binding_layout {
VkDescriptorType type;
/* Total size of the descriptor set with room for all array entries */
uint32_t size;
+ /* CPU size of this struct + all associated data, for hashing. */
+ uint32_t layout_size;
+
/* Shader stages affected by this descriptor set */
uint16_t shader_stages;
uint16_t dynamic_shader_stages;
static inline unsigned
radv_combined_image_descriptor_sampler_offset(const struct radv_descriptor_set_binding_layout *binding)
{
- return binding->size - ((!binding->immutable_samplers_equal) ? 32 : 0);
+ return binding->size - ((!binding->immutable_samplers_equal) ? 16 : 0);
}
static inline const struct radv_sampler_ycbcr_conversion *