-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
external: upstreamIssues happening in lower level APIs or platformsIssues happening in lower level APIs or platforms
Description
I see the following vulkan validation error on master, but no visual issues:
VALIDATION [VUID-vkAllocateMemory-deviceCoherentMemory-02790 (-2010063723)] : Validation Error: [ VUID-vkAllocateMemory-deviceCoherentMemory-02790 ] Object 0: handle = 0x55b416ae07b0, type = VK_OBJECT_TYPE_DEVICE; | MessageID = 0x8830dc95 | vkAllocateMemory: attempting to allocate memory type 4, which includes the VK_MEMORY_PROPERTY_DEVICE_COHERENT_BIT_AMD memory property, but the deviceCoherentMemory feature is not enabled. The Vulkan spec states: If the deviceCoherentMemory feature is not enabled, pAllocateInfo->memoryTypeIndex must not identify a memory type supporting VK_MEMORY_PROPERTY_DEVICE_COHERENT_BIT_AMD (https://www.khronos.org/registry/vulkan/specs/1.1-extensions/html/vkspec.html#VUID-vkAllocateMemory-deviceCoherentMemory-02790)
object info: (type: DEVICE, hndl: 94231962978224)
I suspect the culprit to be this call:
device.create_buffer(&wgpu::BufferDescriptor {
label: None,
size: std::mem::size_of_val(&entity_uniforms) as u64,
usage: wgpu::BufferUsage::UNIFORM | wgpu::BufferUsage::COPY_SRC,
mapped_at_creation: true,
})
Without a way to panic on validation errors, tracking down the source is a little cumbersome. If needed I can provide a trace.
Metadata
Metadata
Assignees
Labels
external: upstreamIssues happening in lower level APIs or platformsIssues happening in lower level APIs or platforms