From: Eric Anholt Date: Fri, 27 Aug 2010 20:47:37 +0000 (-0700) Subject: i965: Fix the types of immediate integer values. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=4229a93cc756b3ade02dcf93d806610f95497ad3;p=mesa.git i965: Fix the types of immediate integer values. When we're trying to do integer ops, handing a float in doesn't help. --- 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");