From 9b35ce5b3bedb32ad78a8a9c271675d080bc09ba Mon Sep 17 00:00:00 2001 From: David Yat Sin Date: Wed, 10 May 2023 20:13:54 +0000 Subject: [PATCH] Fix incorrect check for image support Change-Id: I77476204d40c245c9d9091853264a4e9fbb80725 --- runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp index bd07fadab4..e1036d4f07 100644 --- a/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp +++ b/runtime/hsa-runtime/core/runtime/amd_gpu_agent.cpp @@ -1084,7 +1084,7 @@ hsa_status_t GpuAgent::GetInfo(hsa_agent_info_t attribute, void* value) const { case HSA_EXT_AGENT_INFO_IMAGE_2DADEPTH_MAX_ELEMENTS: case HSA_EXT_AGENT_INFO_IMAGE_3D_MAX_ELEMENTS: case HSA_EXT_AGENT_INFO_IMAGE_ARRAY_MAX_LAYERS: - if (isa_has_image_support) + if (!isa_has_image_support) *((uint32_t*)value) = 0; else return hsa_amd_image_get_info_max_dim(public_handle(), attribute, value);