[Mesa-dev] [PATCH 2/4] i965/fs: Handle U/UW-type immediates in the generator.

Matt Turner mattst88 at gmail.com
Thu Jan 8 22:59:20 PST 2015


---
 src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
index 7b4ac8d..d98a696 100644
--- a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
+++ b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp
@@ -92,6 +92,12 @@ brw_reg_from_fs_reg(fs_reg *reg)
       case BRW_REGISTER_TYPE_UD:
 	 brw_reg = brw_imm_ud(reg->fixed_hw_reg.dw1.ud);
 	 break;
+      case BRW_REGISTER_TYPE_W:
+	 brw_reg = brw_imm_w(reg->fixed_hw_reg.dw1.d);
+	 break;
+      case BRW_REGISTER_TYPE_UW:
+	 brw_reg = brw_imm_uw(reg->fixed_hw_reg.dw1.ud);
+	 break;
       case BRW_REGISTER_TYPE_VF:
          brw_reg = brw_imm_vf(reg->fixed_hw_reg.dw1.ud);
          break;
-- 
2.0.4



More information about the mesa-dev mailing list