mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-19 19:15:26 +00:00
rsx: Fix upload block range optimization
- The 'max' index should take the first assigned ID; fixes problems with divisors
This commit is contained in:
parent
a245d9fb24
commit
8009e53642
1 changed files with 2 additions and 1 deletions
|
@ -208,7 +208,7 @@ namespace rsx
|
|||
}
|
||||
|
||||
const u32 max_index = (first + count) - 1;
|
||||
u32 _max_index = first;
|
||||
u32 _max_index = 0;
|
||||
u32 _min_index = first;
|
||||
|
||||
for (const auto &attrib : locations)
|
||||
|
@ -242,6 +242,7 @@ namespace rsx
|
|||
}
|
||||
}
|
||||
|
||||
verify(HERE), _max_index >= _min_index;
|
||||
return { _min_index, (_max_index - _min_index) + 1 };
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Reference in a new issue