convert pointers in function arguments to addrspace(3). still there is poroblem with shared memory. need to figure out which one ..

This commit is contained in:
Evghenii
2014-01-08 15:12:32 +01:00
parent d3dc5e0df1
commit 69c5e0aae7
3 changed files with 22 additions and 8 deletions

View File

@@ -506,9 +506,10 @@ 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.
#ifdef __NVPTX__
#if 1 //def __NVPTX__
uniform int * uniform tileLightIndices = uniform new uniform int [MAX_LIGHTS];
#else
#define MALLOC
#else /* shared memory doesn't full work... why? */
uniform int tileLightIndices[MAX_LIGHTS]; // Light list for the tile
#endif
uniform int numTileLights =
@@ -532,7 +533,7 @@ RenderTile(uniform int num_groups_x, uniform int num_groups_y,
cameraProj_00, cameraProj_11, cameraProj_22, cameraProj_32,
tileLightIndices, numTileLights, visualizeLightCount,
framebuffer_r, framebuffer_g, framebuffer_b);
#ifdef __NVPTX__
#ifdef MALLOC
delete tileLightIndices;
#endif
}