From: Matt Turner Date: Mon, 2 Nov 2015 00:22:29 +0000 (+0000) Subject: i965/fs: Handle type-V immediates in brw_reg_from_fs_reg(). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b99e1fd547035be9a6da5ee1b78b8a853c2ef3e0;p=mesa.git i965/fs: Handle type-V immediates in brw_reg_from_fs_reg(). 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 Reviewed-by: Kenneth Graunke --- diff --git a/src/mesa/drivers/dri/i965/brw_fs_generator.cpp b/src/mesa/drivers/dri/i965/brw_fs_generator.cpp index 16257a9fdc3..6e17f23f759 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"); }