From b91a538a9da29bdc0b142a3badcd05ff6ce3b5e7 Mon Sep 17 00:00:00 2001
From: foreman
Date: Tue, 13 Nov 2018 14:46:31 -0500
Subject: [PATCH] P4 to Git Change 1706316 by gandryey@gera-w8 on 2018/11/13
14:37:46
SWDEV-168035 - [18.40] OCL runtime interop DX9EX surface using format uyvy and yuy2 fails on ASICs older than Vega
- The actual issue for this ticket is GSL creates an image view for YUY2 format with incorrect pitch. However OCL runtime can have a workaround, which can disable the view creation by removing useless RGBA to RGB and then back to RGBA.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#153 edit
[ROCm/clr commit: a8c12ee3b6ce7fee37ea4b1be9d82d797df98b95]
---
projects/clr/rocclr/runtime/device/gpu/gpudefs.hpp | 2 --
1 file changed, 2 deletions(-)
diff --git a/projects/clr/rocclr/runtime/device/gpu/gpudefs.hpp b/projects/clr/rocclr/runtime/device/gpu/gpudefs.hpp
index 72b2701cc0..38a693c845 100644
--- a/projects/clr/rocclr/runtime/device/gpu/gpudefs.hpp
+++ b/projects/clr/rocclr/runtime/device/gpu/gpudefs.hpp
@@ -287,8 +287,6 @@ static const MemoryFormat MemoryFormatMap[] = {
// RGB
{{CL_RGB, CL_UNORM_INT_101010}, {GSL_CHANNEL_ORDER_RGB, CM_SURF_FMT_BGR10_X2}},
- {{CL_RGB, CL_UNSIGNED_INT8}, // This is used only by blit kernel
- {GSL_CHANNEL_ORDER_RGBA, CM_SURF_FMT_RGBA8UI}},
// RGBA
{{CL_RGBA, CL_UNORM_INT8}, {GSL_CHANNEL_ORDER_RGBA, CM_SURF_FMT_RGBA8}},