RADV bug fix (#139)

* Use correct typing for stencil, dispatch launch on UI thread
* Clean up some LaunchPath code
This commit is contained in:
Gloria 2023-03-06 08:31:05 +01:00 committed by GitHub
parent 84571f8fe6
commit d62fe21d47
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 2 deletions

View File

@ -614,7 +614,8 @@ void EmulatorApp::EmulatorThread() {
if (!path.empty()) {
// Normalize the path and make absolute.
auto abs_path = std::filesystem::absolute(path);
result = emulator_->LaunchPath(abs_path);
result = app_context().CallInUIThread([this, abs_path]() { return emulator_->LaunchPath(abs_path); });
if (XFAILED(result)) {
xe::FatalError(fmt::format("Failed to launch target: {:08X}", result));
app_context().RequestDeferredQuit();

View File

@ -2289,7 +2289,7 @@ VkShaderModule VulkanRenderTargetCache::GetTransferShader(
builder.addCapability(spv::CapabilityStencilExportEXT);
output_fragment_stencil_ref =
builder.createVariable(spv::NoPrecision, spv::StorageClassOutput,
type_int, "gl_FragStencilRefARB");
type_uint, "gl_FragStencilRefARB");
builder.addDecoration(output_fragment_stencil_ref,
spv::DecorationBuiltIn,
spv::BuiltInFragStencilRefEXT);