From fe8a3fc53ecc204527fd8452008abc08cb848529 Mon Sep 17 00:00:00 2001
From: foreman
Date: Fri, 23 Jan 2015 15:50:10 -0500
Subject: [PATCH] P4 to Git Change 1114892 by rili@rili_opencl_stg on
2015/01/23 15:08:20
EPR #411675 - Disable the code of writing 0 for the buffer paging by VidMM if asic is apu.
On Kaveri, benchmark "photo editing" of PCMarks takes longer time
Not sure how PCMarks measures it.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#202 edit
---
rocclr/runtime/device/gpu/gpuresource.cpp | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/rocclr/runtime/device/gpu/gpuresource.cpp b/rocclr/runtime/device/gpu/gpuresource.cpp
index 6be932a55c..116d9fdd0f 100644
--- a/rocclr/runtime/device/gpu/gpuresource.cpp
+++ b/rocclr/runtime/device/gpu/gpuresource.cpp
@@ -1901,7 +1901,10 @@ void
Resource::warmUpRenames(VirtualGPU& gpu)
{
for (uint i = 0; i < dev().settings().maxRenames_; ++i) {
- if (dev().settings().siPlus_) {
+ // EPR #411675 - On Kaveri, benchmark "photo editing" of PCMarks takes longer time
+ // if writing 0 for the buffer paging by VidMM is excuted. Not sure how PCMarks measures it.
+ // Disable this code for apu
+ if (dev().settings().siPlus_ && !dev().settings().apuSystem_) {
uint dummy = 0;
const bool NoWait = false;
// Write 0 for the buffer paging by VidMM