mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-30 12:32:43 +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
@ -208,7 +208,7 @@ namespace rsx
|
|||||||
}
|
}
|
||||||
|
|
||||||
const u32 max_index = (first + count) - 1;
|
const u32 max_index = (first + count) - 1;
|
||||||
u32 _max_index = first;
|
u32 _max_index = 0;
|
||||||
u32 _min_index = first;
|
u32 _min_index = first;
|
||||||
|
|
||||||
for (const auto &attrib : locations)
|
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 };
|
return { _min_index, (_max_index - _min_index) + 1 };
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user