More data races fixed
A few more variables were causing possible data races,
so they were changed to AtomicInt variables.
Change-Id: Icf233482528e086fc58f6919232ab2e3f0784689
Reviewed-on: https://swiftshader-review.googlesource.com/12368
Tested-by: Alexis Hétu <sugoi@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
diff --git a/src/Renderer/QuadRasterizer.cpp b/src/Renderer/QuadRasterizer.cpp
index f88c39e..4721591 100644
--- a/src/Renderer/QuadRasterizer.cpp
+++ b/src/Renderer/QuadRasterizer.cpp
@@ -49,6 +49,7 @@
constants = *Pointer<Pointer<Byte>>(data + OFFSET(DrawData,constants));
occlusion = 0;
+ int clusterCount = Renderer::getClusterCount();
Do
{
@@ -290,6 +291,8 @@
}
}
+ int clusterCount = Renderer::getClusterCount();
+
for(int index = 0; index < RENDERTARGETS; index++)
{
if(state.colorWriteActive(index))