diff options
author | Ruiling Song <ruiling.song@intel.com> | 2016-04-07 14:39:55 +0800 |
---|---|---|
committer | Yang Rong <rong.r.yang@intel.com> | 2016-04-27 11:21:33 +0800 |
commit | 55f4f2327f9613e2e8fe307627ae584fc3206f64 (patch) | |
tree | 3796cdb4dccf8eb5c18dd2087a81dd11abea61a3 | |
parent | defdab3771d8fcf171874bfde555355a46f3d8bc (diff) | |
download | beignet-55f4f2327f9613e2e8fe307627ae584fc3206f64.tar.gz |
runtime: prog->global_data may get 64bit address
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Pan Xiuli <xiuli.pan@intel.com>
-rw-r--r-- | src/cl_program.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/cl_program.c b/src/cl_program.c index 078ed043..ea1afdd5 100644 --- a/src/cl_program.c +++ b/src/cl_program.c @@ -210,6 +210,7 @@ static cl_int get_program_global_data(cl_program prog) { prog->global_data = cl_buffer_alloc_userptr(bufmgr, "program global data", p, alignedSz, 0); cl_buffer_set_softpin_offset(prog->global_data, (size_t)p); + cl_buffer_set_bo_use_full_range(prog->global_data, 1); uint32_t reloc_count = interp_program_get_global_reloc_count(prog->opaque); if (reloc_count > 0) { |