Updated header file to version 67 (xglResetFences)
Added changes to fence semantics for this revision.
tests: Create contructor with no args
intel: Added Tony's patch for ResetFences support in the ICD.
v2: reset fence in intel_fence_seq_seqno(). We need the reset to make
xglQueueWaitIdle() work (olv)
layers: Added ResetFences support to MemTracker
Add new entrypoint and fence semantics for fence status flags.
layers: Completed changed fence semantics for MemTracker
Completed the changes for xgl header revision 67, adding resetFences.
layers: Changes to support xglResetFences
v2: squashed into one commit (olv)
diff --git a/tools/glave/scripts/vk_generate.py b/tools/glave/scripts/vk_generate.py
index 87a42b5..9cea651 100755
--- a/tools/glave/scripts/vk_generate.py
+++ b/tools/glave/scripts/vk_generate.py
@@ -1750,6 +1750,17 @@
wf_body.append(' returnValue = manually_handle_xglWaitForFences(pPacket);')
return "\n".join(wf_body)
+ def _gen_replay_reset_fences(self):
+ wf_body = []
+ wf_body.append(' XGL_FENCE *pFence = GLV_NEW_ARRAY(XGL_FENCE, pPacket->fenceCount);')
+ wf_body.append(' for (uint32_t i = 0; i < pPacket->fenceCount; i++)')
+ wf_body.append(' {')
+ wf_body.append(' *(pFence + i) = m_objMapper.remap(*(pPacket->pFences + i));')
+ wf_body.append(' }')
+ wf_body.append(' replayResult = m_xglFuncs.real_xglResetFences(m_objMapper.remap(pPacket->device), pPacket->fenceCount, pFence);')
+ wf_body.append(' GLV_DELETE(pFence);')
+ return "\n".join(wf_body)
+
def _gen_replay_wsi_associate_connection(self):
wac_body = []
wac_body.append(' returnValue = manually_handle_xglWsiX11AssociateConnection(pPacket);')
@@ -1840,6 +1851,7 @@
'GetMultiGpuCompatibility': self._gen_replay_get_multi_gpu_compatibility,
'DestroyObject': self._gen_replay_destroy_object,
'WaitForFences': self._gen_replay_wait_for_fences,
+ 'ResetFences': self._gen_replay_reset_fences,
'WsiX11AssociateConnection': self._gen_replay_wsi_associate_connection,
'WsiX11GetMSC': self._gen_replay_wsi_get_msc,
'WsiX11CreatePresentableImage': self._gen_replay_wsi_create_presentable_image,