summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorEric Anholt <[email protected]>2010-08-27 13:47:37 -0700
committerEric Anholt <[email protected]>2010-08-27 13:59:36 -0700
commit4229a93cc756b3ade02dcf93d806610f95497ad3 (patch)
treecfa553831a8ecd49654752a3e7fcf3403b4bb4ed /src/mesa/drivers
parent41e75cde2605e62ab691fd725a8a7259f40f5122 (diff)
i965: Fix the types of immediate integer values.
When we're trying to do integer ops, handing a float in doesn't help.
Diffstat (limited to 'src/mesa/drivers')
-rw-r--r--src/mesa/drivers/dri/i965/brw_fs.cpp4
1 files 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");