mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 13:48:06 +02:00
vulkan/overlay: fix command buffer stats
Begin/Reset of command buffer both reset the content of the command buffer. Don't forget to wipe them on Begin. Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Fixes:4438188f49("vulkan/overlay: record stats in command buffers and accumulate on exec/submit") Acked-by: Eric Engestrom <eric.engestrom@intel.com> Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl> (cherry picked from commit8f0f727fe4)
This commit is contained in:
parent
e42399f4de
commit
5666f3b891
1 changed files with 2 additions and 0 deletions
|
|
@ -1857,6 +1857,8 @@ static VkResult overlay_BeginCommandBuffer(
|
|||
struct command_buffer_data *cmd_buffer_data = FIND_CMD_BUFFER_DATA(commandBuffer);
|
||||
struct device_data *device_data = cmd_buffer_data->device;
|
||||
|
||||
memset(&cmd_buffer_data->stats, 0, sizeof(cmd_buffer_data->stats));
|
||||
|
||||
/* We don't record any query in secondary command buffers, just make sure
|
||||
* we have the right inheritance.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue