linux: disabled vulkan resource aliasing because it sometimes returns unkown error
This commit is contained in:
@@ -3681,6 +3681,12 @@ using namespace vulkan_internal;
|
||||
}
|
||||
bool GraphicsDevice_Vulkan::CreateBuffer2(const GPUBufferDesc* desc, const std::function<void(void*)>& init_callback, GPUBuffer* buffer, const GPUResource* alias, uint64_t alias_offset) const
|
||||
{
|
||||
#ifdef PLATFORM_LINUX
|
||||
// Resource aliasing on Linux sometimes fails with VK_ERROR_UNKOWN so I disable it:
|
||||
alias = nullptr;
|
||||
alias_offset = 0;
|
||||
#endif // PLATFORM_LINUX
|
||||
|
||||
auto internal_state = std::make_shared<Buffer_Vulkan>();
|
||||
internal_state->allocationhandler = allocationhandler;
|
||||
buffer->internal_state = internal_state;
|
||||
@@ -4010,6 +4016,12 @@ using namespace vulkan_internal;
|
||||
}
|
||||
bool GraphicsDevice_Vulkan::CreateTexture(const TextureDesc* desc, const SubresourceData* initial_data, Texture* texture, const GPUResource* alias, uint64_t alias_offset) const
|
||||
{
|
||||
#ifdef PLATFORM_LINUX
|
||||
// Resource aliasing on Linux sometimes fails with VK_ERROR_UNKOWN so I disable it:
|
||||
alias = nullptr;
|
||||
alias_offset = 0;
|
||||
#endif // PLATFORM_LINUX
|
||||
|
||||
auto internal_state = std::make_shared<Texture_Vulkan>();
|
||||
internal_state->allocationhandler = allocationhandler;
|
||||
internal_state->defaultLayout = _ConvertImageLayout(desc->layout);
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace wi::version
|
||||
// minor features, major updates, breaking compatibility changes
|
||||
const int minor = 71;
|
||||
// minor bug fixes, alterations, refactors, updates
|
||||
const int revision = 703;
|
||||
const int revision = 704;
|
||||
|
||||
const std::string version_string = std::to_string(major) + "." + std::to_string(minor) + "." + std::to_string(revision);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user