summaryrefslogtreecommitdiff
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorGeorge Kyriazis <george.kyriazis@intel.com>2018-02-07 00:39:54 -0600
committerGeorge Kyriazis <george.kyriazis@intel.com>2018-02-16 10:54:01 -0600
commitda77eb55d54779fc19d7966032d73e74d8f83f91 (patch)
tree90b2929b6a20d6266369b1638426933d59d1a7f4 /src/gallium/drivers
parent48d62409f82050738487f15878a740f2695d8128 (diff)
swr/rast: Fix bug related to passing AR handle
We were passing a garbage handle. Let's not do that. Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
Diffstat (limited to 'src/gallium/drivers')
-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 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