gridtable needs to be in the __constant memory space

This commit is contained in:
erwin coumans
2013-05-03 11:38:23 -07:00
parent 09ddf554e4
commit 26873328cf
2 changed files with 4 additions and 4 deletions

View File

@@ -450,7 +450,7 @@ typedef struct
} ConstBufferSSD;
static const int gridTable4x4[] =
static __constant const int gridTable4x4[] =
{
0,1,17,16,
1,2,18,19,
@@ -458,7 +458,7 @@ static const int gridTable4x4[] =
16,19,3,34
};
static const int gridTable8x8[] =
static __constant const int gridTable8x8[] =
{
0, 2, 3, 16, 17, 18, 19, 1,
66, 64, 80, 67, 82, 81, 65, 83,

View File

@@ -452,7 +452,7 @@ static const char* solverSetup2CL= \
"} ConstBufferSSD;\n"
"\n"
"\n"
"static const int gridTable4x4[] = \n"
"static __constant const int gridTable4x4[] = \n"
"{\n"
" 0,1,17,16,\n"
" 1,2,18,19,\n"
@@ -460,7 +460,7 @@ static const char* solverSetup2CL= \
" 16,19,3,34\n"
"};\n"
"\n"
"static const int gridTable8x8[] = \n"
"static __constant const int gridTable8x8[] = \n"
"{\n"
" 0, 2, 3, 16, 17, 18, 19, 1,\n"
" 66, 64, 80, 67, 82, 81, 65, 83,\n"