i965/vec4: fix register allocation for 64-bit undef sources
Reviewed-by: Francisco Jerez <currojerez@riseup.net> Reviewed-by: Matt Turner <mattst88@gmail.com>
This commit is contained in:
parent
21cf6f14d5
commit
619271ec87
|
@ -2080,7 +2080,8 @@ vec4_visitor::nir_emit_texture(nir_tex_instr *instr)
|
||||||
void
|
void
|
||||||
vec4_visitor::nir_emit_undef(nir_ssa_undef_instr *instr)
|
vec4_visitor::nir_emit_undef(nir_ssa_undef_instr *instr)
|
||||||
{
|
{
|
||||||
nir_ssa_values[instr->def.index] = dst_reg(VGRF, alloc.allocate(1));
|
nir_ssa_values[instr->def.index] =
|
||||||
|
dst_reg(VGRF, alloc.allocate(DIV_ROUND_UP(instr->def.bit_size, 32)));
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue