diff --git a/src/wayland/dmabuf/feedback.rs b/src/wayland/dmabuf/feedback.rs index 081e5b9..fc6b56f 100644 --- a/src/wayland/dmabuf/feedback.rs +++ b/src/wayland/dmabuf/feedback.rs @@ -21,7 +21,7 @@ pub struct DmabufFeedback(pub Arc); impl DmabufFeedback { #[tracing::instrument("debug", skip_all)] pub async fn send_params(&self, client: &mut Client, sender_id: ObjectId) -> Result<()> { - let num_formats = dbg!(self.0.formats.len()); + let num_formats = self.0.formats.len(); // Send format table first self.send_format_table(client, sender_id).await?; diff --git a/src/wayland/dmabuf/mod.rs b/src/wayland/dmabuf/mod.rs index 88243db..c51b168 100644 --- a/src/wayland/dmabuf/mod.rs +++ b/src/wayland/dmabuf/mod.rs @@ -66,8 +66,6 @@ impl Dmabuf { .flat_map(|(f, mods)| mods.into_iter().map(move |modifier| (f, modifier))) .collect(); - dbg!(&formats); - let dmabuf = Self { active_params: Registry::new(), version, diff --git a/src/wayland/vulkano_data.rs b/src/wayland/vulkano_data.rs index feb75b2..d4de7f1 100644 --- a/src/wayland/vulkano_data.rs +++ b/src/wayland/vulkano_data.rs @@ -11,7 +11,6 @@ use vulkano::{ StandardCommandBufferAllocatorCreateInfo, }, device::{DeviceCreateInfo, QueueCreateInfo}, - format::Format, instance::InstanceCreateFlags, memory::allocator::{MemoryAllocator, StandardMemoryAllocator}, }; @@ -141,34 +140,3 @@ unsafe impl vulkano::library::Loader for AshEntryVulkanoLoader { unsafe { self.0.get_instance_proc_addr(instance, name) } } } - -pub const DMA_CAPABLE_FORMATS: [Format; 28] = [ - Format::A2B10G10R10_UNORM_PACK32, - Format::A2B10G10R10_SINT_PACK32, - Format::A2R10G10B10_UNORM_PACK32, - Format::A2R10G10B10_SINT_PACK32, - Format::B8G8R8_UNORM, - Format::B8G8R8_SINT, - Format::R8G8B8A8_UNORM, - Format::R8G8B8A8_SINT, - Format::R8G8B8_UNORM, - Format::R8G8B8_SINT, - Format::B8G8R8A8_UNORM, - Format::B8G8R8A8_SINT, - Format::R16_UNORM, - Format::R16_SINT, - Format::R8_UNORM, - Format::R8_SINT, - Format::R16G16_UNORM, - Format::R16G16_SINT, - Format::R8G8_UNORM, - Format::R8G8_SINT, - Format::A4B4G4R4_UNORM_PACK16, - Format::A1R5G5B5_UNORM_PACK16, - Format::B5G6R5_UNORM_PACK16, - Format::B4G4R4A4_UNORM_PACK16, - Format::B5G5R5A1_UNORM_PACK16, - Format::R5G6B5_UNORM_PACK16, - Format::R4G4B4A4_UNORM_PACK16, - Format::R5G5B5A1_UNORM_PACK16, -];