From ae9ac47c748f88fe3ac77d16346389a6c8afdc00 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 18 May 2015 17:04:32 -0700 Subject: [PATCH] vk: Make timestamp command work correctly This was using the wrong timestamp register and needs to write a 64 bit value. --- src/vulkan/device.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/vulkan/device.c b/src/vulkan/device.c index 5cefc0ade6c..09dddb766c2 100644 --- a/src/vulkan/device.c +++ b/src/vulkan/device.c @@ -2800,7 +2800,7 @@ void anv_CmdResetQueryPool( stub(); } -#define TIMESTAMP 0x44070 +#define TIMESTAMP 0x2358 void anv_CmdWriteTimestamp( VkCmdBuffer cmdBuffer, @@ -2817,6 +2817,9 @@ void anv_CmdWriteTimestamp( anv_batch_emit(&cmd_buffer->batch, GEN8_MI_STORE_REGISTER_MEM, .RegisterAddress = TIMESTAMP, .MemoryAddress = { bo, buffer->offset + destOffset }); + anv_batch_emit(&cmd_buffer->batch, GEN8_MI_STORE_REGISTER_MEM, + .RegisterAddress = TIMESTAMP + 4, + .MemoryAddress = { bo, buffer->offset + destOffset + 4 }); break; case VK_TIMESTAMP_TYPE_BOTTOM: -- 2.30.2