radv: fix pipeline statistics end query on compute queue
authorDave Airlie <airlied@redhat.com>
Thu, 28 Dec 2017 06:31:48 +0000 (16:31 +1000)
committerDave Airlie <airlied@redhat.com>
Thu, 28 Dec 2017 09:31:01 +0000 (19:31 +1000)
commitec1edd0fd29e50fae4aadde152d534a371ba8f6b
tree7f168865b22e9a45487ce0311ef7c8b1536303b5
parent38e4467e99ad4ea6661ef0cfc54a9942bb872f66
radv: fix pipeline statistics end query on compute queue

It's legal to a pipeline stat query on a compute queue,
but we'd emit the wrong packet here. This should fix it to emit
the correct packet.

Noticed while inspecting the mpv hang.

Fixes: ad61eac250 (radv: factor out eop event writing code. (v2))
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/amd/vulkan/radv_query.c