added addrspace(3,4)->addrspace(0) convertion to ctx->GetElementPtrInst. Appears to work now.
This commit is contained in:
@@ -506,7 +506,7 @@ RenderTile(uniform int num_groups_x, uniform int num_groups_y,
|
||||
uniform float cameraProj_32 = inputHeader.cameraProj[3][2];
|
||||
|
||||
// Light intersection: figure out which lights illuminate this tile.
|
||||
#if 1 //def __NVPTX__
|
||||
#if 1
|
||||
uniform int * uniform tileLightIndices = uniform new uniform int [MAX_LIGHTS];
|
||||
#define MALLOC
|
||||
#else /* shared memory doesn't full work... why? */
|
||||
|
||||
@@ -328,7 +328,7 @@ volume_task(uniform float density[], uniform int _nVoxels[3],
|
||||
{
|
||||
if (taskIndex >= taskCount) return;
|
||||
|
||||
#if 0 /* cannot pass shared memory pointers to functions, need to find a way to solve this one :S */
|
||||
#if 1 /* cannot pass shared memory pointers to functions, need to find a way to solve this one :S */
|
||||
uniform int nVoxels[3];
|
||||
nVoxels[0] = _nVoxels[0];
|
||||
nVoxels[1] = _nVoxels[1];
|
||||
|
||||
Reference in New Issue
Block a user