mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-04-05 22:47:03 +00:00
rsx: Move sys_rsx info to rsx::thread (#10258)
This commit is contained in:
parent
a4f4b81e6b
commit
acded1e08a
5 changed files with 48 additions and 67 deletions
|
|
@ -640,14 +640,13 @@ void kernel_explorer::Update()
|
|||
{
|
||||
// Currently a single context is supported at a time
|
||||
const auto rsx = rsx::get_current_renderer();
|
||||
const auto context_info = g_fxo->try_get<lv2_rsx_config>();
|
||||
|
||||
if (!rsx || !context_info)
|
||||
if (!rsx)
|
||||
{
|
||||
break;
|
||||
}
|
||||
|
||||
const auto base = context_info->context_base;
|
||||
const auto base = rsx->dma_address;
|
||||
|
||||
if (!base)
|
||||
{
|
||||
|
|
@ -656,7 +655,7 @@ void kernel_explorer::Update()
|
|||
|
||||
const QString branch_name = "RSX Context 0x55555555";
|
||||
QTreeWidgetItem* rsx_tree = add_solid_node(m_tree, rsx_context_node, branch_name,
|
||||
branch_name + qstr(fmt::format(u8", Local Size: %u MB, Base Addr: 0x%x, Device Addr: 0x%x, Handlers: 0x%x", context_info->memory_size >> 20, base, context_info->device_addr, +vm::_ref<RsxDriverInfo>(context_info->driver_info).handlers)));
|
||||
branch_name + qstr(fmt::format(u8", Local Size: %u MB, Base Addr: 0x%x, Device Addr: 0x%x, Handlers: 0x%x", rsx->local_mem_size >> 20, base, rsx->device_addr, +vm::_ref<RsxDriverInfo>(rsx->driver_info).handlers)));
|
||||
|
||||
QTreeWidgetItem* io_tree = add_volatile_node(m_tree, rsx_tree, tr("IO-EA Table"));
|
||||
QTreeWidgetItem* zc_tree = add_volatile_node(m_tree, rsx_tree, tr("Zcull Bindings"));
|
||||
|
|
@ -666,7 +665,7 @@ void kernel_explorer::Update()
|
|||
decltype(rsx->display_buffers) dbs;
|
||||
decltype(rsx->zculls) zcs;
|
||||
{
|
||||
std::lock_guard lock(context_info->mutex);
|
||||
std::lock_guard lock(rsx->sys_rsx_mtx);
|
||||
std::memcpy(&table, &rsx->iomap_table, sizeof(table));
|
||||
std::memcpy(&dbs, rsx->display_buffers, sizeof(dbs));
|
||||
std::memcpy(&zcs, &rsx->zculls, sizeof(zcs));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue