Skip to content

Commit

Permalink
More build break fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Nexarian committed Nov 24, 2022
1 parent 8c8d3e2 commit fdbf86c
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions module/rdpCapture.c
Original file line number Diff line number Diff line change
Expand Up @@ -1158,9 +1158,7 @@ rdpCapture2(rdpClientCon *clientCon, RegionPtr in_reg, BoxPtr *out_rects,
int num_crcs;
int num_skips;
int tile_row_stride, crc_height;
int num_diff_first_rows;
uint64_t *row_hashes;
uint64_t old_first_row, new_first_row;

LLOGLN(10, ("rdpCapture2:"));

Expand Down Expand Up @@ -1209,7 +1207,6 @@ rdpCapture2(rdpClientCon *clientCon, RegionPtr in_reg, BoxPtr *out_rects,

/* update the tile row hashes. Column major order to be kind to
prefetchers even though it shouldn't matter much */
num_diff_first_rows = 0;
x = extents_rect.x1 & ~63;
while (x < extents_rect.x2)
{
Expand All @@ -1225,10 +1222,7 @@ rdpCapture2(rdpClientCon *clientCon, RegionPtr in_reg, BoxPtr *out_rects,
{
row_hashes = clientCon->rfx_tile_row_hashes +
(x / 64) * tile_row_stride + y;
old_first_row = row_hashes[0];
wyhash_rfx_tile_rows(src, src_stride, x, y, row_hashes, 64);
new_first_row = row_hashes[0];
num_diff_first_rows += (old_first_row != new_first_row);
}
y += 64;
}
Expand Down Expand Up @@ -1281,7 +1275,8 @@ rdpCapture2(rdpClientCon *clientCon, RegionPtr in_reg, BoxPtr *out_rects,
crc_offset = (y / 64) * crc_stride + (x / 64);
if (crc == clientCon->rfx_crcs[crc_offset])
{
LLOGLN(10, ("rdpCapture2: crc skip at x %d y %d", x, y));
LLOGLN(10, ("rdpCapture2: crc skip at x: %d, y: %d, "
"skip count: %d", x, y, num_skips));
num_skips += 1;
}
else
Expand Down

0 comments on commit fdbf86c

Please sign in to comment.