i965/fs: Handle type-V immediates in brw_reg_from_fs_reg().
authorMatt Turner <mattst88@gmail.com>
Mon, 2 Nov 2015 00:22:29 +0000 (00:22 +0000)
committerMatt Turner <mattst88@gmail.com>
Fri, 13 Nov 2015 19:27:51 +0000 (11:27 -0800)
We use brw_imm_v() to produce type-V immediates, which generates a
brw_reg with fs_reg's .file set to HW_REG. The next commit will rid us
of HW_REGs, so we need to handle BRW_REGISTER_TYPE_V in the IMM case.

Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_fs_generator.cpp

index 16257a9fdc373c65f7996c45b00d80d99c87870a..6e17f23f7590da94f77daf946e6e1cdd94b9c63d 100644 (file)
@@ -111,6 +111,9 @@ brw_reg_from_fs_reg(fs_inst *inst, fs_reg *reg, unsigned gen)
       case BRW_REGISTER_TYPE_VF:
          brw_reg = brw_imm_vf(reg->ud);
          break;
+      case BRW_REGISTER_TYPE_V:
+         brw_reg = brw_imm_v(reg->ud);
+         break;
       default:
         unreachable("not reached");
       }