r600: Assert pointer is not null before dereferencing.
This commit is contained in:
parent
24a8b470ba
commit
226d981738
|
@ -1746,18 +1746,21 @@ GLboolean assemble_alu_src(R700ALUInstruction* alu_instruction_ptr,
|
||||||
switch (source_index)
|
switch (source_index)
|
||||||
{
|
{
|
||||||
case 0:
|
case 0:
|
||||||
|
assert(alu_instruction_ptr);
|
||||||
alu_instruction_ptr->m_Word0.f.src0_sel = src_sel;
|
alu_instruction_ptr->m_Word0.f.src0_sel = src_sel;
|
||||||
alu_instruction_ptr->m_Word0.f.src0_rel = src_rel;
|
alu_instruction_ptr->m_Word0.f.src0_rel = src_rel;
|
||||||
alu_instruction_ptr->m_Word0.f.src0_chan = src_chan;
|
alu_instruction_ptr->m_Word0.f.src0_chan = src_chan;
|
||||||
alu_instruction_ptr->m_Word0.f.src0_neg = src_neg;
|
alu_instruction_ptr->m_Word0.f.src0_neg = src_neg;
|
||||||
break;
|
break;
|
||||||
case 1:
|
case 1:
|
||||||
|
assert(alu_instruction_ptr);
|
||||||
alu_instruction_ptr->m_Word0.f.src1_sel = src_sel;
|
alu_instruction_ptr->m_Word0.f.src1_sel = src_sel;
|
||||||
alu_instruction_ptr->m_Word0.f.src1_rel = src_rel;
|
alu_instruction_ptr->m_Word0.f.src1_rel = src_rel;
|
||||||
alu_instruction_ptr->m_Word0.f.src1_chan = src_chan;
|
alu_instruction_ptr->m_Word0.f.src1_chan = src_chan;
|
||||||
alu_instruction_ptr->m_Word0.f.src1_neg = src_neg;
|
alu_instruction_ptr->m_Word0.f.src1_neg = src_neg;
|
||||||
break;
|
break;
|
||||||
case 2:
|
case 2:
|
||||||
|
assert(alu_instruction_ptr);
|
||||||
alu_instruction_ptr->m_Word1_OP3.f.src2_sel = src_sel;
|
alu_instruction_ptr->m_Word1_OP3.f.src2_sel = src_sel;
|
||||||
alu_instruction_ptr->m_Word1_OP3.f.src2_rel = src_rel;
|
alu_instruction_ptr->m_Word1_OP3.f.src2_rel = src_rel;
|
||||||
alu_instruction_ptr->m_Word1_OP3.f.src2_chan = src_chan;
|
alu_instruction_ptr->m_Word1_OP3.f.src2_chan = src_chan;
|
||||||
|
|
Loading…
Reference in New Issue