From: George Kyriazis Date: Wed, 7 Feb 2018 06:39:54 +0000 (-0600) Subject: swr/rast: Fix bug related to passing AR handle X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=da77eb55d54779fc19d7966032d73e74d8f83f91;p=mesa.git swr/rast: Fix bug related to passing AR handle We were passing a garbage handle. Let's not do that. 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 e5e9897daa2..99d3cd5bb01 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[pContext->NumWorkerThreads + 1]; + pCreateInfo->hArEventManager = pContext->pArContext[pContext->NumWorkerThreads]; #endif // State setup AFTER context is fully initialized