swr/rast: Fix cache of API thread event manager
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 13 Dec 2017 23:52:52 +0000 (17:52 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Fri, 15 Dec 2017 16:57:01 +0000 (10:57 -0600)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/api.cpp

index 25a3f3484113e8d57393f3154306e6454a715218..09b482dcc09014320575e10d27d4898365216bad 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[16];
+    pCreateInfo->hArEventManager = pContext->pArContext[pContext->NumWorkerThreads + 1];
 #endif
 
     // State setup AFTER context is fully initialized