mirror of
https://github.com/intel/compute-runtime.git
synced 2025-09-15 13:01:45 +08:00
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:
@ -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;
|
||||
|
Reference in New Issue
Block a user