Browse Source

vc4: Re-add R4 to the "any" register class.

I screwed this up in fdad4d2402 which was
supposed to be making this code more maintainable.  What's amazing is
multithreaded FS showed the wins it did despite this bug.

shader-db results:
total instructions in shared programs: 103535 -> 100548 (-2.89%)
instructions in affected programs:     83794 -> 80807 (-3.56%)
tags/17.0-branchpoint
Eric Anholt 8 years ago
parent
commit
1f0ba902f0
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      src/gallium/drivers/vc4/vc4_register_allocate.c

+ 2
- 0
src/gallium/drivers/vc4/vc4_register_allocate.c View File

@@ -141,6 +141,8 @@ vc4_alloc_reg_set(struct vc4_context *vc4)
for (int i = 0; i < 2; i++) {
ra_class_add_reg(vc4->regs, vc4->reg_class_r4_or_a[i],
ACC_INDEX + 4);
ra_class_add_reg(vc4->regs, vc4->reg_class_any[i],
ACC_INDEX + 4);
}

/* A/B */

Loading…
Cancel
Save