mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-07 04:48:08 +08:00
Refactor GL sharing debug flag
Signed-off-by: Lukasz Jobczyk <lukasz.jobczyk@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
9d3ea387aa
commit
82a5614439
@@ -77,17 +77,19 @@ void GlSharingBuilderFactory::fillGlobalDispatchTable() {
|
||||
}
|
||||
|
||||
std::string GlSharingBuilderFactory::getExtensions(DriverInfo *driverInfo) {
|
||||
if (DebugManager.flags.AddClGlSharing.get()) {
|
||||
return "cl_khr_gl_sharing "
|
||||
"cl_khr_gl_depth_images "
|
||||
"cl_khr_gl_event "
|
||||
"cl_khr_gl_msaa_sharing ";
|
||||
} else if (GLSharingFunctionsWindows::isGlSharingEnabled()) {
|
||||
auto isGlSharingEnabled = GLSharingFunctionsWindows::isGlSharingEnabled();
|
||||
|
||||
if (DebugManager.flags.AddClGlSharing.get() != -1) {
|
||||
isGlSharingEnabled = DebugManager.flags.AddClGlSharing.get();
|
||||
}
|
||||
|
||||
if (isGlSharingEnabled) {
|
||||
return "cl_khr_gl_sharing "
|
||||
"cl_khr_gl_depth_images "
|
||||
"cl_khr_gl_event "
|
||||
"cl_khr_gl_msaa_sharing ";
|
||||
}
|
||||
|
||||
return "";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user