swr/rast: Fix bug related to passing AR handle
authorGeorge Kyriazis <george.kyriazis@intel.com>
Wed, 7 Feb 2018 06:39:54 +0000 (00:39 -0600)
committerGeorge Kyriazis <george.kyriazis@intel.com>
Fri, 16 Feb 2018 16:54:01 +0000 (10:54 -0600)
We were passing a garbage handle. Let's not do that.

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/api.cpp

index e5e9897..99d3cd5 100644 (file)
@@ -166,7 +166,7 @@ HANDLE SwrCreateContext(
 
 #if defined(KNOB_ENABLE_AR)
     // cache the API thread event manager, for use with sim layer
-    pCreateInfo->hArEventManager = pContext->pArContext[pContext->NumWorkerThreads + 1];
+    pCreateInfo->hArEventManager = pContext->pArContext[pContext->NumWorkerThreads];
 #endif
 
     // State setup AFTER context is fully initialized