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( ...@@ -111,6 +111,9 @@ SpirvShader::SpirvShader(
case spv::DecorationInputAttachmentIndex: case spv::DecorationInputAttachmentIndex:
descriptorDecorations[targetId].InputAttachmentIndex = value; descriptorDecorations[targetId].InputAttachmentIndex = value;
break; break;
case spv::DecorationSample:
modes.ContainsSampleQualifier = true;
break;
default: default:
// Only handling descriptor decorations here. // Only handling descriptor decorations here.
break; break;
......
...@@ -553,6 +553,7 @@ public: ...@@ -553,6 +553,7 @@ public:
bool ContainsKill : 1; bool ContainsKill : 1;
bool ContainsControlBarriers : 1; bool ContainsControlBarriers : 1;
bool NeedsCentroid : 1; bool NeedsCentroid : 1;
bool ContainsSampleQualifier : 1;
// Compute workgroup dimensions // Compute workgroup dimensions
int WorkgroupSizeX = 1; 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