Repository navigation
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Opnd::VccLo(106) andOpnd::VccHi(107) inres_block'ssg()scalar dataflow map sos_load_dwordx4/x8withsoff = 106/107resolvesSym::HeapOffset/Sym::HeapSamplerOffsetwhen the register allocator placesshifted heap offsets in
vcc_lo/vcc_hi.< 106sovcc_lo/vcc_hiare never treated as initial root table pointers, and allow0..=107inwave_loops::scalarforRes::HeapLoad/Res::HeapBuffer.self.touch(&sreg_opnd(offset as u8))inemit_smemforRes::HeapLoadandRes::HeapSamplerLoadinstead ofself.regs.insert(value.clone())sovcc_lo/vcc_hi(already declared in the shader header) are notredeclared.
pixel_heap_allows_vcc_offsetsunit test (fails without the fix, passes with it).Testing
x86_64), NVIDIA GeForce RTX 3090, driver580.196.07, backendproton(GE-Proton11-14)python tuxbox.py check --no-gpu:Build the shader compiler: passedPython tests: passedShader compiler tests: passed (418 passed, includingpixel_heap_allows_vcc_offsets)DXBC tests: passed (70 passed)XG layout tests: passed (14 passed)D3D12 Windows typecheck: passedpython tuxbox.py check: 82/83 checks passed.mainfailure:lanes-mesh-samplers(texel 0,0 is 1: point-filtered by the root's s0, not the program's literal linear state), verified to fail identically onmainwithProton - ExperimentalandGE-Proton11-14.