+static inline bool
+radv_can_dump_shader(struct radv_device *device,
+ struct radv_shader_module *module)
+{
+ /* Only dump non-meta shaders, useful for debugging purposes. */
+ return device->instance->debug_flags & RADV_DEBUG_DUMP_SHADERS &&
+ module && !module->nir;
+}
+