SWDEV-492607: Fix for bvh (#87)

Co-authored-by: Giovanni Baraldi <gbaraldi@amd.com>
This commit is contained in:
Baraldi, Giovanni
2024-12-24 15:47:13 +01:00
committed by GitHub
parent 2d2430b94a
commit 0a8c31842d
3 changed files with 8 additions and 6 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ typedef enum
typedef enum
{
ATT_INST_NONE = 0,
ATT_INST_LAST = 11,
ATT_INST_LAST = 15,
} att_wave_inst_category_t;
typedef struct
@@ -109,7 +109,11 @@ classify(const std::string& inst)
return MemoryInstType::TYPE_NOT_MEM;
}
if(inst.find("ds_") <= 1)
if(inst.find("_bvh") != npos)
{
return MemoryInstType::TYPE_BVH;
}
else if(inst.find("ds_") <= 1)
{
if(inst.find("param_load") != npos || inst.find("ds_direct") != npos)
return MemoryInstType::TYPE_LDS_DIRECT;
@@ -123,8 +127,6 @@ classify(const std::string& inst)
return bStore ? MemoryInstType::TYPE_GLOBAL_STOR : MemoryInstType::TYPE_GLOBAL_LOAD;
else if(inst.find("flat_") == 0)
return bStore ? MemoryInstType::TYPE_FLAT_STOR : MemoryInstType::TYPE_FLAT_LOAD;
else if(inst.find("bvh_") != npos)
return MemoryInstType::TYPE_BVH;
else
return MemoryInstType::TYPE_NOT_MEM;
}
@@ -277,8 +277,8 @@ TEST(att_decoder_waitcnt_test, gfx12)
// ds vs exp vs bvh
append_isa(31, "ds_store");
append_isa(32, "bvh_");
append_isa(33, "bvh_");
append_isa(32, "_bvh_");
append_isa(33, "_bvh_");
append_isa(34, "ds_param_load");
append_isa(35, "ds_direct");
append_isa(36, "ds_load");