1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-18 20:52:10 +01:00

[d3d11] Don't set HOST pipeline stage and access flags for resources

The backend does not and will not use that information at all.
This commit is contained in:
Philip Rebohle 2019-10-24 16:57:06 +02:00
parent 2d6a3396dd
commit f9c2e43ffc
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
3 changed files with 2 additions and 21 deletions

View File

@ -58,16 +58,6 @@ namespace dxvk {
| VK_ACCESS_SHADER_WRITE_BIT;
}
if (pDesc->CPUAccessFlags & D3D11_CPU_ACCESS_WRITE) {
info.stages |= VK_PIPELINE_STAGE_HOST_BIT;
info.access |= VK_ACCESS_HOST_WRITE_BIT;
}
if (pDesc->CPUAccessFlags & D3D11_CPU_ACCESS_READ) {
info.stages |= VK_PIPELINE_STAGE_HOST_BIT;
info.access |= VK_ACCESS_HOST_READ_BIT;
}
if (pDesc->MiscFlags & D3D11_RESOURCE_MISC_DRAWINDIRECT_ARGS) {
info.usage |= VK_BUFFER_USAGE_INDIRECT_BUFFER_BIT;
info.stages |= VK_PIPELINE_STAGE_DRAW_INDIRECT_BIT;

View File

@ -54,10 +54,8 @@ namespace dxvk {
DxvkBufferCreateInfo info;
info.size = m_shader->shaderConstants().sizeInBytes();
info.usage = VK_BUFFER_USAGE_UNIFORM_BUFFER_BIT;
info.stages = util::pipelineStages(m_shader->stage())
| VK_PIPELINE_STAGE_HOST_BIT;
info.access = VK_ACCESS_UNIFORM_READ_BIT
| VK_ACCESS_HOST_WRITE_BIT;
info.stages = util::pipelineStages(m_shader->stage());
info.access = VK_ACCESS_UNIFORM_READ_BIT;
VkMemoryPropertyFlags memFlags
= VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT

View File

@ -128,15 +128,8 @@ namespace dxvk {
// to enable linear tiling, and DXVK needs to be aware that
// the image can be accessed by the host.
if (m_mapMode == D3D11_COMMON_TEXTURE_MAP_MODE_DIRECT) {
imageInfo.stages |= VK_PIPELINE_STAGE_HOST_BIT;
imageInfo.tiling = VK_IMAGE_TILING_LINEAR;
imageInfo.initialLayout = VK_IMAGE_LAYOUT_PREINITIALIZED;
if (m_desc.CPUAccessFlags & D3D11_CPU_ACCESS_WRITE)
imageInfo.access |= VK_ACCESS_HOST_WRITE_BIT;
if (m_desc.CPUAccessFlags & D3D11_CPU_ACCESS_READ)
imageInfo.access |= VK_ACCESS_HOST_READ_BIT;
}
// We must keep LINEAR images in GENERAL layout, but we