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 e5e9897daa22a3b17c3db39a13a07e4efd598a42..99d3cd5bb0125821a8ffd4b457a4849445ad5a3a 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