i965/vec4: Drop support for ATTR as an instruction destination.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 14 Jan 2016 04:33:17 +0000 (20:33 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Wed, 10 Feb 2016 01:01:45 +0000 (17:01 -0800)
This is no longer necessary...and it doesn't make much sense to
have inputs as destinations.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
src/mesa/drivers/dri/i965/brw_vec4.cpp

index 109080af9a6ef83ad8ae3bd5b0631975bf2c5197..0d8c104859d3298254858e96f5dbd14d72526dba 100644 (file)
@@ -1522,22 +1522,6 @@ vec4_visitor::lower_attributes_to_hw_regs(const int *attribute_map,
                                           bool interleaved)
 {
    foreach_block_and_inst(block, vec4_instruction, inst, cfg) {
-      /* We have to support ATTR as a destination for GL_FIXED fixup. */
-      if (inst->dst.file == ATTR) {
-         int grf = attribute_map[inst->dst.nr + inst->dst.reg_offset];
-
-         /* All attributes used in the shader need to have been assigned a
-          * hardware register by the caller
-          */
-         assert(grf != 0);
-
-        struct brw_reg reg = attribute_to_hw_reg(grf, interleaved);
-        reg.type = inst->dst.type;
-        reg.writemask = inst->dst.writemask;
-
-         inst->dst = reg;
-      }
-
       for (int i = 0; i < 3; i++) {
         if (inst->src[i].file != ATTR)
            continue;