hasvk: don't leave undefined values in exec->syncobj_values

This is the Hasvk version of Anv's:
  ad6a036a68 ("anv: don't leave undefined values in exec->syncobj_values")

Reviewed-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com>
Signed-off-by: Paulo Zanoni <paulo.r.zanoni@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20800>
(cherry picked from commit 80196aaa5b)
This commit is contained in:
Paulo Zanoni 2023-01-17 14:28:37 -08:00 committed by Dylan Baker
parent a9156d823b
commit 5a22e9cf4c
2 changed files with 2 additions and 2 deletions

View file

@ -5674,7 +5674,7 @@
"description": "hasvk: don't leave undefined values in exec->syncobj_values",
"nominated": false,
"nomination_type": null,
"resolution": 4,
"resolution": 1,
"main_sha": null,
"because_sha": null
},

View file

@ -1616,7 +1616,7 @@ anv_execbuf_add_syncobj(struct anv_device *device,
.handle = syncobj,
.flags = flags,
};
if (timeline_value)
if (exec->syncobj_values)
exec->syncobj_values[exec->syncobj_count] = timeline_value;
exec->syncobj_count++;