P4 to Git Change 1182804 by skudchad@skudchad_test_win_opencl2 on 2015/08/20 14:14:22
EPR #424190 - IOMMU2/SVM on CZ Win10, GL Interop changes for SVM
- Pass GL_INTEROP_SVM flag to GL for interop
ReviewBoardURL = http://ocltc.amd.com/reviews/r/8303/diff/
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#223 edit
[ROCm/clr commit: fee3ce0a35]
This commit is contained in:
@@ -717,8 +717,10 @@ Resource::create(MemoryType memType, CreateParams* params, bool heap)
|
||||
resData.GLdeviceContext = oglRes->glDeviceContext_;
|
||||
resData.name = oglRes->handle_;
|
||||
resData.type = glType_;
|
||||
// We need not pass any flags down to OGL for interop
|
||||
resData.flags = 0;
|
||||
|
||||
if(dev().settings().svmFineGrainSystem_) {
|
||||
resData.flags = GL_INTEROP_SVM;
|
||||
}
|
||||
|
||||
if (dev().resGLAssociate(resData)) {
|
||||
gslResource = resData.memObject;
|
||||
|
||||
مرجع در شماره جدید
Block a user