Possible crashfix for D3HDP #822

This commit is contained in:
Robert Beckebans 2023-10-30 22:41:23 +01:00
parent 8c464de83d
commit a00d6dc9d9
2 changed files with 3 additions and 0 deletions

View file

@ -882,6 +882,7 @@ int idImageManager::LoadLevelImages( bool pacifier )
if( !commandList )
{
nvrhi::CommandListParameters params = {};
params.enableImmediateExecution = false;
if( deviceManager->GetGraphicsAPI() == nvrhi::GraphicsAPI::VULKAN )
{
// SRS - set upload buffer size to avoid Vulkan staging buffer fragmentation
@ -1004,6 +1005,7 @@ void idImageManager::LoadDeferredImages( nvrhi::ICommandList* _commandList )
if( !commandList )
{
nvrhi::CommandListParameters params = {};
params.enableImmediateExecution = false;
if( deviceManager->GetGraphicsAPI() == nvrhi::GraphicsAPI::VULKAN )
{
// SRS - set upload buffer size to avoid Vulkan staging buffer fragmentation

View file

@ -244,6 +244,7 @@ void idRenderModelManagerLocal::Init()
if( !commandList )
{
nvrhi::CommandListParameters params = {};
params.enableImmediateExecution = false;
if( deviceManager->GetGraphicsAPI() == nvrhi::GraphicsAPI::VULKAN )
{
// SRS - set upload buffer size to avoid Vulkan staging buffer fragmentation