mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
refactor: remove designated intializers from default descriptor definitions
Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
b62813297d
commit
6511837348
@@ -200,14 +200,15 @@ typedef struct _zex_counter_based_event_desc_t {
|
||||
} zex_counter_based_event_desc_t;
|
||||
|
||||
const zex_counter_based_event_desc_t defaultCounterBasedEventDesc = {
|
||||
.stype = ZEX_STRUCTURE_COUNTER_BASED_EVENT_DESC,
|
||||
.pNext = nullptr,
|
||||
.flags = static_cast<zex_counter_based_event_exp_flags_t>(
|
||||
ZEX_STRUCTURE_COUNTER_BASED_EVENT_DESC, // stype
|
||||
nullptr, // pNext
|
||||
static_cast<zex_counter_based_event_exp_flags_t>(
|
||||
ZEX_COUNTER_BASED_EVENT_FLAG_IMMEDIATE |
|
||||
ZEX_COUNTER_BASED_EVENT_FLAG_NON_IMMEDIATE |
|
||||
ZEX_COUNTER_BASED_EVENT_FLAG_HOST_VISIBLE),
|
||||
.signalScope = static_cast<ze_event_scope_flags_t>(ZE_EVENT_SCOPE_FLAG_HOST),
|
||||
.waitScope = static_cast<ze_event_scope_flags_t>(ZE_EVENT_SCOPE_FLAG_DEVICE)};
|
||||
ZEX_COUNTER_BASED_EVENT_FLAG_HOST_VISIBLE), // flags
|
||||
static_cast<ze_event_scope_flags_t>(ZE_EVENT_SCOPE_FLAG_HOST), // signalScope
|
||||
static_cast<ze_event_scope_flags_t>(ZE_EVENT_SCOPE_FLAG_DEVICE) // waitScope
|
||||
};
|
||||
|
||||
///////////////////////////////////////////////////////////////////////////////
|
||||
/// @brief Initial Counter Based Event synchronization parameters. This structure may be
|
||||
|
||||
@@ -647,13 +647,13 @@ const ze_host_mem_alloc_desc_t defaultHostMemDesc = {
|
||||
};
|
||||
|
||||
const ze_command_queue_desc_t defaultCommandQueueDesc = {
|
||||
.stype = ze_structure_type_t::ZE_STRUCTURE_TYPE_COMMAND_QUEUE_DESC,
|
||||
.pNext = nullptr,
|
||||
.ordinal = 0,
|
||||
.index = 0,
|
||||
.flags = static_cast<ze_command_queue_flags_t>(ZE_COMMAND_QUEUE_FLAG_IN_ORDER | ZE_COMMAND_QUEUE_FLAG_COPY_OFFLOAD_HINT),
|
||||
.mode = ZE_COMMAND_QUEUE_MODE_ASYNCHRONOUS,
|
||||
.priority = ZE_COMMAND_QUEUE_PRIORITY_NORMAL,
|
||||
ZE_STRUCTURE_TYPE_COMMAND_QUEUE_DESC, // stype
|
||||
nullptr, // pNext
|
||||
0, // ordinal
|
||||
0, // index
|
||||
static_cast<ze_command_queue_flags_t>(ZE_COMMAND_QUEUE_FLAG_IN_ORDER | ZE_COMMAND_QUEUE_FLAG_COPY_OFFLOAD_HINT), // flags
|
||||
ZE_COMMAND_QUEUE_MODE_ASYNCHRONOUS, // mode
|
||||
ZE_COMMAND_QUEUE_PRIORITY_NORMAL // priority
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user