rsx: temporary hack

- Removes all use of valid_count as a metric until the new refactor is merged
This commit is contained in:
kd-11 2018-09-20 17:07:34 +03:00 committed by kd-11
parent 2b6e6a9ae9
commit dafc914bcc
3 changed files with 9 additions and 9 deletions

View file

@ -290,7 +290,7 @@ namespace rsx
void notify(u32 addr, u32 data_size) 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 addr_base = addr & ~0xfff;
const u32 block_sz = align(addr + data_size, 4096u) - addr_base; const u32 block_sz = align(addr + data_size, 4096u) - addr_base;
@ -303,7 +303,7 @@ namespace rsx
void notify() void notify()
{ {
verify(HERE), valid_count >= 0; //verify(HERE), valid_count >= 0;
valid_count++; valid_count++;
} }
@ -315,7 +315,7 @@ namespace rsx
void remove_one() void remove_one()
{ {
verify(HERE), valid_count > 0; //verify(HERE), valid_count > 0;
valid_count--; valid_count--;
} }
@ -1510,8 +1510,8 @@ namespace rsx
{ {
auto &range_data = address_range.second; auto &range_data = address_range.second;
if (range_data.valid_count == 0) //if (range_data.valid_count == 0)
empty_addresses.push_back(address_range.first); //empty_addresses.push_back(address_range.first);
for (auto &tex : range_data.data) for (auto &tex : range_data.data)
{ {

View file

@ -1107,8 +1107,8 @@ namespace gl
if (found == m_cache.end()) if (found == m_cache.end())
return false; return false;
if (found->second.valid_count == 0) //if (found->second.valid_count == 0)
return false; //return false;
for (auto& tex : found->second.data) for (auto& tex : found->second.data)
{ {

View file

@ -985,8 +985,8 @@ namespace vk
if (found == m_cache.end()) if (found == m_cache.end())
return false; return false;
if (found->second.valid_count == 0) //if (found->second.valid_count == 0)
return false; //return false;
for (auto& tex : found->second.data) for (auto& tex : found->second.data)
{ {