mirror of
https://git.naxdy.org/Mirror/Ryujinx.git
synced 2025-02-22 09:03:36 +00:00
SPIR-V: Fix ImageQuerySizeLod
This commit is contained in:
parent
a2e4b4b6d8
commit
97b179696b
4 changed files with 12 additions and 9 deletions
|
@ -1539,9 +1539,10 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
|
||||||
|
|
||||||
var meta = new TextureMeta(texOp.CbufSlot, texOp.Handle, texOp.Format, texOp.Type);
|
var meta = new TextureMeta(texOp.CbufSlot, texOp.Handle, texOp.Format, texOp.Type);
|
||||||
|
|
||||||
(_, var sampledImageType, var sampledImageVariable) = context.Samplers[meta];
|
(var imageType, var sampledImageType, var sampledImageVariable) = context.Samplers[meta];
|
||||||
|
|
||||||
var image = context.Load(sampledImageType, sampledImageVariable);
|
var image = context.Load(sampledImageType, sampledImageVariable);
|
||||||
|
image = context.Image(imageType, image);
|
||||||
|
|
||||||
if (texOp.Index == 3)
|
if (texOp.Index == 3)
|
||||||
{
|
{
|
||||||
|
|
|
@ -25,6 +25,7 @@ namespace Ryujinx.Graphics.Shader.CodeGen.Spirv
|
||||||
|
|
||||||
context.AddCapability(Capability.GroupNonUniformBallot);
|
context.AddCapability(Capability.GroupNonUniformBallot);
|
||||||
context.AddCapability(Capability.ImageBuffer);
|
context.AddCapability(Capability.ImageBuffer);
|
||||||
|
context.AddCapability(Capability.ImageQuery);
|
||||||
context.AddCapability(Capability.SampledBuffer);
|
context.AddCapability(Capability.SampledBuffer);
|
||||||
context.AddCapability(Capability.SubgroupBallotKHR);
|
context.AddCapability(Capability.SubgroupBallotKHR);
|
||||||
context.AddCapability(Capability.SubgroupVoteKHR);
|
context.AddCapability(Capability.SubgroupVoteKHR);
|
||||||
|
|
|
@ -234,7 +234,7 @@ namespace Ryujinx.Graphics.Shader.Translation
|
||||||
}
|
}
|
||||||
else if (Config.Stage == ShaderStage.Fragment)
|
else if (Config.Stage == ShaderStage.Fragment)
|
||||||
{
|
{
|
||||||
bool supportsBgra = Config.GpuAccessor.QueryHostSupportsBgraFormat();
|
bool supportsBgra = true; // Config.GpuAccessor.QueryHostSupportsBgraFormat();
|
||||||
|
|
||||||
if (Config.OmapDepth)
|
if (Config.OmapDepth)
|
||||||
{
|
{
|
||||||
|
|
|
@ -362,6 +362,7 @@ namespace Spv
|
||||||
VolatileTexelKHR = 0x00000800,
|
VolatileTexelKHR = 0x00000800,
|
||||||
SignExtend = 0x00001000,
|
SignExtend = 0x00001000,
|
||||||
ZeroExtend = 0x00002000,
|
ZeroExtend = 0x00002000,
|
||||||
|
Offsets = 0x00010000,
|
||||||
}
|
}
|
||||||
|
|
||||||
public enum FPFastMathModeShift
|
public enum FPFastMathModeShift
|
||||||
|
|
Loading…
Reference in a new issue