Skip to content

Commit d5e332b

Browse files
authored
Added zeImageViewCreateExt to Leak Checker (#267)
Signed-off-by: Neil R. Spruit <[email protected]>
1 parent 07219de commit d5e332b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

source/layers/validation/checkers/basic_leak/zel_basic_leak_checker.cpp

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ namespace validation_layer
5353
{"zeCommandListCreateImmediate", "zeCommandListCreate", "zeCommandListDestroy"},
5454
{"zeEventCreate", "zeEventDestroy"},
5555
{"zeFenceCreate", "zeFenceDestroy"},
56-
{"zeImageCreate", "zeImageDestroy"},
56+
{"zeImageCreate", "zeImageViewCreateExt", "zeImageDestroy"},
5757
{"zeSamplerCreate", "zeSamplerDestroy"},
5858
{"zeMemAllocDevice", "zeMemAllocHost", "zeMemAllocShared", "zeMemFree"}};
5959
}
@@ -193,6 +193,13 @@ namespace validation_layer
193193
return result;
194194
}
195195

196+
ze_result_t basic_leakChecker::ZEbasic_leakChecker::zeImageViewCreateExtEpilogue(ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t hImage, ze_image_handle_t* phImageView , ze_result_t result) {
197+
if (result == ZE_RESULT_SUCCESS) {
198+
countFunctionCall("zeImageViewCreateExt");
199+
}
200+
return result;
201+
}
202+
196203
ze_result_t basic_leakChecker::ZEbasic_leakChecker::zeImageDestroyEpilogue(ze_image_handle_t, ze_result_t result) {
197204
if (result == ZE_RESULT_SUCCESS) {
198205
countFunctionCall("zeImageDestroy");

source/layers/validation/checkers/basic_leak/zel_basic_leak_checker.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ namespace validation_layer
7070
ze_result_t zeFenceCreateEpilogue(ze_command_queue_handle_t, const ze_fence_desc_t *, ze_fence_handle_t*, ze_result_t result) override;
7171
ze_result_t zeFenceDestroyEpilogue(ze_fence_handle_t, ze_result_t result) override;
7272
ze_result_t zeImageCreateEpilogue(ze_context_handle_t, ze_device_handle_t, const ze_image_desc_t*, ze_image_handle_t*, ze_result_t result) override;
73+
ze_result_t zeImageViewCreateExtEpilogue( ze_context_handle_t hContext, ze_device_handle_t hDevice, const ze_image_desc_t* desc, ze_image_handle_t hImage, ze_image_handle_t* phImageView , ze_result_t result) override;
7374
ze_result_t zeImageDestroyEpilogue(ze_image_handle_t, ze_result_t result) override;
7475
ze_result_t zeSamplerCreateEpilogue(ze_context_handle_t, ze_device_handle_t, const ze_sampler_desc_t*, ze_sampler_handle_t*, ze_result_t result) override;
7576
ze_result_t zeSamplerDestroyEpilogue(ze_sampler_handle_t, ze_result_t result) override;

0 commit comments

Comments
 (0)