From 3373a1ef2f8a4027ae24b01f84896e9720c2c095 Mon Sep 17 00:00:00 2001 From: foreman Date: Tue, 12 Sep 2017 15:39:29 -0400 Subject: [PATCH] P4 to Git Change 1457982 by wchau@wchau_WIN_OCL_HSA on 2017/09/12 14:56:38 SWDEV-122517 - DVR toolbar and timer are corrupted when recording in fullscreen with portrait oriented monitors using Eyefinity. Fixed by obtaining the rotation information from OGL driver and set tha displayable attribute accordingly. (For OCL RT changes) Affected files ... ... //depot/stg/opencl/drivers/opencl/runtime/device/gpu/gslbe/src/rt/GSLDeviceGL.cpp#30 edit --- .../runtime/device/gpu/gslbe/src/rt/GSLDeviceGL.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDeviceGL.cpp b/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDeviceGL.cpp index 0d127fb77e..db9d6fda40 100644 --- a/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDeviceGL.cpp +++ b/rocclr/runtime/device/gpu/gslbe/src/rt/GSLDeviceGL.cpp @@ -843,15 +843,12 @@ CALGSLDevice::resGLAssociate(GLResAssociate & resData) const attribs.cpu_address = (void*)hData->handle; attribs.alias_subtile = hData->tilingMode; attribs.mcaddress = hData->cardAddr; - if (hData->isDoppDesktopTexture == GL_TRUE) - { - attribs.isDOPPDesktopTexture = ATIGL_TRUE; - attribs.displayable = GSL_MOA_DISPLAYABLE_LAYOUT; - } - if ((hData->isDoppPresentTexture == GL_TRUE) || + if (hData->isDoppDesktopTexture == GL_TRUE || (hData->isDoppPresentTexture == GL_TRUE) || (hData->isDisplayable == GL_TRUE)) { - attribs.displayable = GSL_MOA_DISPLAYABLE_LAYOUT; + attribs.isDOPPDesktopTexture = hData->isDoppDesktopTexture; + attribs.displayable = hData->isTilingRotated + ? GSL_MOA_DISPLAYABLE_PORTRAIT_ROTATED : GSL_MOA_DISPLAYABLE_LAYOUT; } attribs.doppVidpnSourceId = hData->vidpnSourceId;