mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 00:58:05 +02:00
nv50: indentation for TEX is a little overenthusiastic
This commit is contained in:
parent
3f66b72fdb
commit
0d54770cab
1 changed files with 23 additions and 18 deletions
|
|
@ -1187,28 +1187,28 @@ nv50_program_tx_insn(struct nv50_pc *pc, const union tgsi_full_token *tok)
|
|||
}
|
||||
break;
|
||||
case TGSI_OPCODE_TEX:
|
||||
{
|
||||
struct nv50_reg *t[4];
|
||||
struct nv50_program_exec *e;
|
||||
{
|
||||
struct nv50_reg *t[4];
|
||||
struct nv50_program_exec *e;
|
||||
|
||||
alloc_temp4(pc, t, 0);
|
||||
emit_mov(pc, t[0], src[0][0]);
|
||||
emit_mov(pc, t[1], src[0][1]);
|
||||
alloc_temp4(pc, t, 0);
|
||||
emit_mov(pc, t[0], src[0][0]);
|
||||
emit_mov(pc, t[1], src[0][1]);
|
||||
|
||||
e = exec(pc);
|
||||
e->inst[0] = 0xf6400000;
|
||||
set_long(pc, e);
|
||||
e->inst[1] |= 0x0000c004;
|
||||
set_dst(pc, t[0], e);
|
||||
emit(pc, e);
|
||||
e = exec(pc);
|
||||
e->inst[0] = 0xf6400000;
|
||||
set_long(pc, e);
|
||||
e->inst[1] |= 0x0000c004;
|
||||
set_dst(pc, t[0], e);
|
||||
emit(pc, e);
|
||||
|
||||
if (mask & (1 << 0)) emit_mov(pc, dst[0], t[0]);
|
||||
if (mask & (1 << 1)) emit_mov(pc, dst[1], t[1]);
|
||||
if (mask & (1 << 2)) emit_mov(pc, dst[2], t[2]);
|
||||
if (mask & (1 << 3)) emit_mov(pc, dst[3], t[3]);
|
||||
if (mask & (1 << 0)) emit_mov(pc, dst[0], t[0]);
|
||||
if (mask & (1 << 1)) emit_mov(pc, dst[1], t[1]);
|
||||
if (mask & (1 << 2)) emit_mov(pc, dst[2], t[2]);
|
||||
if (mask & (1 << 3)) emit_mov(pc, dst[3], t[3]);
|
||||
|
||||
free_temp4(pc, t);
|
||||
}
|
||||
free_temp4(pc, t);
|
||||
}
|
||||
break;
|
||||
case TGSI_OPCODE_XPD:
|
||||
temp = alloc_temp(pc, NULL);
|
||||
|
|
@ -1595,8 +1595,13 @@ nv50_program_validate_code(struct nv50_context *nv50, struct nv50_program *p)
|
|||
if (!upload)
|
||||
return;
|
||||
|
||||
NOUVEAU_ERR("-------\n");
|
||||
up = ptr = MALLOC(p->exec_size * 4);
|
||||
for (e = p->exec_head; e; e = e->next) {
|
||||
NOUVEAU_ERR("0x%08x\n", e->inst[0]);
|
||||
if (is_long(e))
|
||||
NOUVEAU_ERR("0x%08x\n", e->inst[1]);
|
||||
|
||||
*(ptr++) = e->inst[0];
|
||||
if (is_long(e))
|
||||
*(ptr++) = e->inst[1];
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue