mesa/src/vulkan/anti-lag-layer
Thomas H.P. Andersen f8741cc344 anti-lag: pass a proper dataSize
dataSize was passed as sizeof(uint64_t)

From spec:
dataSize is the size in bytes of the buffer pointed to by pData.
dataSize must be large enough to contain the result of each query

The NVK driver checks that the dataSize is large enough and hit an assert.

This patch changes dataSize to sizeof(struct query) * num_timestamps.

Reviewed-by: Daniel Schürmann <daniel@schuermann.dev>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36402>
2025-07-29 15:24:14 +00:00
..
anti_lag_layer.c anti-lag: pass a proper dataSize 2025-07-29 15:24:14 +00:00
anti_lag_layer.h
anti_lag_layer_interface.c
meson.build
ringbuffer.h
VkLayer_MESA_anti_lag.json