Commit 3cfa8e28 by Alexis Hetu Committed by Alexis Hétu

Remove debug only code limiting the number of primitives

A test in dEQP was failing using SwANGLE in debug. The test was using a 1200x1200 grid -> 1,44M squares -> 2,88M triangles This was exceeding our hardcoded limit of 1 << 21 (2,097,152). Removing this code makes the test pass. Bug: b/152958809 Change-Id: I43fc3c0c9d78378911ab0238a908367ba310c09e Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/43668 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Reviewed-by: 's avatarNicolas Capens <nicolascapens@google.com> Kokoro-Result: kokoro <noreply+kokoro@google.com> Tested-by: 's avatarAlexis Hétu <sugoi@google.com>
parent 1cba0a9c
...@@ -187,17 +187,6 @@ void Renderer::draw(const sw::Context *context, VkIndexType indexType, unsigned ...@@ -187,17 +187,6 @@ void Renderer::draw(const sw::Context *context, VkIndexType indexType, unsigned
auto id = nextDrawID++; auto id = nextDrawID++;
MARL_SCOPED_EVENT("draw %d", id); MARL_SCOPED_EVENT("draw %d", id);
#ifndef NDEBUG
{
unsigned int minPrimitives = 1;
unsigned int maxPrimitives = 1 << 21;
if(count < minPrimitives || count > maxPrimitives)
{
return;
}
}
#endif
int ms = context->sampleCount; int ms = context->sampleCount;
if(!context->multiSampleMask) if(!context->multiSampleMask)
......
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