Browse Source

tgsi: check for SOA dependencies in SSE and PPC code generators

Fall back to interpreter for now.  This doesn't happen very often.
tags/mesa_7_5_1
Brian Paul 16 years ago
parent
commit
ce723d8d8b
2 changed files with 8 additions and 0 deletions
  1. 4
    0
      src/gallium/auxiliary/tgsi/tgsi_ppc.c
  2. 4
    0
      src/gallium/auxiliary/tgsi/tgsi_sse2.c

+ 4
- 0
src/gallium/auxiliary/tgsi/tgsi_ppc.c View File

@@ -1112,6 +1112,10 @@ emit_instruction(struct gen_context *gen,
if (inst->Instruction.Saturate != TGSI_SAT_NONE)
return 0;

/* need to use extra temps to fix SOA dependencies : */
if (tgsi_check_soa_dependencies(inst))
return FALSE;

switch (inst->Instruction.Opcode) {
case TGSI_OPCODE_MOV:
case TGSI_OPCODE_SWZ:

+ 4
- 0
src/gallium/auxiliary/tgsi/tgsi_sse2.c View File

@@ -1506,6 +1506,10 @@ emit_instruction(
if (inst->Instruction.Saturate != TGSI_SAT_NONE)
return FALSE;

/* need to use extra temps to fix SOA dependencies : */
if (tgsi_check_soa_dependencies(inst))
return FALSE;

switch (inst->Instruction.Opcode) {
case TGSI_OPCODE_ARL:
FOR_EACH_DST0_ENABLED_CHANNEL( *inst, chan_index ) {

Loading…
Cancel
Save