From 80fc091f0d32b9d5d3a07dee36a4633e93f5e369 Mon Sep 17 00:00:00 2001
From: foreman
Date: Thu, 17 May 2018 18:42:59 -0400
Subject: [PATCH] P4 to Git Change 1556517 by gandryey@gera-w8 on 2018/05/17
18:37:46
SWDEV-153682 - Report cl_amd_planar_yuv extension in OpenCL
- Correct bytePitch for P010 format
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpuresource.cpp#243 edit
---
rocclr/runtime/device/gpu/gpuresource.cpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rocclr/runtime/device/gpu/gpuresource.cpp b/rocclr/runtime/device/gpu/gpuresource.cpp
index 0ea9bedcd8..8c1ddcfd9a 100644
--- a/rocclr/runtime/device/gpu/gpuresource.cpp
+++ b/rocclr/runtime/device/gpu/gpuresource.cpp
@@ -765,8 +765,10 @@ bool Resource::create(MemoryType memType, CreateParams* params) {
viewChannelOrder = cal()->channelOrder_;
switch (d3dRes->layer_) {
case -1:
+ bytePitch *= elementSize();
break;
case 0:
+ bytePitch *= elementSize();
break;
case 1:
// Y - plane size to the offset