Repository navigation
Conversation
5ae8eed to
8ce2cff
Compare
8ce2cff to
ae76329
Compare
…lor-compare-wrap # Conflicts: # docs/dev/TechnicalDebt.md
adriadam10
left a comment
There was a problem hiding this comment.
Thanks for the PR. Two issues:
- The new
point, wraprow passes without the change: revertingSpirvImageEmitter.cppand rebuildingagc_driver_emulated_color_compare_tests, the test still passes on RADV and on the lavapipe CI installs (Mesa 25.2.8, LLVM 20). A test that passes onmaindoesn't cover the fix. - SPIR-V defines
OpSModas taking the sign of operand 2 (extent, always positive here), soOpSModand theOpSRem+ correction give the same result on any conformant driver. This reads as a workaround for a bug in llvmpipe/LLVM 15, not a semantic fix.
Please show a conformant driver (version and output) where OpSMod returns a wrong value for these inputs, and make the test fail on main in Linux CI, or drop the PR. If it is a driver bug, say so in the TechnicalDebt entry instead of describing it as an unmeasured hardware behaviour.
|
Closing for now. The reported failure reproduces on llvmpipe LLVM 15.0.6, but the change is a workaround for that driver behavior rather than a SPIR-V semantic fix, and the added test passes on the current Linux CI driver without the change. I do not have evidence of incorrect OpSMod behavior on a conformant driver. I will reopen if that evidence becomes available or if this is retained explicitly as a driver-specific workaround. |
What
Normalize negative texel indices into the image extent when emulating color-texture comparison sampling with wrap addressing. Add point-filtered wrap coverage alongside the existing bilinear wrap checks.
Tested
agc_driver_emulated_color_compare_testswith GCC 12.2.agc_driver_emulated_color_compare: passed, including point and bilinear wrap, offsets, border modes, and unsupported-mode rejection checks.tools/check_conventions.py --base upstream/main: passed.Checklist
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed in TechnicalDebt.mdfiles or images added to the repository