mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2024-07-04 23:31:19 +01:00
hle_ipc: unsigned -> u32
This is more concise and consistent with the rest of the codebase.
This commit is contained in:
parent
81a5ecdb18
commit
049769a0c9
1 changed files with 7 additions and 7 deletions
|
@ -86,16 +86,16 @@ void HLERequestContext::ParseCommandBuffer(const KHandleTable& handle_table, u32
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
for (unsigned i = 0; i < command_header->num_buf_x_descriptors; ++i) {
|
for (u32 i = 0; i < command_header->num_buf_x_descriptors; ++i) {
|
||||||
buffer_x_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorX>());
|
buffer_x_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorX>());
|
||||||
}
|
}
|
||||||
for (unsigned i = 0; i < command_header->num_buf_a_descriptors; ++i) {
|
for (u32 i = 0; i < command_header->num_buf_a_descriptors; ++i) {
|
||||||
buffer_a_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
|
buffer_a_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
|
||||||
}
|
}
|
||||||
for (unsigned i = 0; i < command_header->num_buf_b_descriptors; ++i) {
|
for (u32 i = 0; i < command_header->num_buf_b_descriptors; ++i) {
|
||||||
buffer_b_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
|
buffer_b_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
|
||||||
}
|
}
|
||||||
for (unsigned i = 0; i < command_header->num_buf_w_descriptors; ++i) {
|
for (u32 i = 0; i < command_header->num_buf_w_descriptors; ++i) {
|
||||||
buffer_w_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
|
buffer_w_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorABW>());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -148,14 +148,14 @@ void HLERequestContext::ParseCommandBuffer(const KHandleTable& handle_table, u32
|
||||||
IPC::CommandHeader::BufferDescriptorCFlag::OneDescriptor) {
|
IPC::CommandHeader::BufferDescriptorCFlag::OneDescriptor) {
|
||||||
buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
|
buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
|
||||||
} else {
|
} else {
|
||||||
unsigned num_buf_c_descriptors =
|
u32 num_buf_c_descriptors =
|
||||||
static_cast<unsigned>(command_header->buf_c_descriptor_flags.Value()) - 2;
|
static_cast<u32>(command_header->buf_c_descriptor_flags.Value()) - 2;
|
||||||
|
|
||||||
// This is used to detect possible underflows, in case something is broken
|
// This is used to detect possible underflows, in case something is broken
|
||||||
// with the two ifs above and the flags value is == 0 || == 1.
|
// with the two ifs above and the flags value is == 0 || == 1.
|
||||||
ASSERT(num_buf_c_descriptors < 14);
|
ASSERT(num_buf_c_descriptors < 14);
|
||||||
|
|
||||||
for (unsigned i = 0; i < num_buf_c_descriptors; ++i) {
|
for (u32 i = 0; i < num_buf_c_descriptors; ++i) {
|
||||||
buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
|
buffer_c_desciptors.push_back(rp.PopRaw<IPC::BufferDescriptorC>());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue