                 m_reservoirs[1].ptr(),
                 m_intermediates[0].ptr(),
                 m_intermediates[1].ptr(),
-                width, height,
-                m_hitidx.ptr(), hitcount.ptr());
+                width, height);
 
             checkCudaKernel(computeSpatialReuse);
 

    idaten::Reservoir* dst_reservoirs,
    const idaten::ReSTIRIntermedidate* __restrict__ intermediates,
    idaten::ReSTIRIntermedidate* dst_intermediates,
    int width, int height,
    int* hitindices,
    int* hitnum)
{
    int idx = blockIdx.x * blockDim.x + threadIdx.x;

    if (idx >= *hitnum) {
        return;
    }

    idx = hitindices[idx];

    OnComputeSpatialReuse(
        idx,

        dim3 blockPerGrid(((m_tileDomain.w * m_tileDomain.h) + 64 - 1) / 64);
        dim3 threadPerBlock(64);

        int target_idx = 0;

        if (bounce == 0) {
