SWDEV-198364 - Only enable clgl sharing in ROCm path when building LinuxPro
Change-Id: Ie4d87e252519d090a62b930f7ebb315d3477b690
[ROCm/clr commit: 54a7170e40]
This commit is contained in:
zatwierdzone przez
Jason Tang
rodzic
dfdb975c7d
commit
09259cd49f
@@ -119,6 +119,7 @@ option(BUILD_LINUXPRO "Build LinuxPro" OFF)
|
||||
if (BUILD_LINUXPRO)
|
||||
message(STATUS "Building LinuxPro")
|
||||
add_definitions(-DROCCLR_DISABLE_PREVEGA)
|
||||
add_definitions(-DROCCLR_ENABLE_GL_SHARING)
|
||||
endif()
|
||||
|
||||
option(BUILD_PAL "Build PAL backend" OFF)
|
||||
|
||||
@@ -129,9 +129,13 @@ bool Settings::create(bool fullProfile, uint32_t gfxipMajor, uint32_t gfxipMinor
|
||||
enableExtension(ClAmdMediaOps);
|
||||
enableExtension(ClAmdMediaOps2);
|
||||
enableExtension(ClKhrImage2dFromBuffer);
|
||||
|
||||
#ifdef ROCCLR_ENABLE_GL_SHARING
|
||||
if (MesaInterop::Supported()) {
|
||||
enableExtension(ClKhrGlSharing);
|
||||
}
|
||||
#endif
|
||||
|
||||
// Enable platform extension
|
||||
enableExtension(ClAmdDeviceAttributeQuery);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user