Commit 462e9c5d by Chris Forbes

Plumb depth format through to PixelProcessor::State

I need this in order to support depth formats that arent D32F. Bug: b/128363727 Change-Id: I7016351207e433e668053ebaf4dbeb9f2f7936f2 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/26888Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Presubmit-Ready: Chris Forbes <chrisforbes@google.com>
parent 82cc0cb0
......@@ -403,6 +403,7 @@ namespace sw
state.depthTestActive = true;
state.depthCompareMode = context->depthCompareMode;
state.quadLayoutDepthBuffer = Surface::hasQuadLayout(context->depthBuffer->getFormat());
state.depthFormat = context->depthBuffer->getFormat();
}
state.occlusionEnabled = context->occlusionEnabled;
......
......@@ -76,6 +76,7 @@ namespace sw
TransparencyAntialiasing transparencyAntialiasing;
bool centroid;
bool frontFaceCCW;
VkFormat depthFormat;
Sampler::State sampler[TEXTURE_IMAGE_UNITS];
};
......
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