[Mesa-dev] [PATCH 16/24] i965/fs: Handle type-V immediates in brw_reg_from_fs_reg().
Matt Turner
mattst88 at gmail.com
Mon Nov 2 16:29:26 PST 2015
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.
---
src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index ddeb528..654bb1c 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -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");
}
--
2.4.9
More information about the mesa-dev
mailing list