summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAlok Hota <[email protected]>2018-09-12 14:18:28 -0500
committerAlok Hota <[email protected]>2019-04-30 19:48:12 +0000
commit4c68acba3749b84c95c0e8751a00eeb1e820d6f4 (patch)
tree8504c1f67f038f6f0eacb100b3aef9c611f39ff8 /src
parente7f381e9ca2b435481a86e4fb45ec13a12ce6d77 (diff)
swr/rast: early exit on empty triangle mask
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/binner.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gallium/drivers/swr/rasterizer/core/binner.cpp b/src/gallium/drivers/swr/rasterizer/core/binner.cpp
index 7731e997ea5..6dc703c3fa8 100644
--- a/src/gallium/drivers/swr/rasterizer/core/binner.cpp
+++ b/src/gallium/drivers/swr/rasterizer/core/binner.cpp
@@ -1027,6 +1027,12 @@ void SIMDCALL BinTrianglesImpl(DRAW_CONTEXT* pDC,
endBinTriangles:
+ if (!triMask)
+ {
+ RDTSC_END(FEBinTriangles, 1);
+ return;
+ }
+
// Send surviving triangles to the line or point binner based on fill mode
if (rastState.fillMode == SWR_FILLMODE_WIREFRAME)
{