Fix inconsistent variable name in REGISTER_TEST and REQUIRE_EXTENSION (#2296)

Both `REGISTER_TEST` and `REQUIRE_EXTENSION` expect cl_device_id
variable but the variable name is inconsistent which makes both macros
unusable together.

This change renames `deviceID` in `REQUIRE_EXTENSION` to `device` to be
consistent with `REGISTER_TEST`.

Signed-off-by: Michael Rizkalla <michael.rizkalla@arm.com>
This commit is contained in:
Michael Rizkalla
2025-03-05 00:53:50 +00:00
committed by GitHub
parent 733cc78c39
commit 9a5041a25b
2 changed files with 74 additions and 75 deletions

View File

@@ -153,7 +153,7 @@ template <typename T> T *register_test(const char *name, Version version)
#define REQUIRE_EXTENSION(name) \
do \
{ \
if (!is_extension_available(deviceID, name)) \
if (!is_extension_available(device, name)) \
{ \
log_info(name \
" is not supported on this device. Skipping test.\n"); \