lipi

Possible IL bug

Discussion created by lipi on Jul 16, 2009
Latest reply on Aug 16, 2009 by empty_knapsack
vObjIndex0 in scatter_IL

 

The following IL code from the scatter_IL example seems to write only half of the global buffer locations:

const CALchar* ILKernel =
"il_ps_2_0\n"
"dcl_input vObjIndex0\n" // vObjIndex starts at 0 and increments by 1.
"mov g[vObjIndex0.x], vObjIndex0.x\n"
"end\n";

When using global buffer preinitialized with 0xffffffff the output will be:

00000000 00000000 00000000 00000000
00000001 00000001 00000001 00000001
ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff
00000004 00000004 00000004 00000004
00000005 00000005 00000005 00000005
ffffffff ffffffff ffffffff ffffffff
ffffffff ffffffff ffffffff ffffffff

 

Outcomes