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:
Caio Oliveira 2025-08-09 13:59:39 -07:00 committed by Marge Bot
parent 5a34f676a5
commit fe2e2fabcd

View file

@ -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);
}