mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2026-06-04 15:05:02 -06:00
misc: Fix initializer order warnings (#4358)
This commit is contained in:
parent
4d3827c349
commit
8175194bba
@ -119,16 +119,16 @@ void SetTcbBase(void* image_address) {
|
|||||||
// Create an LDT entry for the TCB.
|
// Create an LDT entry for the TCB.
|
||||||
ldt_entry ldt{};
|
ldt_entry ldt{};
|
||||||
ldt.data = {
|
ldt.data = {
|
||||||
|
.limit00 = static_cast<u16>(ldt_block_size - 1),
|
||||||
.base00 = static_cast<u16>(addr),
|
.base00 = static_cast<u16>(addr),
|
||||||
.base16 = static_cast<u8>(addr >> 16),
|
.base16 = static_cast<u8>(addr >> 16),
|
||||||
.base24 = static_cast<u8>(addr >> 24),
|
|
||||||
.limit00 = static_cast<u16>(ldt_block_size - 1),
|
|
||||||
.limit16 = 0,
|
|
||||||
.type = DESC_DATA_WRITE,
|
.type = DESC_DATA_WRITE,
|
||||||
.dpl = 3, // User accessible
|
.dpl = 3, // User accessible
|
||||||
.present = 1, // Segment present
|
.present = 1, // Segment present
|
||||||
|
.limit16 = 0,
|
||||||
.stksz = DESC_DATA_32B,
|
.stksz = DESC_DATA_32B,
|
||||||
.granular = DESC_GRAN_BYTE,
|
.granular = DESC_GRAN_BYTE,
|
||||||
|
.base24 = static_cast<u8>(addr >> 24),
|
||||||
};
|
};
|
||||||
int ret = i386_set_ldt(ldt_index, &ldt, 1);
|
int ret = i386_set_ldt(ldt_index, &ldt, 1);
|
||||||
ASSERT_MSG(ret == ldt_index,
|
ASSERT_MSG(ret == ldt_index,
|
||||||
|
|||||||
@ -419,14 +419,14 @@ vk::UniqueInstance CreateInstance(Frontend::WindowSystemType window_type, bool e
|
|||||||
|
|
||||||
vk::StructureChain<vk::InstanceCreateInfo, vk::LayerSettingsCreateInfoEXT> instance_ci_chain = {
|
vk::StructureChain<vk::InstanceCreateInfo, vk::LayerSettingsCreateInfoEXT> instance_ci_chain = {
|
||||||
vk::InstanceCreateInfo{
|
vk::InstanceCreateInfo{
|
||||||
|
#ifdef __APPLE__
|
||||||
|
.flags = vk::InstanceCreateFlagBits::eEnumeratePortabilityKHR,
|
||||||
|
#endif
|
||||||
.pApplicationInfo = &application_info,
|
.pApplicationInfo = &application_info,
|
||||||
.enabledLayerCount = static_cast<u32>(layers.size()),
|
.enabledLayerCount = static_cast<u32>(layers.size()),
|
||||||
.ppEnabledLayerNames = layers.data(),
|
.ppEnabledLayerNames = layers.data(),
|
||||||
.enabledExtensionCount = static_cast<u32>(extensions.size()),
|
.enabledExtensionCount = static_cast<u32>(extensions.size()),
|
||||||
.ppEnabledExtensionNames = extensions.data(),
|
.ppEnabledExtensionNames = extensions.data(),
|
||||||
#ifdef __APPLE__
|
|
||||||
.flags = vk::InstanceCreateFlagBits::eEnumeratePortabilityKHR,
|
|
||||||
#endif
|
|
||||||
},
|
},
|
||||||
vk::LayerSettingsCreateInfoEXT{
|
vk::LayerSettingsCreateInfoEXT{
|
||||||
.settingCount = layer_setings.size(),
|
.settingCount = layer_setings.size(),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user