Commit 8be55746 by Alexis Hetu Committed by Alexis Hétu

Add mode for sample qualifier

The sample qualifier forces the use of per sample rendering, so this cl adds a mode for it and detects whether the sample decoration is used in the shader. Bug: b/171415086 Change-Id: Ic59eb45c41f019859eff01de4bf467284de53c0a Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/51730Tested-by: 's avatarAlexis Hétu <sugoi@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com>
parent 99e54b1c
......@@ -111,6 +111,9 @@ SpirvShader::SpirvShader(
case spv::DecorationInputAttachmentIndex:
descriptorDecorations[targetId].InputAttachmentIndex = value;
break;
case spv::DecorationSample:
modes.ContainsSampleQualifier = true;
break;
default:
// Only handling descriptor decorations here.
break;
......
......@@ -553,6 +553,7 @@ public:
bool ContainsKill : 1;
bool ContainsControlBarriers : 1;
bool NeedsCentroid : 1;
bool ContainsSampleQualifier : 1;
// Compute workgroup dimensions
int WorkgroupSizeX = 1;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment