refactor: remove unnecessary debugging and lists

This commit is contained in:
Nova
2025-07-15 14:13:55 -07:00
parent 0b4c7edc92
commit a29a04d3f5
3 changed files with 1 additions and 35 deletions

View File

@@ -21,7 +21,7 @@ pub struct DmabufFeedback(pub Arc<Dmabuf>);
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?;

View File

@@ -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,

View File

@@ -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,
];