From adef8ef154be0a29e2b312cc07621e8fd929f296 Mon Sep 17 00:00:00 2001
From: foreman
Date: Mon, 25 Feb 2019 14:00:09 -0500
Subject: [PATCH] P4 to Git Change 1748169 by gandryey@gera-w8 on 2019/02/25
13:36:28
SWDEV-180834 - [Forum] - Washed-Out Colors in Premiere Pro CC 2018 When 10bit Enabled
- Add CL_RGBA 101010 support for GL interop in GSL path.
Affected files ...
... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gpudefs.hpp#157 edit
---
rocclr/runtime/device/gpu/gpudefs.hpp | 2 ++
1 file changed, 2 insertions(+)
diff --git a/rocclr/runtime/device/gpu/gpudefs.hpp b/rocclr/runtime/device/gpu/gpudefs.hpp
index f263649cf9..6ec634f08d 100644
--- a/rocclr/runtime/device/gpu/gpudefs.hpp
+++ b/rocclr/runtime/device/gpu/gpudefs.hpp
@@ -282,6 +282,8 @@ static const MemoryFormat MemoryFormatMap[] = {
// RGB
{{CL_RGB, CL_UNORM_INT_101010}, {GSL_CHANNEL_ORDER_RGB, CM_SURF_FMT_BGR10_X2}},
+ // RGBA
+ {{CL_RGBA, CL_UNORM_INT_101010}, {GSL_CHANNEL_ORDER_RGB, CM_SURF_FMT_RGB10_X2}},
// RGBA
{{CL_RGBA, CL_UNORM_INT8}, {GSL_CHANNEL_ORDER_RGBA, CM_SURF_FMT_RGBA8}},