From da77eb55d54779fc19d7966032d73e74d8f83f91 Mon Sep 17 00:00:00 2001 From: George Kyriazis Date: Wed, 7 Feb 2018 00:39:54 -0600 Subject: [PATCH] swr/rast: Fix bug related to passing AR handle We were passing a garbage handle. Let's not do that. 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 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 -- 2.30.2