mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-07-09 08:21:29 +12:00
rsx: Overhaul rendertarget sampling/shuffles
- Reimplements render target views used for sampling - Optimizes access using an encoded control token - Adds proper encoding for 24-bit textures (DRGB8 -> ORGB/OBGR) - Adds proper encoding for ABGR textures (ABGR8 -> ARGB8) - Silence some compiler warnings as well - TODO: Real texture views for OGL current method is a hack
This commit is contained in:
parent
9bb1ed78f9
commit
321c360dcb
16 changed files with 131 additions and 80 deletions
|
@ -2246,9 +2246,9 @@ namespace rsx
|
|||
const auto elapsed = timestamp - performance_counters.last_update_timestamp;
|
||||
|
||||
if (elapsed > idle)
|
||||
performance_counters.approximate_load = (elapsed - idle) * 100 / elapsed;
|
||||
performance_counters.approximate_load = (u32)((elapsed - idle) * 100 / elapsed);
|
||||
else
|
||||
performance_counters.approximate_load = 0;
|
||||
performance_counters.approximate_load = 0u;
|
||||
|
||||
performance_counters.idle_time = 0;
|
||||
performance_counters.sampled_frames = 0;
|
||||
|
@ -2423,7 +2423,7 @@ namespace rsx
|
|||
int retries = 0;
|
||||
while (!Emu.IsStopped())
|
||||
{
|
||||
for (int n = 0; n < occlusion_query_count; ++n)
|
||||
for (u32 n = 0; n < occlusion_query_count; ++n)
|
||||
{
|
||||
if (m_occlusion_query_data[n].pending || m_occlusion_query_data[n].active)
|
||||
continue;
|
||||
|
@ -2571,7 +2571,7 @@ namespace rsx
|
|||
|
||||
if (!writer.forwarder)
|
||||
//No other queries in the chain, write result
|
||||
write(writer.sink, ptimer->timestamp(), writer.type, result);
|
||||
write(writer.sink, (u32)ptimer->timestamp(), writer.type, result);
|
||||
|
||||
processed++;
|
||||
}
|
||||
|
@ -2698,7 +2698,7 @@ namespace rsx
|
|||
//only zpass supported right now
|
||||
if (!writer.forwarder)
|
||||
//No other queries in the chain, write result
|
||||
write(writer.sink, ptimer->timestamp(), writer.type, result);
|
||||
write(writer.sink, (u32)ptimer->timestamp(), writer.type, result);
|
||||
|
||||
processed++;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue