Skip to content

Commit

Permalink
removed stray logging
Browse files Browse the repository at this point in the history
  • Loading branch information
elFarto committed Nov 8, 2024
1 parent c1a6f14 commit fa44764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/direct/nv-driver.c
Original file line number Diff line number Diff line change
Expand Up @@ -499,7 +499,7 @@ uint32_t calculate_image_size(const NVDriverContext *context, NVDriverImage imag
//so different memory layouts for different planes can't work. Luckily this only seems to effect videos <= 128 pixels high.
uint32_t log2GobsPerBlockY = 4;
//uint32_t log2GobsPerBlockY = (planeHeight < 88) ? 3 : 4;
LOG("Calculated log2GobsPerBlockY: %dx%d == %d", planeWidth, planeHeight, log2GobsPerBlockY);
//LOG("Calculated log2GobsPerBlockY: %dx%d == %d", planeWidth, planeHeight, log2GobsPerBlockY);

//These two seem to be correct, but it was discovered by trial and error so I'm not 100% sure
const uint32_t widthInBytes = ROUND_UP(planeWidth * bytesPerPixel, GOB_WIDTH_IN_BYTES << log2GobsPerBlockX);
Expand Down

0 comments on commit fa44764

Please sign in to comment.