Skip to content

Commit

Permalink
rsx: temporary hack
Browse files Browse the repository at this point in the history
- Removes all use of valid_count as a metric until the new refactor is merged
  • Loading branch information
kd-11 committed Sep 21, 2018
1 parent 2b6e6a9 commit dafc914
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
10 changes: 5 additions & 5 deletions rpcs3/Emu/RSX/Common/texture_cache.h
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ namespace rsx

void notify(u32 addr, u32 data_size)
{
verify(HERE), valid_count >= 0;
//verify(HERE), valid_count >= 0;

const u32 addr_base = addr & ~0xfff;
const u32 block_sz = align(addr + data_size, 4096u) - addr_base;
Expand All @@ -303,7 +303,7 @@ namespace rsx

void notify()
{
verify(HERE), valid_count >= 0;
//verify(HERE), valid_count >= 0;
valid_count++;
}

Expand All @@ -315,7 +315,7 @@ namespace rsx

void remove_one()
{
verify(HERE), valid_count > 0;
//verify(HERE), valid_count > 0;
valid_count--;
}

Expand Down Expand Up @@ -1510,8 +1510,8 @@ namespace rsx
{
auto &range_data = address_range.second;

if (range_data.valid_count == 0)
empty_addresses.push_back(address_range.first);
//if (range_data.valid_count == 0)
//empty_addresses.push_back(address_range.first);

for (auto &tex : range_data.data)
{
Expand Down
4 changes: 2 additions & 2 deletions rpcs3/Emu/RSX/GL/GLTextureCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -1107,8 +1107,8 @@ namespace gl
if (found == m_cache.end())
return false;

if (found->second.valid_count == 0)
return false;
//if (found->second.valid_count == 0)
//return false;

for (auto& tex : found->second.data)
{
Expand Down
4 changes: 2 additions & 2 deletions rpcs3/Emu/RSX/VK/VKTextureCache.h
Original file line number Diff line number Diff line change
Expand Up @@ -985,8 +985,8 @@ namespace vk
if (found == m_cache.end())
return false;

if (found->second.valid_count == 0)
return false;
//if (found->second.valid_count == 0)
//return false;

for (auto& tex : found->second.data)
{
Expand Down

0 comments on commit dafc914

Please sign in to comment.