summaryrefslogtreecommitdiff
path: root/src/amd/addrlib/src/core/addrelemlib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/amd/addrlib/src/core/addrelemlib.cpp')
-rw-r--r--src/amd/addrlib/src/core/addrelemlib.cpp35
1 files changed, 11 insertions, 24 deletions
diff --git a/src/amd/addrlib/src/core/addrelemlib.cpp b/src/amd/addrlib/src/core/addrelemlib.cpp
index 9279aff71f0..e42d2624adc 100644
--- a/src/amd/addrlib/src/core/addrelemlib.cpp
+++ b/src/amd/addrlib/src/core/addrelemlib.cpp
@@ -1,28 +1,10 @@
/*
- * Copyright © 2007-2019 Advanced Micro Devices, Inc.
- * All Rights Reserved.
- *
- * Permission is hereby granted, free of charge, to any person obtaining
- * a copy of this software and associated documentation files (the
- * "Software"), to deal in the Software without restriction, including
- * without limitation the rights to use, copy, modify, merge, publish,
- * distribute, sub license, and/or sell copies of the Software, and to
- * permit persons to whom the Software is furnished to do so, subject to
- * the following conditions:
- *
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
- * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
- * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
- * NON-INFRINGEMENT. IN NO EVENT SHALL THE COPYRIGHT HOLDERS, AUTHORS
- * AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
- * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
- * USE OR OTHER DEALINGS IN THE SOFTWARE.
- *
- * The above copyright notice and this permission notice (including the
- * next paragraph) shall be included in all copies or substantial portions
- * of the Software.
- */
+************************************************************************************************************************
+*
+* Copyright (C) 2007-2022 Advanced Micro Devices, Inc. All rights reserved.
+* SPDX-License-Identifier: MIT
+*
+***********************************************************************************************************************/
/**
****************************************************************************************************
@@ -1408,6 +1390,10 @@ UINT_32 ElemLib::GetBitsPerPixel(
case ADDR_FMT_24_8:
bpp = 32;
break;
+ case ADDR_FMT_BG_RG_16_16_16_16:
+ elemMode = ADDR_PACKED_BGRG;
+ bpp = 32;
+ break;
case ADDR_FMT_16_16_16_16:
case ADDR_FMT_32_32:
case ADDR_FMT_CTX1:
@@ -1819,6 +1805,7 @@ BOOL_32 ElemLib::IsMacroPixelPacked(
{
case ADDR_FMT_BG_RG:
case ADDR_FMT_GB_GR:
+ case ADDR_FMT_BG_RG_16_16_16_16:
isMacroPixelPacked = TRUE;
break;
default: