Repository navigation
feat(shader): implement 1D array gathers - #940
Merged
Merged
Conversation
This was referenced Oct 6, 2026
image_gather4_lz(_o) on a 1D array view threw. The 1D gather emulation now takes the width from the array view's size, keeps the layer coordinate and samples both texel centres of that layer, so 1D array gathers return the same footprint as 1D ones. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Collaborator
|
Checked on hardware (gfx1035 oracle, 1D array 32_FLOAT T#, 3 layers): What I added on your branch:
Merging once CI is green. |
adriadam10
force-pushed
the
feat/image-gather-1d-array
branch
from
October 7, 2026 21:05
f154e5c to
495aa94
Compare
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.
What
image_gather4_lz(_o)on a 1D array view threw. The 1D gather emulation now takes the width from the array view's size, keeps the layer coordinate and samples both texel centres of that layer. As a result, 1D array gathers return the same footprint as 1D ones.It builds on #931 (1D array textures) and #932 (1D gather offsets), both merged.
Tested
Windows 11, MinGW GCC Release build, ctest
agc_driver_graphics,agc_driver_image_one_dimensional_array,agc_driver_image_gather_one_dimensionalandagc_driver_image_gather_one_dimensional_arraypass. The newagc_driver_image_gather_one_dimensional_arraytest (on the GPU) runsimage_gather4_lzandimage_gather4_lz_owith clamp-to-edge and wrap samplers on a 3-layer 1D array. It uses offsets from -5 to +5 and fractional and out-of-range layer coordinates, and compares every component with a CPU reference.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 (attach them to this PR)🤖 Generated with Claude Code