P4 to Git Change 1119795 by xcui@merged_opencl_jxcwin on 2015/02/06 20:33:37

EPR #413091 - Back out changelist 1119692

Affected files ...

... //depot/stg/opencl/drivers/opencl/api/opencl/amdocl/cl_svm.cpp#10 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpumemory.cpp#117 edit
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#206 edit
Tá an tiomantas seo le fáil i:
foreman
2015-02-06 20:44:19 -05:00
tuismitheoir 12a7fe0d71
tiomantas a1fb1864da
D'athraigh 2 comhad le 2 breiseanna agus 18 scriosta
+1 -1
Féach ar an gComhad
@@ -346,7 +346,7 @@ Resource::create(MemoryType memType, CreateParams* params, bool heap)
desc.vaBase = 0;
desc.minAlignment = 0;
desc.section = GSL_SECTION_REGULAR;
if (NULL != params && NULL != params->owner_ && memType != Pinned) { //make sure params not NULL
if (NULL != params && NULL != params->owner_) { //make sure params not NULL
mcaddr svmPtr = reinterpret_cast<mcaddr>(params->owner_->getSvmPtr());
desc.vaBase = (svmPtr == 1)? 0:svmPtr;
cal_.SVMRes_ = (svmPtr != 0);