From: Tim Rowley Date: Wed, 13 Dec 2017 23:52:52 +0000 (-0600) Subject: swr/rast: Fix cache of API thread event manager X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=12adf2c8152d0500b2e1149ad0f5397c4955df86;p=mesa.git swr/rast: Fix cache of API thread event manager Reviewed-by: Bruce Cherniak --- diff --git a/src/gallium/drivers/swr/rasterizer/core/api.cpp b/src/gallium/drivers/swr/rasterizer/core/api.cpp index 25a3f348411..09b482dcc09 100644 --- a/src/gallium/drivers/swr/rasterizer/core/api.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/api.cpp @@ -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