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

View File

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