gridtable needs to be in the __constant memory space
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user