anv/cmd_buffer: Reuse gen8 Cmd{Set, Reset}Event on gen7
authorVille Syrjälä <ville.syrjala@linux.intel.com>
Mon, 10 Jun 2019 11:21:05 +0000 (14:21 +0300)
committerJason Ekstrand <jason@jlekstrand.net>
Tue, 11 Jun 2019 21:25:07 +0000 (16:25 -0500)
commit6230bfeb656f1de598e8ed58cef548dc1c1781aa
tree2446fc4962501e2ddea710def03b7e83ad9d7047
parent39f4dc23a5af1b78a58905cf91d56441b59eb80a
anv/cmd_buffer: Reuse gen8 Cmd{Set, Reset}Event on gen7

Modern DXVK requires event support [1], but looks like it only
uses vkCmdSetEvent() + vkGetEventStatus(). So we can just
borrow the relevant code from gen8, leaving CmdWaitEvents still
unimplemented.

[1] https://github.com/doitsujin/dxvk/commit/8c3900c533d83d12c970b905183d17a1d3e8df1f

v2: Also move CmdWaitEvents into genX_cmd_buffer.c (Jason)

Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Reviewed-by: Jason Ekstrand <jason@jlekstrand.net>
src/intel/vulkan/gen7_cmd_buffer.c
src/intel/vulkan/gen8_cmd_buffer.c
src/intel/vulkan/genX_cmd_buffer.c