From b99e1fd547035be9a6da5ee1b78b8a853c2ef3e0 Mon Sep 17 00:00:00 2001 From: Matt Turner Date: Mon, 2 Nov 2015 00:22:29 +0000 Subject: 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 --- src/mesa/drivers/dri/i965/brw_fs_generator.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src') 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"); } -- cgit v1.2.3