don't zero-initialization of bitifieds

there is problem with Clang 4.0 and Debug builds when bit field
initialization is used. depending on structure size we may get some bits
still set.
this bitfield comes from external component, so we don't have full
control over them. use of memset to clear structure is workaround

Change-Id: I35062517107fde37e503f1bf8909db856d566254
This commit is contained in:
Artur Harasimiuk 2018-04-10 23:26:25 +02:00
parent 1c3ff8a15b
commit 857d0293e1
1 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@
namespace OCLRT {
struct SkuInfoBaseReference {
static void fillReferenceFtrForTransfer(_SKU_FEATURE_TABLE &refFtrTable) {
refFtrTable = {};
memset(&refFtrTable, 0, sizeof(refFtrTable));
refFtrTable.FtrStandardMipTailFormat = 1;
refFtrTable.FtrULT = 1;
refFtrTable.FtrEDram = 1;
@ -46,7 +46,7 @@ struct SkuInfoBaseReference {
}
static void fillReferenceWaForTransfer(_WA_TABLE &refWaTable) {
refWaTable = {};
memset(&refWaTable, 0, sizeof(refWaTable));
refWaTable.WaFbcLinearSurfaceStride = 1;
refWaTable.WaDisableEdramForDisplayRT = 1;
refWaTable.WaEncryptedEdramOnlyPartials = 1;