}
static void
-radv_dump_descriptor_set(enum chip_class chip_class,
+radv_dump_descriptor_set(struct radv_device *device,
struct radv_descriptor_set *set, unsigned id, FILE *f)
{
+ enum chip_class chip_class = device->physical_device->rad_info.chip_class;
const struct radv_descriptor_set_layout *layout;
int i;
}
static void
-radv_dump_descriptors(struct radv_pipeline *pipeline, FILE *f)
+radv_dump_descriptors(struct radv_device *device, FILE *f)
{
- struct radv_device *device = pipeline->device;
- enum chip_class chip_class = device->physical_device->rad_info.chip_class;
uint64_t *ptr = (uint64_t *)device->trace_id_ptr;
int i;
struct radv_descriptor_set *set =
(struct radv_descriptor_set *)ptr[i + 3];
- radv_dump_descriptor_set(chip_class, set, i, f);
+ radv_dump_descriptor_set(device, set, i, f);
}
}
{
radv_dump_shaders(pipeline, active_stages, f);
radv_dump_annotated_shaders(pipeline, active_stages, f);
- radv_dump_descriptors(pipeline, f);
}
static void
-radv_dump_graphics_state(struct radv_pipeline *graphics_pipeline,
+radv_dump_graphics_state(struct radv_device *device,
+ struct radv_pipeline *graphics_pipeline,
struct radv_pipeline *compute_pipeline, FILE *f)
{
VkShaderStageFlagBits active_stages;
active_stages = VK_SHADER_STAGE_COMPUTE_BIT;
radv_dump_pipeline_state(compute_pipeline, active_stages, f);
}
+
+ radv_dump_descriptors(device, f);
}
static void
-radv_dump_compute_state(struct radv_pipeline *compute_pipeline, FILE *f)
+radv_dump_compute_state(struct radv_device *device,
+ struct radv_pipeline *compute_pipeline, FILE *f)
{
VkShaderStageFlagBits active_stages = VK_SHADER_STAGE_COMPUTE_BIT;
return;
radv_dump_pipeline_state(compute_pipeline, active_stages, f);
+ radv_dump_descriptors(device, f);
}
static struct radv_pipeline *
switch (ring) {
case RING_GFX:
fprintf(stderr, "RING_GFX:\n");
- radv_dump_graphics_state(graphics_pipeline, compute_pipeline,
+ radv_dump_graphics_state(queue->device,
+ graphics_pipeline, compute_pipeline,
stderr);
break;
case RING_COMPUTE:
fprintf(stderr, "RING_COMPUTE:\n");
- radv_dump_compute_state(compute_pipeline, stderr);
+ radv_dump_compute_state(queue->device,
+ compute_pipeline, stderr);
break;
default:
assert(0);