disasm set shader consts packet.
This commit is contained in:
parent
2157c8a2b2
commit
b060f6f263
|
@ -334,6 +334,19 @@ bool DisasmPacketType3(const uint8_t* base_ptr, uint32_t packet,
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
case PM4_SET_SHADER_CONSTANTS: {
|
||||||
|
static const PacketTypeInfo op_info = {PacketCategory::kGeneric,
|
||||||
|
"PM4_SET_SHADER_CONSTANTS"};
|
||||||
|
out_info->type_info = &op_info;
|
||||||
|
uint32_t offset_type = poly::load_and_swap<uint32_t>(ptr + 0);
|
||||||
|
uint32_t index = offset_type & 0xFFFF;
|
||||||
|
for (uint32_t n = 0; n < count - 1; n++, index++) {
|
||||||
|
uint32_t data = poly::load_and_swap<uint32_t>(ptr + 4 + n * 4);
|
||||||
|
out_info->actions.emplace_back(
|
||||||
|
PacketAction::RegisterWrite(index, data));
|
||||||
|
}
|
||||||
|
return true;
|
||||||
|
}
|
||||||
case PM4_IM_LOAD: {
|
case PM4_IM_LOAD: {
|
||||||
// load sequencer instruction memory (pointer-based)
|
// load sequencer instruction memory (pointer-based)
|
||||||
static const PacketTypeInfo op_info = {PacketCategory::kGeneric,
|
static const PacketTypeInfo op_info = {PacketCategory::kGeneric,
|
||||||
|
|
Loading…
Reference in New Issue