bool
radv_can_dump_shader(struct radv_device *device, struct vk_shader_module *module,
- bool is_gs_copy_shader)
+ bool meta_shader)
{
if (!(device->instance->debug_flags & RADV_DEBUG_DUMP_SHADERS))
return false;
if (module)
return !module->nir || (device->instance->debug_flags & RADV_DEBUG_DUMP_META_SHADERS);
- return is_gs_copy_shader;
+ return meta_shader;
}
bool
options->family = chip_family;
options->chip_class = device->physical_device->rad_info.chip_class;
options->info = &device->physical_device->rad_info;
- options->dump_shader = radv_can_dump_shader(device, module, gs_copy_shader);
+ options->dump_shader = radv_can_dump_shader(device, module, gs_copy_shader || trap_handler_shader);
options->dump_preoptir =
options->dump_shader && device->instance->debug_flags & RADV_DEBUG_PREOPTIR;
options->record_ir = keep_shader_info;
const char *radv_get_shader_name(struct radv_shader_info *info, gl_shader_stage stage);
bool radv_can_dump_shader(struct radv_device *device, struct vk_shader_module *module,
- bool is_gs_copy_shader);
+ bool meta_shader);
bool radv_can_dump_shader_stats(struct radv_device *device, struct vk_shader_module *module);