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: Nicolas Capens <nicolascapens@google.com>
Kokoro-Result: kokoro <noreply+kokoro@google.com>
Tested-by: Alexis Hétu <sugoi@google.com>
diff --git a/src/Device/Renderer.cpp b/src/Device/Renderer.cpp
index 7667f96..f8fdefa 100644
--- a/src/Device/Renderer.cpp
+++ b/src/Device/Renderer.cpp
@@ -187,17 +187,6 @@
auto id = nextDrawID++;
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;
if(!context->multiSampleMask)