Skip to content

Commit

Permalink
block_size=16での初期化不良の修正。
Browse files Browse the repository at this point in the history
  • Loading branch information
rigaya committed Jan 16, 2024
1 parent 3e855d7 commit 2a3d1c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions NVEncCore/NVEncFilterDenoiseDct.cu
Original file line number Diff line number Diff line change
Expand Up @@ -397,8 +397,8 @@ __device__ void clearSharedOutLine(
) {
const int y = sy % (BLOCK_SIZE * DENOISE_SHARED_BLOCK_NUM_Y);
shared_out[y][local_bx * BLOCK_SIZE + thWorker] = 0;
if (local_bx < (DENOISE_SHARED_BLOCK_NUM_X - BLOCK_SIZE)) {
shared_out[y][(local_bx + BLOCK_SIZE) * BLOCK_SIZE + thWorker] = 0;
if (local_bx < (DENOISE_SHARED_BLOCK_NUM_X - DENOISE_BLOCK_SIZE_X)) {
shared_out[y][(local_bx + DENOISE_BLOCK_SIZE_X) * BLOCK_SIZE + thWorker] = 0;
}
}

Expand Down

0 comments on commit 2a3d1c1

Please sign in to comment.