SWDEV-296911 - Enable clgl interop for both MesaGL and OrcaGL

Change-Id: Ie3ad85a8335b1fc751812c09bb0cd30aad38dcae


[ROCm/clr commit: f165737096]
이 커밋은 다음에 포함됨:
Jason Tang
2021-07-28 17:18:21 -04:00
커밋한 사람 Maneesh Gupta
부모 1ca153409c
커밋 8235cb4462
3개의 변경된 파일5개의 추가작업 그리고 8개의 파일을 삭제
+1 -1
파일 보기
@@ -96,7 +96,7 @@ else()
option(BUILD_LINUXPRO "Build LinuxPro" OFF)
if(BUILD_LINUXPRO)
target_compile_definitions(rocclr PUBLIC
ROCCLR_DISABLE_PREVEGA ROCCLR_ENABLE_GL_SHARING)
ROCCLR_DISABLE_PREVEGA )
endif()
endif()
+4 -5
파일 보기
@@ -269,13 +269,12 @@ bool Memory::createInteropBuffer(GLenum targetType, int miplevel) {
if (status != HSA_STATUS_SUCCESS) return false;
//! @todo Need to handle metadata correctly
#if 0
// if map_buffer wrote anything in metadata, copy it to amdImageDesc_
if (metadata_size != 0) {
// if map_buffer wrote a legitimate SRD, copy it to amdImageDesc_
if ((metadata_size != 0) &&
(reinterpret_cast<hsa_amd_image_descriptor_t*>(metadata)->deviceID ==
amdImageDesc_->deviceID)) {
memcpy(amdImageDesc_, metadata, metadata_size);
}
#endif //0
kind_ = MEMORY_KIND_INTEROP;
assert(deviceMemory_ != nullptr && "Interop map failed to produce a pointer!");
-2
파일 보기
@@ -129,11 +129,9 @@ bool Settings::create(bool fullProfile, uint32_t gfxipMajor, uint32_t gfxipMinor
enableExtension(ClAmdMediaOps2);
enableExtension(ClKhrImage2dFromBuffer);
#ifdef ROCCLR_ENABLE_GL_SHARING
if (MesaInterop::Supported()) {
enableExtension(ClKhrGlSharing);
}
#endif
// Enable platform extension
enableExtension(ClAmdDeviceAttributeQuery);