From 714b7505b84cd27ad828e231da04ae6b28a2f13a Mon Sep 17 00:00:00 2001 From: jsmall-nvidia Date: Sat, 9 Oct 2021 10:15:28 -0400 Subject: Disable swiftshader temporarily (#1971) * #include an absolute path didn't work - because paths were taken to always be relative. * Temporarily disable swiftshader. --- tools/gfx/vulkan/render-vk.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'tools/gfx/vulkan/render-vk.cpp') diff --git a/tools/gfx/vulkan/render-vk.cpp b/tools/gfx/vulkan/render-vk.cpp index 9eb0b71a1..2dd5d4041 100644 --- a/tools/gfx/vulkan/render-vk.cpp +++ b/tools/gfx/vulkan/render-vk.cpp @@ -5872,7 +5872,10 @@ SlangResult VKDevice::initialize(const Desc& desc) SLANG_RETURN_ON_FAIL(RendererBase::initialize(desc)); SlangResult initDeviceResult = SLANG_OK; - for (int forceSoftware = 0; forceSoftware <= 1; forceSoftware++) + + // TODO(JS): HACK! Disable swiftshader for now + //for (int forceSoftware = 0; forceSoftware <= 1; forceSoftware++) + for (int forceSoftware = 0; forceSoftware <= 0; forceSoftware++) { initDeviceResult = m_module.init(forceSoftware != 0); if (initDeviceResult != SLANG_OK) -- cgit v1.2.3