Skip to content

Commit

Permalink
Merge branch 'yaobin/FixNeeBug' into 'main'
Browse files Browse the repository at this point in the history
Fix a bug in nee cache

See merge request lightspeedrtx/dxvk-remix-nv!627
  • Loading branch information
Yaobin Ouyang committed Dec 28, 2023
2 parents 1cff650 + 3dbf350 commit f41d736
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ void main(uint2 threadIndex : SV_DispatchThreadID, uint2 LocalIndex : SV_GroupTh
if (any(diffuseLight + specularLight) > 0 && (threadIndex.x + threadIndex.y) % 4 == 0)
{
float16_t accumulateValue = calcBt709Luminance(diffuseLight + specularLight);
int prefixTask = NEECacheUtils.convertIDToPrefixSumID(surfaceIndex, primitiveIndex, PrimitiveIDPrefixSum);
int prefixTask = NEECacheUtils.convertIDToPrefixSumID(candidate.getSurfaceID(), primitiveIndex, PrimitiveIDPrefixSum);
float16_t randomOffset = RAB_GetNextRandom(rtxdiRNG);
cell.insertSlotTask(prefixTask, accumulateValue, randomOffset, false);
}
Expand Down

0 comments on commit f41d736

Please sign in to comment.