clr: SWDEV-547890 - Bump PAL API version to 954 (#1680)

* clr: Adjust call to ICmdBuffer::CmdCopyMemoryToImage for PAL >= 955

PAL starting versino 955 adds a new argument to
ICmdBuffer::CmdCopyMemoryToImage.  Adjust teh callsite to account
fort his.

* clr: Handle new GpuUtil::TraceSessionState cases for PAL >= 939

Starting PAL API version 939, GpuUtil::TraceSessionState changes its
possible values.  Adjust for it.

* clr: require PAL version 954

Bump the PAL required vesion to 954, as this is required for proper
debugger support.
Cette révision appartient à :
lancesix
2025-11-08 00:52:04 +00:00
révisé par GitHub
Parent 0325de6538
révision f7ffcd1402
3 fichiers modifiés avec 7 ajouts et 2 suppressions
+1 -1
Voir le fichier
@@ -20,7 +20,7 @@
set(PAL_CLIENT "OCL")
set(PAL_CLIENT_INTERFACE_MAJOR_VERSION 932)
set(PAL_CLIENT_INTERFACE_MAJOR_VERSION 954)
set(GPUOPEN_CLIENT_INTERFACE_MAJOR_VERSION 42)
set(GPUOPEN_CLIENT_INTERFACE_MINOR_VERSION 0)
set(AMD_DK_ROOT $ENV{DK_ROOT})
+4
Voir le fichier
@@ -1565,7 +1565,11 @@ bool Resource::partialMemCopyTo(VirtualGPU& gpu, const amd::Coord3D& srcOrigin,
copyRegion.gpuMemoryDepthPitch =
(srcOrigin[2]) ? srcOrigin[2]
: copyRegion.gpuMemoryRowPitch * copyRegion.imageExtent.height;
#if PAL_CLIENT_INTERFACE_MAJOR_VERSION < 955
gpu.iCmd()->CmdCopyMemoryToImage(*iMem(), *dstResource.image_, imgLayout, 1, &copyRegion);
#else
gpu.iCmd()->CmdCopyMemoryToImage(*iMem(), *dstResource.image_, imgLayout, 1, &copyRegion, 0);
#endif
} else if (!desc().buffer_ && dstResource.desc().buffer_) {
Pal::MemoryImageCopyRegion copyRegion = {};
uint32_t arraySliceIdx = img2Darray ? srcOrigin[2] : img1Darray ? srcOrigin[1] : 0;
+2 -1
Voir le fichier
@@ -72,9 +72,10 @@ static void UberTraceStateChangeCallback(const GpuUtil::TraceSession& pTraceSess
// boundary for end of detailed trace
#if (PAL_CLIENT_INTERFACE_MAJOR_VERSION >= 939)
case GpuUtil::TraceSessionState::Postamble:
#endif
#else
// boundary for end of trace
case GpuUtil::TraceSessionState::Waiting:
#endif
{
VirtualGPU* current_gpu = mgr->GetCurrentGPU();
if (current_gpu != nullptr) {