mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-02-09 22:50:28 +01:00
nir/glsl_to_nir: ignore an instruction's dest if it hasn't any
Reviewed-by: Connor Abbott <connor.w.abbott@intel.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net>
This commit is contained in:
parent
e3f9c7829c
commit
475d9c32d1
1 changed files with 2 additions and 1 deletions
|
|
@ -1036,7 +1036,8 @@ nir_visitor::add_instr(nir_instr *instr, unsigned num_components)
|
|||
{
|
||||
nir_dest *dest = get_instr_dest(instr);
|
||||
|
||||
nir_ssa_dest_init(instr, dest, num_components, NULL);
|
||||
if (dest)
|
||||
nir_ssa_dest_init(instr, dest, num_components, NULL);
|
||||
|
||||
nir_instr_insert_after_cf_list(this->cf_node_list, instr);
|
||||
this->result = instr;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue