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 à :
@@ -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})
|
||||
|
||||
@@ -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, ©Region);
|
||||
#else
|
||||
gpu.iCmd()->CmdCopyMemoryToImage(*iMem(), *dstResource.image_, imgLayout, 1, ©Region, 0);
|
||||
#endif
|
||||
} else if (!desc().buffer_ && dstResource.desc().buffer_) {
|
||||
Pal::MemoryImageCopyRegion copyRegion = {};
|
||||
uint32_t arraySliceIdx = img2Darray ? srcOrigin[2] : img1Darray ? srcOrigin[1] : 0;
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur