Refactor dirty line calculation for rendering

This commit is contained in:
AITUS95
2026-01-09 12:58:22 +01:00
committed by GitHub
parent e0de4c7f87
commit b6a6161943

View File

@@ -1389,10 +1389,9 @@ skip_pixel:
voodoo->texel_count[odd_even] += state->texel_count;
voodoo->fbiPixelsIn += state->pixel_count;
if (voodoo->params.draw_offset == voodoo->params.front_offset) {
int dirty_idx = SLI_ENABLED ? (real_y >> 1) : real_y;
if (dirty_idx < 2048)
voodoo->dirty_line[dirty_idx] = 1;
if (voodoo->params.draw_offset == voodoo->params.front_offset && !SLI_ENABLED) {
if (real_y < 2048)
voodoo->dirty_line[real_y] = 1;
}
next_line: