softgpu: Remove bin asserts.

These are active in release and used in tight loops.
This commit is contained in:
Unknown W. Brackets committed 2022-01-20 16:59:38 -08:00
1 parent 55c11425e4
commit c4c54730bf
1 file changed
-6
-6
View File
@@ -75,7 +75,6 @@ struct BinQueue {
}
size_t Push(const T &item) {
_dbg_assert_(size_ < N - 1);
size_t i = tail_++;
if (i + 1 == N)
tail_ -= N;
@@ -85,7 +84,6 @@ struct BinQueue {
}
T Pop() {
_dbg_assert_(!Empty());
size_t i = head_++;
if (i + 1 == N)
head_ -= N;
@@ -96,12 +94,10 @@ struct BinQueue {
// Only safe if you're the only one reading.
T &PeekNext() {
_dbg_assert_(!Empty());
return items_[head_];
}
void SkipNext() {
_dbg_assert_(!Empty());
size_t i = head_++;
if (i + 1 == N)
head_ -= N;
@@ -110,12 +106,10 @@ struct BinQueue {
// Only safe if you're the only one writing.
T &PeekPush() {
_dbg_assert_(size_ < N - 1);
return items_[tail_];
}
void PushPeeked() {
_dbg_assert_(size_ < N - 1);
size_t i = tail_++;
if (i + 1 == N)
tail_ -= N;