diff options
author | Ruiling Song <ruiling.song@intel.com> | 2014-07-28 09:19:30 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-07-28 14:25:27 +0800 |
commit | 730fa100586f6902a4129322c2d5a0f782472917 (patch) | |
tree | f0d614b0f1f583751aba84cec50322dfeb69b264 /utests/image_1D_buffer.cpp | |
parent | 88312c05e1aa4f79639eed7cc95390bde5c87c9a (diff) | |
download | beignet-730fa100586f6902a4129322c2d5a0f782472917.tar.gz |
utests: Fix a bug in image_1D_buffer.
Should use buffer_sz to clCreateBuffer().
Signed-off-by: Ruiling Song <ruiling.song@intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/image_1D_buffer.cpp')
-rw-r--r-- | utests/image_1D_buffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/utests/image_1D_buffer.cpp b/utests/image_1D_buffer.cpp index 734ab4ee..d8d761f0 100644 --- a/utests/image_1D_buffer.cpp +++ b/utests/image_1D_buffer.cpp @@ -52,7 +52,7 @@ void image_1D_buffer(void) sampler = clCreateSampler(ctx, false, CL_ADDRESS_NONE, CL_FILTER_NEAREST, &error ); OCL_ASSERT(error == CL_SUCCESS); - cl_mem result_buf = buf[0] = clCreateBuffer(ctx, 0, buffer_sz/sizeof(int32_t), NULL, &error); + cl_mem result_buf = buf[0] = clCreateBuffer(ctx, 0, buffer_sz, NULL, &error); OCL_ASSERT(error == CL_SUCCESS); OCL_SET_ARG(0, sizeof(cl_mem), &image1); |