From 3bf21c89eec9498b95b58da9c2a1fd54c815874e Mon Sep 17 00:00:00 2001 From: foreman Date: Thu, 19 Jul 2018 15:36:34 -0400 Subject: [PATCH] P4 to Git Change 1582940 by gandryey@gera-w8 on 2018/07/19 15:09:58 SWDEV-159255 - [CQE OCL][ocltst][WIN] [DTB-Blocker] OCLMemoryInfo[0] a sub-test of ocltst oclruntime module is failed while running whole module and getting pass while running alone this test due to faulty CL#1576247 - Reduce extra size acceptance for the cache look-up, so it will satisfy the test condition. Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/pal/palresource.cpp#69 edit [ROCm/clr commit: 75423e4972f22c8209aad4fc1ab0c530f161bf0e] --- projects/clr/rocclr/runtime/device/pal/palresource.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/clr/rocclr/runtime/device/pal/palresource.cpp b/projects/clr/rocclr/runtime/device/pal/palresource.cpp index 9df1a955b6..78d86aca75 100644 --- a/projects/clr/rocclr/runtime/device/pal/palresource.cpp +++ b/projects/clr/rocclr/runtime/device/pal/palresource.cpp @@ -2036,7 +2036,7 @@ GpuMemoryReference* ResourceCache::findGpuMemory(Resource::Descriptor* desc, Pal size_t sizeRes = it.second->iMem()->Desc().size; // Find if we can reuse this entry if ((entry->type_ == desc->type_) && (entry->flags_ == desc->flags_) && (size <= sizeRes) && - (size > (sizeRes >> 2)) && ((it.second->iMem()->Desc().gpuVirtAddr % alignment) == 0) && + (size > (sizeRes >> 1)) && ((it.second->iMem()->Desc().gpuVirtAddr % alignment) == 0) && (entry->isAllocExecute_ == desc->isAllocExecute_)) { ref = it.second; cacheSize_ -= sizeRes;