aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorTim Rowley <[email protected]>2017-12-13 17:52:52 -0600
committerTim Rowley <[email protected]>2017-12-15 10:57:01 -0600
commit12adf2c8152d0500b2e1149ad0f5397c4955df86 (patch)
tree4ee44e382b95958fcc98a0953fad2ca6140b0eea /src/gallium
parentc68b2d5c79239e721d8825e373a02fc843d15f6a (diff)
swr/rast: Fix cache of API thread event manager
Reviewed-by: Bruce Cherniak <[email protected]>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/swr/rasterizer/core/api.cpp2
1 files changed, 1 insertions, 1 deletions
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