IPC: Corrected some definitions for the buffer C descriptor flags.

This commit is contained in:
Subv 2018-01-07 21:25:01 -05:00 committed by bunnei
parent ba02f0deef
commit ab86b80cac
3 changed files with 10 additions and 3 deletions

View file

@ -48,8 +48,8 @@ struct CommandHeader {
enum class BufferDescriptorCFlag : u32 {
Disabled = 0,
NoDescriptor = 1,
TwoDesciptors = 2,
InlineDescriptor = 1,
OneDescriptor = 2,
};
union {

View file

@ -83,8 +83,11 @@ void HLERequestContext::ParseCommandBuffer(u32_le* src_cmdbuf, bool incoming) {
}
if (command_header->buf_c_descriptor_flags !=
IPC::CommandHeader::BufferDescriptorCFlag::Disabled) {
if (command_header->buf_c_descriptor_flags !=
IPC::CommandHeader::BufferDescriptorCFlag::OneDescriptor) {
UNIMPLEMENTED();
}
}
// Padding to align to 16 bytes
rp.AlignWithPadding();

View file

@ -139,6 +139,10 @@ public:
return buffer_a_desciptors;
}
const std::vector<IPC::BufferDescriptorABW>& BufferDescriptorB() const {
return buffer_b_desciptors;
}
const std::unique_ptr<IPC::DomainMessageHeader>& GetDomainMessageHeader() const {
return domain_message_header;
}