From 4229a93cc756b3ade02dcf93d806610f95497ad3 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 27 Aug 2010 13:47:37 -0700 Subject: [PATCH] i965: Fix the types of immediate integer values. When we're trying to do integer ops, handing a float in doesn't help. --- src/mesa/drivers/dri/i965/brw_fs.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index cf02b214f5c..98d5d659408 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1422,10 +1422,10 @@ static struct brw_reg brw_reg_from_fs_reg(fs_reg *reg) brw_reg = brw_imm_f(reg->imm.f); break; case BRW_REGISTER_TYPE_D: - brw_reg = brw_imm_f(reg->imm.i); + brw_reg = brw_imm_d(reg->imm.i); break; case BRW_REGISTER_TYPE_UD: - brw_reg = brw_imm_f(reg->imm.u); + brw_reg = brw_imm_ud(reg->imm.u); break; default: assert(!"not reached"); -- 2.30.2