forked from eden-emu/eden
engines: Remove unnecessary casts
In a few cases we have some casts that can be trivially removed.
This commit is contained in:
parent
755e1e93c7
commit
0d9c723df4
10 changed files with 57 additions and 85 deletions
|
@ -49,10 +49,9 @@ void State::ProcessData(std::span<const u8> read_buffer) {
|
|||
if (regs.line_count == 1) {
|
||||
rasterizer->AccelerateInlineToMemory(address, copy_size, read_buffer);
|
||||
} else {
|
||||
for (u32 line = 0; line < regs.line_count; ++line) {
|
||||
const GPUVAddr dest_line = address + static_cast<size_t>(line) * regs.dest.pitch;
|
||||
std::span<const u8> buffer(read_buffer.data() +
|
||||
static_cast<size_t>(line) * regs.line_length_in,
|
||||
for (size_t line = 0; line < regs.line_count; ++line) {
|
||||
const GPUVAddr dest_line = address + line * regs.dest.pitch;
|
||||
std::span<const u8> buffer(read_buffer.data() + line * regs.line_length_in,
|
||||
regs.line_length_in);
|
||||
rasterizer->AccelerateInlineToMemory(dest_line, regs.line_length_in, buffer);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue