anv/query: Fix the location of timestamp availability
authorJason Ekstrand <jason.ekstrand@intel.com>
Wed, 15 Mar 2017 00:52:12 +0000 (17:52 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Thu, 16 Mar 2017 22:08:17 +0000 (15:08 -0700)
Reviewed-By: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Cc: "17.0 13.0" <mesa-dev@lists.freedesktop.org>
src/intel/vulkan/genX_query.c

index 830f86704612fdf293b5ccc710a296667e58bfc2..4e6638a0aeb09578d3ec1754009f97ab67a95aa6 100644 (file)
@@ -327,7 +327,7 @@ void genX(CmdWriteTimestamp)(
       break;
    }
 
-   emit_query_availability(cmd_buffer, &pool->bo, query + 16);
+   emit_query_availability(cmd_buffer, &pool->bo, offset + 16);
 }
 
 #if GEN_GEN > 7 || GEN_IS_HASWELL