[Mesa-dev] [PATCH 21/31] swr/rast: Fix bug related to passing AR handle
George Kyriazis
george.kyriazis at intel.com
Tue Feb 13 22:42:39 UTC 2018
We were passing a garbage handle. Let's not do that.
---
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 5e27e4d..f45da96 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.7.4
More information about the mesa-dev
mailing list