diff options
author | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-09-13 13:56:54 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@linux.intel.com> | 2013-09-18 14:45:43 +0800 |
commit | 658f1ae2358e498e0b7e242269bd48b76bd5e34c (patch) | |
tree | 513c21905d9d6979a989c25928802868709a36f3 /utests/compiler_fill_image_3d.cpp | |
parent | 984e9ba2c2f83ad822699fdcedfb3c95afa38de8 (diff) | |
download | beignet-658f1ae2358e498e0b7e242269bd48b76bd5e34c.tar.gz |
Utests: refine the previous fake 3D test cases.
All the previous 3D test cases are only using depth 1, and not
really touch the 3D read/write code path. Now fix them.
Signed-off-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Reviewed-by: He Junyan <junyan.he@inbox.com>
Diffstat (limited to 'utests/compiler_fill_image_3d.cpp')
-rw-r--r-- | utests/compiler_fill_image_3d.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/utests/compiler_fill_image_3d.cpp b/utests/compiler_fill_image_3d.cpp index 4b3d4e3f..6a679fb4 100644 --- a/utests/compiler_fill_image_3d.cpp +++ b/utests/compiler_fill_image_3d.cpp @@ -4,7 +4,7 @@ static void compiler_fill_image_3d(void) { const size_t w = 512; const size_t h = 512; - const size_t depth = 1; + const size_t depth = 5; uint32_t color = 0x12345678; cl_image_format format; @@ -21,9 +21,11 @@ static void compiler_fill_image_3d(void) OCL_SET_ARG(1, sizeof(color), &color); globals[0] = w; globals[1] = h; + globals[2] = depth; locals[0] = 16; locals[1] = 16; - OCL_NDRANGE(2); + locals[2] = 1; + OCL_NDRANGE(3); // Check result OCL_MAP_BUFFER(0); |