[Mesa-dev] [PATCH 18/20] swr/rast: Fix cache of API thread event manager
Tim Rowley
timothy.o.rowley at intel.com
Thu Dec 14 21:34:58 UTC 2017
---
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 25a3f34841..09b482dcc0 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.14.1
More information about the mesa-dev
mailing list