radv: factor out eop event writing code. (v2)
authorDave Airlie <airlied@redhat.com>
Thu, 1 Jun 2017 04:24:34 +0000 (05:24 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 2 Jun 2017 02:48:56 +0000 (12:48 +1000)
commitad61eac250120eec44a305e6872a63c21ec683cc
tree1e95f527bb8ab062847af1826184b914fe3c3e9b
parent7205431e731107d6b71f15cb431dd459babdf8ed
radv: factor out eop event writing code. (v2)

In prep for GFX9 refactor some of the eop event writing code
out.

This changes behaviour, but aligns with what radeonsi does,
it does double emits on CIK/VI, whereas previously it only
did this on CIK.

v2: bump the size checks.

Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_cmd_buffer.c
src/amd/vulkan/radv_private.h
src/amd/vulkan/radv_query.c
src/amd/vulkan/si_cmd_buffer.c