swr/rast: Cache eventmanager

Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
This commit is contained in:
Tim Rowley
2017-11-07 13:50:11 -06:00
parent 395a298fa5
commit bc356b0fc0
3 changed files with 9 additions and 0 deletions

View File

@@ -29,6 +29,7 @@
#include "common/os.h"
#include "gen_ar_event.hpp"
#include "eventmanager.h"
namespace ArchRast
{

View File

@@ -143,6 +143,11 @@ HANDLE SwrCreateContext(
#endif
}
#if defined(KNOB_ENABLE_AR)
// cache the API thread event manager, for use with sim layer
pCreateInfo->hArEventManager = pContext->pArContext[16];
#endif
// State setup AFTER context is fully initialized
SetupDefaultState(pContext);

View File

@@ -213,6 +213,9 @@ struct SWR_CREATECONTEXT_INFO
// Output: size required memory passed to for SwrSaveState / SwrRestoreState
size_t contextSaveSize;
// ArchRast event manager.
HANDLE hArEventManager;
// Input (optional): Threading info that overrides any set KNOB values.
SWR_THREADING_INFO* pThreadInfo;