diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-02-21 17:09:51 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-04-10 14:52:33 +0800 |
commit | 12f08a61b5933baf9ceb24609b95cb1cb85d88c8 (patch) | |
tree | 8f2c170525bb23bcf3069b535b78369ef00ab820 /utests/utest_helper.hpp | |
parent | c8d17cda7725791e346270563d13d1154605a9b9 (diff) | |
download | beignet-12f08a61b5933baf9ceb24609b95cb1cb85d88c8.tar.gz |
Use new OCL1.2 API rather than those deprecated API.
Use clCreateImage to replace the old API clCreateImage2D.
It will silent the compiler warnings.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: Homer Hsing <homer.xing@intel.com>
Diffstat (limited to 'utests/utest_helper.hpp')
-rw-r--r-- | utests/utest_helper.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utests/utest_helper.hpp b/utests/utest_helper.hpp index 7987e751..112c74d5 100644 --- a/utests/utest_helper.hpp +++ b/utests/utest_helper.hpp @@ -64,10 +64,10 @@ if (status != CL_SUCCESS) OCL_THROW_ERROR(FN, status); \ } while (0) -#define OCL_CREATE_IMAGE(IMAGE, FLAGS, FORMAT, W, H, PITCH, DATA) \ +#define OCL_CREATE_IMAGE(IMAGE, FLAGS, FORMAT, DESC, DATA) \ do { \ cl_int status; \ - IMAGE = clCreateImage2D(ctx, FLAGS, FORMAT, W, H, PITCH, DATA, &status);\ + IMAGE = clCreateImage(ctx, FLAGS, FORMAT, DESC, DATA, &status);\ if (status != CL_SUCCESS) OCL_THROW_ERROR(FN, status); \ } while (0) |