OSDN Git Service
(root)
/
android-x86
/
external-mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
41e75cd
)
i965: Fix the types of immediate integer values.
author
Eric Anholt
<eric@anholt.net>
Fri, 27 Aug 2010 20:47:37 +0000
(13:47 -0700)
committer
Eric Anholt
<eric@anholt.net>
Fri, 27 Aug 2010 20:59:36 +0000
(13:59 -0700)
When we're trying to do integer ops, handing a float in doesn't help.
src/mesa/drivers/dri/i965/brw_fs.cpp
patch
|
blob
|
history
diff --git
a/src/mesa/drivers/dri/i965/brw_fs.cpp
b/src/mesa/drivers/dri/i965/brw_fs.cpp
index
cf02b21
..
98d5d65
100644
(file)
--- 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");