diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-11-12 22:53:24 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2013-11-13 15:39:19 +0800 |
commit | 8f9d97782e49cc9f6e686a8e86ced52cfb7798e6 (patch) | |
tree | 337df6695f24f1678401af9801a57f99fb313f74 /kernels/compiler_global_constant.cl | |
parent | bb456fb3dbcc151e8dca933d710bbf5c2bf38d9b (diff) | |
download | beignet-8f9d97782e49cc9f6e686a8e86ced52cfb7798e6.tar.gz |
GBE: fix the constant data allocation.
Need to keep consistency between the constant data
allocation and the constant register allocation.
So we need to skip the unused constant data at the
constant data allocation stage.
To avoid possible mismatching, add a new assert in
the constant register(address) allocation stage to
make sure the address register match the eaxct constant
data.
Also modify the constant utest slightly to hit this
code path.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Ruiling Song <ruiling.song@intel.com>
Diffstat (limited to 'kernels/compiler_global_constant.cl')
-rw-r--r-- | kernels/compiler_global_constant.cl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernels/compiler_global_constant.cl b/kernels/compiler_global_constant.cl index 53e24b3e..c0e23d11 100644 --- a/kernels/compiler_global_constant.cl +++ b/kernels/compiler_global_constant.cl @@ -1,5 +1,5 @@ constant int m[3] = {71,72,73}; -constant int n = 1; +const constant int n = 1; constant int o[3] = {3, 2, 1}; constant int4 a= {1, 2, 3, 4}; |