all: set rust edition to 2024
This commit is contained in:
parent
02a18f620b
commit
3338909170
515 changed files with 1225 additions and 1187 deletions
|
|
@ -2,13 +2,13 @@ use {
|
|||
crate::{
|
||||
cpu_worker::{AsyncCpuWork, CpuJob, CpuWork, CpuWorker},
|
||||
gfx_apis::vulkan::{
|
||||
device::VulkanDevice, instance::API_VERSION, renderer::VulkanRenderer, VulkanError,
|
||||
VulkanError, device::VulkanDevice, instance::API_VERSION, renderer::VulkanRenderer,
|
||||
},
|
||||
utils::{numcell::NumCell, ptr_ext::MutPtrExt},
|
||||
},
|
||||
ash::{
|
||||
vk::{DeviceMemory, DeviceSize, MappedMemoryRange, MemoryRequirements},
|
||||
Device,
|
||||
vk::{DeviceMemory, DeviceSize, MappedMemoryRange, MemoryRequirements},
|
||||
},
|
||||
gpu_alloc::{Config, GpuAllocator, MemoryBlock, MemoryPropertyFlags, Request, UsageFlags},
|
||||
gpu_alloc_ash::AshMemoryDevice,
|
||||
|
|
|
|||
|
|
@ -1,20 +1,20 @@
|
|||
use {
|
||||
crate::{
|
||||
allocator::{
|
||||
Allocator, AllocatorError, BufferObject, BufferUsage, MappedBuffer, BO_USE_RENDERING,
|
||||
BO_USE_WRITE,
|
||||
Allocator, AllocatorError, BO_USE_RENDERING, BO_USE_WRITE, BufferObject, BufferUsage,
|
||||
MappedBuffer,
|
||||
},
|
||||
format::Format,
|
||||
gfx_apis::vulkan::{
|
||||
allocator::VulkanAllocator, command::VulkanCommandBuffer, device::VulkanDevice,
|
||||
format::VulkanFormat, renderer::image_barrier, staging::VulkanStagingBuffer,
|
||||
VulkanError,
|
||||
VulkanError, allocator::VulkanAllocator, command::VulkanCommandBuffer,
|
||||
device::VulkanDevice, format::VulkanFormat, renderer::image_barrier,
|
||||
staging::VulkanStagingBuffer,
|
||||
},
|
||||
utils::{errorfmt::ErrorFmt, on_drop::OnDrop},
|
||||
video::{
|
||||
Modifier,
|
||||
dmabuf::{DmaBuf, DmaBufIds, DmaBufPlane, PlaneVec},
|
||||
drm::Drm,
|
||||
Modifier,
|
||||
},
|
||||
},
|
||||
arrayvec::ArrayVec,
|
||||
|
|
@ -30,8 +30,8 @@ use {
|
|||
ImageSubresource, ImageSubresourceLayers, ImageTiling, ImageType, ImageUsageFlags,
|
||||
ImportMemoryFdInfoKHR, MemoryAllocateInfo, MemoryDedicatedAllocateInfo,
|
||||
MemoryFdPropertiesKHR, MemoryGetFdInfoKHR, MemoryPropertyFlags, MemoryRequirements2,
|
||||
PipelineStageFlags2, SampleCountFlags, SharingMode, SubmitInfo2, SubresourceLayout,
|
||||
QUEUE_FAMILY_FOREIGN_EXT,
|
||||
PipelineStageFlags2, QUEUE_FAMILY_FOREIGN_EXT, SampleCountFlags, SharingMode, SubmitInfo2,
|
||||
SubresourceLayout,
|
||||
},
|
||||
std::{rc::Rc, slice},
|
||||
uapi::OwnedFd,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use {
|
||||
crate::gfx_apis::vulkan::{device::VulkanDevice, renderer::CachedCommandBuffers, VulkanError},
|
||||
crate::gfx_apis::vulkan::{VulkanError, device::VulkanDevice, renderer::CachedCommandBuffers},
|
||||
ash::vk::{
|
||||
CommandBuffer, CommandBufferAllocateInfo, CommandBufferLevel, CommandPool,
|
||||
CommandPoolCreateFlags, CommandPoolCreateInfo,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use {
|
||||
crate::gfx_apis::vulkan::{device::VulkanDevice, sampler::VulkanSampler, VulkanError},
|
||||
crate::gfx_apis::vulkan::{VulkanError, device::VulkanDevice, sampler::VulkanSampler},
|
||||
arrayvec::ArrayVec,
|
||||
ash::vk::{
|
||||
DescriptorSetLayout, DescriptorSetLayoutBinding, DescriptorSetLayoutCreateFlags,
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
use {
|
||||
crate::{
|
||||
gfx_apis::vulkan::{
|
||||
VulkanError,
|
||||
allocator::{VulkanAllocation, VulkanAllocator},
|
||||
descriptor::VulkanDescriptorSetLayout,
|
||||
device::VulkanDevice,
|
||||
VulkanError,
|
||||
},
|
||||
utils::on_drop::OnDrop,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -2,22 +2,23 @@ use {
|
|||
crate::{
|
||||
format::XRGB8888,
|
||||
gfx_apis::vulkan::{
|
||||
VulkanError,
|
||||
format::VulkanFormat,
|
||||
instance::{
|
||||
map_extension_properties, ApiVersionDisplay, Extensions, VulkanInstance,
|
||||
API_VERSION,
|
||||
API_VERSION, ApiVersionDisplay, Extensions, VulkanInstance,
|
||||
map_extension_properties,
|
||||
},
|
||||
VulkanError,
|
||||
},
|
||||
utils::on_drop::OnDrop,
|
||||
video::{
|
||||
drm::{sync_obj::SyncObjCtx, Drm},
|
||||
drm::{Drm, sync_obj::SyncObjCtx},
|
||||
gbm::GbmDevice,
|
||||
},
|
||||
},
|
||||
ahash::AHashMap,
|
||||
arrayvec::ArrayVec,
|
||||
ash::{
|
||||
Device,
|
||||
ext::{
|
||||
descriptor_buffer, external_memory_dma_buf, image_drm_format_modifier,
|
||||
physical_device_drm, queue_family_foreign,
|
||||
|
|
@ -28,16 +29,16 @@ use {
|
|||
},
|
||||
vk::{
|
||||
DeviceCreateInfo, DeviceQueueCreateInfo, DeviceSize, ExternalSemaphoreFeatureFlags,
|
||||
ExternalSemaphoreHandleTypeFlags, ExternalSemaphoreProperties, MemoryPropertyFlags,
|
||||
MemoryType, PhysicalDevice, PhysicalDeviceBufferDeviceAddressFeatures,
|
||||
PhysicalDeviceDescriptorBufferFeaturesEXT, PhysicalDeviceDescriptorBufferPropertiesEXT,
|
||||
PhysicalDeviceDriverProperties, PhysicalDeviceDriverPropertiesKHR,
|
||||
PhysicalDeviceDrmPropertiesEXT, PhysicalDeviceDynamicRenderingFeatures,
|
||||
PhysicalDeviceExternalSemaphoreInfo, PhysicalDeviceProperties,
|
||||
PhysicalDeviceProperties2, PhysicalDeviceSynchronization2Features,
|
||||
PhysicalDeviceTimelineSemaphoreFeatures, Queue, QueueFlags, MAX_MEMORY_TYPES,
|
||||
ExternalSemaphoreHandleTypeFlags, ExternalSemaphoreProperties, MAX_MEMORY_TYPES,
|
||||
MemoryPropertyFlags, MemoryType, PhysicalDevice,
|
||||
PhysicalDeviceBufferDeviceAddressFeatures, PhysicalDeviceDescriptorBufferFeaturesEXT,
|
||||
PhysicalDeviceDescriptorBufferPropertiesEXT, PhysicalDeviceDriverProperties,
|
||||
PhysicalDeviceDriverPropertiesKHR, PhysicalDeviceDrmPropertiesEXT,
|
||||
PhysicalDeviceDynamicRenderingFeatures, PhysicalDeviceExternalSemaphoreInfo,
|
||||
PhysicalDeviceProperties, PhysicalDeviceProperties2,
|
||||
PhysicalDeviceSynchronization2Features, PhysicalDeviceTimelineSemaphoreFeatures, Queue,
|
||||
QueueFlags,
|
||||
},
|
||||
Device,
|
||||
},
|
||||
isnt::std_1::collections::IsntHashMap2Ext,
|
||||
std::{
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
use {
|
||||
crate::{
|
||||
gfx_api::SyncFile,
|
||||
gfx_apis::vulkan::{device::VulkanDevice, VulkanError},
|
||||
gfx_apis::vulkan::{VulkanError, device::VulkanDevice},
|
||||
},
|
||||
ash::vk::{
|
||||
ExportFenceCreateInfo, ExternalFenceHandleTypeFlags, Fence, FenceCreateInfo,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
use {
|
||||
crate::{
|
||||
format::{Format, FORMATS},
|
||||
gfx_apis::vulkan::{instance::VulkanInstance, VulkanError},
|
||||
video::{Modifier, LINEAR_MODIFIER},
|
||||
format::{FORMATS, Format},
|
||||
gfx_apis::vulkan::{VulkanError, instance::VulkanInstance},
|
||||
video::{LINEAR_MODIFIER, Modifier},
|
||||
},
|
||||
ahash::AHashMap,
|
||||
ash::{
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@ use {
|
|||
ShmGfxTexture, ShmMemory, SyncFile,
|
||||
},
|
||||
gfx_apis::vulkan::{
|
||||
allocator::VulkanAllocation, device::VulkanDevice, format::VulkanModifierLimits,
|
||||
renderer::VulkanRenderer, shm_image::VulkanShmImage, transfer::TransferType,
|
||||
VulkanError,
|
||||
VulkanError, allocator::VulkanAllocation, device::VulkanDevice,
|
||||
format::VulkanModifierLimits, renderer::VulkanRenderer, shm_image::VulkanShmImage,
|
||||
transfer::TransferType,
|
||||
},
|
||||
rect::Region,
|
||||
theme::Color,
|
||||
|
|
|
|||
|
|
@ -1,32 +1,32 @@
|
|||
use {
|
||||
crate::{
|
||||
gfx_apis::vulkan::{VulkanError, VULKAN_VALIDATION},
|
||||
gfx_apis::vulkan::{VULKAN_VALIDATION, VulkanError},
|
||||
utils::on_drop::OnDrop,
|
||||
},
|
||||
ahash::{AHashMap, AHashSet},
|
||||
ash::{
|
||||
Entry, Instance, LoadingError,
|
||||
ext::{debug_utils, validation_features},
|
||||
vk::{
|
||||
api_version_major, api_version_minor, api_version_patch, api_version_variant,
|
||||
ApplicationInfo, Bool32, DebugUtilsMessageSeverityFlagsEXT,
|
||||
API_VERSION_1_3, ApplicationInfo, Bool32, DebugUtilsMessageSeverityFlagsEXT,
|
||||
DebugUtilsMessageTypeFlagsEXT, DebugUtilsMessengerCallbackDataEXT,
|
||||
DebugUtilsMessengerCreateInfoEXT, DebugUtilsMessengerEXT, ExtensionProperties,
|
||||
InstanceCreateInfo, LayerProperties, ValidationFeaturesEXT, API_VERSION_1_3, FALSE,
|
||||
DebugUtilsMessengerCreateInfoEXT, DebugUtilsMessengerEXT, ExtensionProperties, FALSE,
|
||||
InstanceCreateInfo, LayerProperties, ValidationFeaturesEXT, api_version_major,
|
||||
api_version_minor, api_version_patch, api_version_variant,
|
||||
},
|
||||
Entry, Instance, LoadingError,
|
||||
},
|
||||
isnt::std_1::collections::IsntHashMap2Ext,
|
||||
log::Level,
|
||||
once_cell::sync::Lazy,
|
||||
std::{
|
||||
ffi::{c_void, CStr, CString},
|
||||
ffi::{CStr, CString, c_void},
|
||||
fmt::{Display, Formatter},
|
||||
iter::IntoIterator,
|
||||
rc::Rc,
|
||||
slice,
|
||||
sync::Arc,
|
||||
},
|
||||
uapi::{ustr, Ustr},
|
||||
uapi::{Ustr, ustr},
|
||||
};
|
||||
|
||||
pub struct VulkanInstance {
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
use {
|
||||
crate::{
|
||||
gfx_apis::vulkan::{
|
||||
descriptor::VulkanDescriptorSetLayout, device::VulkanDevice, shaders::VulkanShader,
|
||||
VulkanError,
|
||||
VulkanError, descriptor::VulkanDescriptorSetLayout, device::VulkanDevice,
|
||||
shaders::VulkanShader,
|
||||
},
|
||||
utils::on_drop::OnDrop,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@ use {
|
|||
GfxWriteModifier, ReleaseSync, SyncFile,
|
||||
},
|
||||
gfx_apis::vulkan::{
|
||||
VulkanError,
|
||||
allocator::{VulkanAllocator, VulkanThreadedAllocator},
|
||||
command::{VulkanCommandBuffer, VulkanCommandPool},
|
||||
descriptor::VulkanDescriptorSetLayout,
|
||||
|
|
@ -21,10 +22,9 @@ use {
|
|||
sampler::VulkanSampler,
|
||||
semaphore::VulkanSemaphore,
|
||||
shaders::{
|
||||
FillPushConstants, TexPushConstants, VulkanShader, FILL_FRAG, FILL_VERT, TEX_FRAG,
|
||||
TEX_VERT,
|
||||
FILL_FRAG, FILL_VERT, FillPushConstants, TEX_FRAG, TEX_VERT, TexPushConstants,
|
||||
VulkanShader,
|
||||
},
|
||||
VulkanError,
|
||||
},
|
||||
io_uring::IoUring,
|
||||
rect::Region,
|
||||
|
|
@ -33,26 +33,25 @@ use {
|
|||
copyhashmap::CopyHashMap, errorfmt::ErrorFmt, numcell::NumCell, once::Once,
|
||||
stack::Stack,
|
||||
},
|
||||
video::dmabuf::{dma_buf_export_sync_file, DMA_BUF_SYNC_READ, DMA_BUF_SYNC_WRITE},
|
||||
video::dmabuf::{DMA_BUF_SYNC_READ, DMA_BUF_SYNC_WRITE, dma_buf_export_sync_file},
|
||||
},
|
||||
ahash::AHashMap,
|
||||
ash::{
|
||||
vk,
|
||||
Device,
|
||||
vk::{
|
||||
AccessFlags2, AttachmentLoadOp, AttachmentStoreOp, ClearAttachment, ClearColorValue,
|
||||
ClearRect, ClearValue, CommandBuffer, CommandBufferBeginInfo, CommandBufferSubmitInfo,
|
||||
CommandBufferUsageFlags, CopyImageInfo2, DependencyInfoKHR,
|
||||
self, AccessFlags2, AttachmentLoadOp, AttachmentStoreOp, ClearAttachment,
|
||||
ClearColorValue, ClearRect, ClearValue, CommandBuffer, CommandBufferBeginInfo,
|
||||
CommandBufferSubmitInfo, CommandBufferUsageFlags, CopyImageInfo2, DependencyInfoKHR,
|
||||
DescriptorBufferBindingInfoEXT, DescriptorImageInfo, DescriptorType, DeviceSize,
|
||||
Extent2D, Extent3D, ImageAspectFlags, ImageCopy2, ImageLayout, ImageMemoryBarrier2,
|
||||
ImageSubresourceLayers, ImageSubresourceRange, Offset2D, Offset3D, PipelineBindPoint,
|
||||
PipelineStageFlags2, Rect2D, RenderingAttachmentInfo, RenderingInfo,
|
||||
SemaphoreSubmitInfo, SemaphoreSubmitInfoKHR, ShaderStageFlags, SubmitInfo2, Viewport,
|
||||
WriteDescriptorSet, QUEUE_FAMILY_FOREIGN_EXT,
|
||||
PipelineStageFlags2, QUEUE_FAMILY_FOREIGN_EXT, Rect2D, RenderingAttachmentInfo,
|
||||
RenderingInfo, SemaphoreSubmitInfo, SemaphoreSubmitInfoKHR, ShaderStageFlags,
|
||||
SubmitInfo2, Viewport, WriteDescriptorSet,
|
||||
},
|
||||
Device,
|
||||
},
|
||||
isnt::std_1::collections::IsntHashMapExt,
|
||||
linearize::{static_map, Linearize, StaticMap},
|
||||
linearize::{Linearize, StaticMap, static_map},
|
||||
std::{
|
||||
cell::{Cell, RefCell},
|
||||
fmt::{Debug, Formatter},
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use {
|
||||
crate::gfx_apis::vulkan::{device::VulkanDevice, VulkanError},
|
||||
crate::gfx_apis::vulkan::{VulkanError, device::VulkanDevice},
|
||||
ash::vk::{
|
||||
BorderColor, Filter, Sampler, SamplerAddressMode, SamplerCreateInfo, SamplerMipmapMode,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use {
|
||||
crate::gfx_apis::vulkan::{device::VulkanDevice, VulkanError},
|
||||
crate::gfx_apis::vulkan::{VulkanError, device::VulkanDevice},
|
||||
ash::vk::{
|
||||
ExternalSemaphoreHandleTypeFlags, ImportSemaphoreFdInfoKHR, Semaphore, SemaphoreCreateInfo,
|
||||
SemaphoreImportFlags,
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
use {
|
||||
crate::gfx_apis::vulkan::{device::VulkanDevice, VulkanError},
|
||||
crate::gfx_apis::vulkan::{VulkanError, device::VulkanDevice},
|
||||
ash::vk::{ShaderModule, ShaderModuleCreateInfo},
|
||||
std::rc::Rc,
|
||||
uapi::Packed,
|
||||
|
|
|
|||
|
|
@ -4,14 +4,14 @@ use {
|
|||
format::{Format, FormatShmInfo},
|
||||
gfx_api::SyncFile,
|
||||
gfx_apis::vulkan::{
|
||||
VulkanError,
|
||||
allocator::VulkanAllocation,
|
||||
command::VulkanCommandBuffer,
|
||||
fence::VulkanFence,
|
||||
image::{QueueFamily, QueueState, VulkanImage, VulkanImageMemory},
|
||||
renderer::{image_barrier, VulkanRenderer},
|
||||
renderer::{VulkanRenderer, image_barrier},
|
||||
staging::VulkanStagingBuffer,
|
||||
transfer::{TransferType, VulkanShmImageAsyncData},
|
||||
VulkanError,
|
||||
},
|
||||
rect::Rect,
|
||||
utils::{errorfmt::ErrorFmt, on_drop::OnDrop},
|
||||
|
|
|
|||
|
|
@ -3,10 +3,10 @@ use {
|
|||
cpu_worker::CpuWorker,
|
||||
gfx_api::GfxStagingBuffer,
|
||||
gfx_apis::vulkan::{
|
||||
VulkanError,
|
||||
allocator::{VulkanAllocation, VulkanAllocator},
|
||||
device::VulkanDevice,
|
||||
renderer::VulkanRenderer,
|
||||
VulkanError,
|
||||
},
|
||||
utils::{
|
||||
clonecell::CloneCell,
|
||||
|
|
@ -14,8 +14,8 @@ use {
|
|||
},
|
||||
},
|
||||
ash::{
|
||||
vk::{Buffer, BufferCreateInfo, BufferUsageFlags},
|
||||
Device,
|
||||
vk::{Buffer, BufferCreateInfo, BufferUsageFlags},
|
||||
},
|
||||
gpu_alloc::UsageFlags,
|
||||
std::{any::Any, cell::Cell, rc::Rc},
|
||||
|
|
|
|||
|
|
@ -1,23 +1,23 @@
|
|||
use {
|
||||
crate::{
|
||||
cpu_worker::{
|
||||
CpuJob, CpuWork, CpuWorker,
|
||||
jobs::{
|
||||
img_copy::ImgCopyWork,
|
||||
read_write::{ReadWriteJobError, ReadWriteWork},
|
||||
},
|
||||
CpuJob, CpuWork, CpuWorker,
|
||||
},
|
||||
gfx_api::{
|
||||
AsyncShmGfxTextureCallback, PendingShmTransfer, ShmMemory, ShmMemoryBacking, SyncFile,
|
||||
},
|
||||
gfx_apis::vulkan::{
|
||||
VulkanError,
|
||||
command::VulkanCommandBuffer,
|
||||
fence::VulkanFence,
|
||||
image::{QueueFamily, QueueState, QueueTransfer, VulkanImage, VulkanImageMemory},
|
||||
renderer::image_barrier,
|
||||
shm_image::VulkanShmImage,
|
||||
staging::{VulkanStagingBuffer, VulkanStagingShell},
|
||||
VulkanError,
|
||||
},
|
||||
rect::{Rect, Region},
|
||||
utils::{clonecell::CloneCell, errorfmt::ErrorFmt},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue