Skip to content

fix(dlss): #2193's review notes: the tolerance as dlss_checks.h says it, each refused size logged once - #2413

Merged
hckrman101 merged 1 commit into
NotRexed:mainfrom
pmwork-personal:fix/dlss-near-mode-nits
Nov 11, 2026
Merged

hckrman101 merged 1 commit into
NotRexed:mainfrom
pmwork-personal:fix/dlss-near-mode-nits

Conversation

@pmwork-personal

Copy link
Copy Markdown
Contributor

#2193 was merged before I pushed hckrman101's three review notes to it, so they come here on their own. No behavior changes beyond a log line.

What changed

  • The comment says the real tolerance. prepare's comment (gpu/vk/vk_dlss.cpp, near line 300) said a size "a pixel or two" outside a range is taken. It now says what dlss_checks.h's mode_for takes: at most 1/64 of the range's largest size on each axis, 2 pixels at the least.
  • Each refused size is logged (review note). fail() in vk_temporal.cpp logs a reason again only when its pointer changes, and the refused message was one static buffer, so a second, different refused size was not logged until the 600th repeat. The message now has two buffers, and a new size goes into the other one: fail() sees a new pointer and logs it in its usual format. (Logging it in prepare as well could print a size twice when another reason came between two refusals, because fail()'s last reason is not reset on success.)
  • test_dlss_checks.py: the assert's message on its own line, like the other asserts (review note).

Tested

🤖 Generated with Claude Code

….h says it, each refused size logged once

NotRexed#2193 was merged before these three review notes were pushed to it:

- prepare's comment says what mode_for takes: at most 1/64 of the range's
  largest size on each axis (2 pixels at the least), not "a pixel or two".
- fail() logs a reason again only when its pointer changes, and the refused
  message was one buffer, so a second refused size was not logged until the
  600th repeat. Two buffers now, the other one for a new size: fail() sees a
  new pointer and logs each refused size once, as any reason.
- test_dlss_checks.py: the assert's message on its own line.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@hckrman101
hckrman101 merged commit 01c4e32 into NotRexed:main Nov 11, 2026
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant