projects
/
profile
/
ivi
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5480a6b
)
Cell: trivial clean-ups
author
Ian Romanick
<idr@us.ibm.com>
Tue, 19 Feb 2008 02:51:57 +0000
(18:51 -0800)
committer
Ian Romanick
<idr@us.ibm.com>
Tue, 19 Feb 2008 16:41:04 +0000
(08:41 -0800)
src/gallium/drivers/cell/spu/spu_exec.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/cell/spu/spu_exec.c
b/src/gallium/drivers/cell/spu/spu_exec.c
index
109540b
..
0eb5ea1
100644
(file)
--- a/
src/gallium/drivers/cell/spu/spu_exec.c
+++ b/
src/gallium/drivers/cell/spu/spu_exec.c
@@
-146,17
+146,13
@@
spu_exec_machine_init(struct spu_exec_machine *mach,
struct spu_sampler *samplers,
unsigned processor)
{
- qword zero;
- qword not_zero;
- uint i;
+ const qword zero = si_il(0);
+ const qword not_zero = si_il(~0);
mach->Samplers = samplers;
mach->Processor = processor;
mach->Addrs = &mach->Temps[TGSI_EXEC_NUM_TEMPS];
- zero = si_xor(zero, zero);
- not_zero = si_xori(zero, 0xff);
-
/* Setup constants. */
mach->Temps[TEMP_0_I].xyzw[TEMP_0_C].q = zero;
mach->Temps[TEMP_FF_I].xyzw[TEMP_FF_C].q = not_zero;