mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 08:50:13 +01:00
brw: Make sure copied instruction don't copy the list pointers
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36817>
This commit is contained in:
parent
5a34f676a5
commit
fe2e2fabcd
1 changed files with 1 additions and 0 deletions
|
|
@ -100,6 +100,7 @@ brw_inst::brw_inst(enum opcode opcode, uint8_t exec_width, const brw_reg &dst,
|
|||
brw_inst::brw_inst(const brw_inst &that)
|
||||
{
|
||||
memcpy((void*)this, &that, sizeof(that));
|
||||
brw_exec_node_init(this);
|
||||
initialize_sources(this, that.src, that.sources);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue