GLboolean next_ins(r700_AssemblerBase *pAsm)
{
struct prog_instruction *pILInst = &(pAsm->pILInst[pAsm->uiCurInst]);
- uint index;
if( GL_TRUE == IsTex(pILInst->Opcode) )
{
if(pAsm->D.dst.rtype == DST_REG_OUT)
{
- if (pAsm->starting_export_register_number >= pAsm->D.dst.reg) {
- index = 0;
- } else {
- index = pAsm->D.dst.reg - pAsm->starting_export_register_number;
- }
-
if(pAsm->D.dst.op3)
{
// There is no mask for OP3 instructions, so all channels are written
- pAsm->pucOutMask[index] = 0xF;
+ pAsm->pucOutMask[pAsm->D.dst.reg - pAsm->starting_export_register_number] = 0xF;
}
else
{
- pAsm->pucOutMask[index]
+ pAsm->pucOutMask[pAsm->D.dst.reg - pAsm->starting_export_register_number]
|= (unsigned char)pAsm->pILInst[pAsm->uiCurInst].DstReg.WriteMask;
}
}