added addrspace(3,4)->addrspace(0) convertion to ctx->GetElementPtrInst. Appears to work now.

This commit is contained in:
Evghenii
2014-01-08 19:31:28 +01:00
parent cc53fa4c14
commit 5f859e4885
4 changed files with 19 additions and 12 deletions

View File

@@ -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? */

View File

@@ -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];