diff options
author | Junyan He <junyan.he@linux.intel.com> | 2014-05-16 15:13:34 +0800 |
---|---|---|
committer | Zhigang Gong <zhigang.gong@intel.com> | 2014-05-22 13:44:16 +0800 |
commit | 6851a808e6811734f5719e77957f387b368ae1f8 (patch) | |
tree | dfba50335c4236090afdbd5be31f3f48f31ae8dc /utests/compiler_copy_image_3d.cpp | |
parent | 7b18ac91d3cb964d925fb114d0452092f72795dc (diff) | |
download | beignet-6851a808e6811734f5719e77957f387b368ae1f8.tar.gz |
Fix the bug of forgetting release sampler in utest.
utest helper will not help us to free the sampler resource
as buffer and kernel. So we need to release it by ourself.
Signed-off-by: Junyan He <junyan.he@linux.intel.com>
Reviewed-by: Zhigang Gong <zhigang.gong@linux.intel.com>
Diffstat (limited to 'utests/compiler_copy_image_3d.cpp')
-rw-r--r-- | utests/compiler_copy_image_3d.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/utests/compiler_copy_image_3d.cpp b/utests/compiler_copy_image_3d.cpp index ff493e76..072c99a5 100644 --- a/utests/compiler_copy_image_3d.cpp +++ b/utests/compiler_copy_image_3d.cpp @@ -53,6 +53,8 @@ static void compiler_copy_image_3d(void) for(uint32_t i = 0; i < depth + 2; i++) OCL_UNMAP_BUFFER_GTT(i); + + OCL_CALL(clReleaseSampler, sampler); } MAKE_UTEST_FROM_FUNCTION(compiler_copy_image_3d); |