Omit image format if possible, and fix BA bit (#1280)

* Omit image format if possible, and fix BA bit

* Match extension name
This commit is contained in:
gdkchan 2020-05-27 06:00:21 -03:00 committed by GitHub
parent b663cd22c8
commit 0b6d206daa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 27 additions and 2 deletions

View file

@ -1217,6 +1217,13 @@ namespace Ryujinx.Graphics.Shader.Instructions
private static TextureFormat GetTextureFormat(EmitterContext context, int handle)
{
// When the formatted load extension is supported, we don't need to
// specify a format, we can just declare it without a format and the GPU will handle it.
if (context.Config.GpuAccessor.QuerySupportsImageLoadFormatted())
{
return TextureFormat.Unknown;
}
var format = context.Config.GpuAccessor.QueryTextureFormat(handle);
if (format == TextureFormat.Unknown)