mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 11:48:06 +02:00
vulkan/overlay: fix timestamp query emission with no pipeline stats
The
if (!pipe && timestamp)
logic was broken. It should have been :
if (!pipe && !timestamp)
Let just drop this condition as the following code does the right
thing for all cases.
An error was appearing with the following variables :
VK_INSTANCE_LAYERS=VK_LAYER_MESA_overlay VK_LAYER_MESA_OVERLAY_CONFIG=gpu_timing
Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Fixes: ea7a6fa980 ("vulkan/overlay: add pipeline statistic & timestamps support")
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
This commit is contained in:
parent
eb85124a9f
commit
213d6527d4
1 changed files with 0 additions and 4 deletions
|
|
@ -1893,10 +1893,6 @@ static VkResult overlay_BeginCommandBuffer(
|
|||
return result;
|
||||
}
|
||||
|
||||
/* Primary command buffers with no queries. */
|
||||
if (!cmd_buffer_data->pipeline_query_pool && cmd_buffer_data->timestamp_query_pool)
|
||||
return device_data->vtable.BeginCommandBuffer(commandBuffer, pBeginInfo);
|
||||
|
||||
/* Otherwise record a begin query as first command. */
|
||||
VkResult result = device_data->vtable.BeginCommandBuffer(commandBuffer, pBeginInfo);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue