From a2299bfbbd6ed96ea4b529f90005d0242dbfeac0 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Thu, 8 Jan 2015 22:56:44 -0800 Subject: [PATCH] i965/fs: Handle U/UW-type immediates in the generator. --- 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 f7b8771f04d..3d5fa3555dc 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.30.2