mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-04 15:18:15 +02:00
r600: add support for TXB instruction
makes testing other things easier - does not hang the card TODO: enable TEX dependency tracking in vertex programs
This commit is contained in:
parent
dc0777d3e3
commit
369669ff9a
1 changed files with 9 additions and 17 deletions
|
|
@ -3450,22 +3450,6 @@ GLboolean assemble_TEX(r700_AssemblerBase *pAsm)
|
|||
need_barrier = GL_TRUE;
|
||||
}
|
||||
|
||||
switch (pAsm->pILInst[pAsm->uiCurInst].Opcode)
|
||||
{
|
||||
case OPCODE_TEX:
|
||||
break;
|
||||
case OPCODE_TXB:
|
||||
radeon_error("do not support TXB yet\n");
|
||||
return GL_FALSE;
|
||||
break;
|
||||
case OPCODE_TXP:
|
||||
break;
|
||||
default:
|
||||
radeon_error("Internal error: bad texture op (not TEX)\n");
|
||||
return GL_FALSE;
|
||||
break;
|
||||
}
|
||||
|
||||
if (pAsm->pILInst[pAsm->uiCurInst].Opcode == OPCODE_TXP)
|
||||
{
|
||||
GLuint tmp = gethelpr(pAsm);
|
||||
|
|
@ -3644,7 +3628,15 @@ GLboolean assemble_TEX(r700_AssemblerBase *pAsm)
|
|||
|
||||
}
|
||||
|
||||
pAsm->D.dst.opcode = SQ_TEX_INST_SAMPLE;
|
||||
if(pAsm->pILInst[pAsm->uiCurInst].Opcode == OPCODE_TXB)
|
||||
{
|
||||
pAsm->D.dst.opcode = SQ_TEX_INST_SAMPLE_L;
|
||||
}
|
||||
else
|
||||
{
|
||||
pAsm->D.dst.opcode = SQ_TEX_INST_SAMPLE;
|
||||
}
|
||||
|
||||
pAsm->is_tex = GL_TRUE;
|
||||
if ( GL_TRUE == need_barrier )
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue