mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 07:28:11 +02:00
v3dv: asserts push constants data is valid
When pushing constants. This fixes an issue detected by static analyzer: null pointer passed to 1st parameter expecting 'nonnull'. Signed-off-by: Juan A. Suarez Romero <jasuarez@igalia.com> Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/34050>
This commit is contained in:
parent
665df034e7
commit
6d6a3ab679
1 changed files with 1 additions and 0 deletions
|
|
@ -3904,6 +3904,7 @@ v3dv_CmdPushConstants(VkCommandBuffer commandBuffer,
|
|||
{
|
||||
V3DV_FROM_HANDLE(v3dv_cmd_buffer, cmd_buffer, commandBuffer);
|
||||
|
||||
assert(cmd_buffer->state.push_constants_data);
|
||||
if (!memcmp((uint8_t *) cmd_buffer->state.push_constants_data + offset,
|
||||
pValues, size)) {
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue