From 12adf2c8152d0500b2e1149ad0f5397c4955df86 Mon Sep 17 00:00:00 2001 From: Tim Rowley Date: Wed, 13 Dec 2017 17:52:52 -0600 Subject: [PATCH] swr/rast: Fix cache of API thread event manager Reviewed-by: Bruce Cherniak --- src/gallium/drivers/swr/rasterizer/core/api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2