mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-26 12:10:22 +01:00
anv: ensure partially packed instructions are emitted in the pipeline
Any partially packed instructions should always be pre-packed by genX_pipeline.c Signed-off-by: Lionel Landwerlin <lionel.g.landwerlin@intel.com> Reviewed-by: Ivan Briano <ivan.briano@intel.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25109>
This commit is contained in:
parent
f5344a6b1c
commit
a023897cd3
1 changed files with 1 additions and 0 deletions
|
|
@ -1972,6 +1972,7 @@ _anv_combine_address(struct anv_batch *batch, void *location,
|
|||
*_dst = anv_batch_emit_dwords(batch, __anv_cmd_length(cmd)); \
|
||||
__builtin_expect(_dst != NULL, 1); \
|
||||
({ uint32_t _partial[__anv_cmd_length(cmd)]; \
|
||||
assert((pipeline)->state.len == __anv_cmd_length(cmd)); \
|
||||
__anv_cmd_pack(cmd)(batch, _partial, &name); \
|
||||
for (uint32_t i = 0; i < __anv_cmd_length(cmd); i++) { \
|
||||
((uint32_t *)_dst)[i] = _partial[i] | \
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue