wined3d: Do not request coherent memory in wined3d_buffer_vk_create_buffer_object().
We may get coherent memory anyway, but we don't require it. Signed-off-by: Henri Verbeet <hverbeet@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
7d066631de
commit
85f9f51df8
|
@ -1589,9 +1589,8 @@ static BOOL wined3d_buffer_vk_create_buffer_object(struct wined3d_buffer_vk *buf
|
||||||
usage |= VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT;
|
usage |= VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT;
|
||||||
if (bind_flags & (WINED3D_BIND_STREAM_OUTPUT | WINED3D_BIND_RENDER_TARGET | WINED3D_BIND_DEPTH_STENCIL))
|
if (bind_flags & (WINED3D_BIND_STREAM_OUTPUT | WINED3D_BIND_RENDER_TARGET | WINED3D_BIND_DEPTH_STENCIL))
|
||||||
FIXME("Ignoring some bind flags %#x.\n", bind_flags);
|
FIXME("Ignoring some bind flags %#x.\n", bind_flags);
|
||||||
memory_type = VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT
|
memory_type = VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT
|
||||||
| VK_MEMORY_PROPERTY_HOST_COHERENT_BIT
|
| VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT;
|
||||||
| VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT;
|
|
||||||
if (!(wined3d_context_vk_create_bo(context_vk, resource->size, usage, memory_type, &buffer_vk->bo)))
|
if (!(wined3d_context_vk_create_bo(context_vk, resource->size, usage, memory_type, &buffer_vk->bo)))
|
||||||
{
|
{
|
||||||
WARN("Failed to create Vulkan buffer.\n");
|
WARN("Failed to create Vulkan buffer.\n");
|
||||||
|
|
Loading…
Reference in New Issue