Implement Vulkan compute infrastructure and GDeflate format foundation#12
Merged
infinityabundance merged 11 commits intomainfrom Feb 19, 2026
Merged
Conversation
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
…etion Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Investigate phased build plan for DirectStorage implementation
Investigation: DirectStorage I/O pipeline implementation roadmap
Feb 16, 2026
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
…eCache Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
…lementation Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Copilot
AI
changed the title
Investigation: DirectStorage I/O pipeline implementation roadmap
Implement Vulkan compute infrastructure: shader modules and descriptor management
Feb 16, 2026
…structure Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
…nchronization Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Co-authored-by: infinityabundance <255699974+infinityabundance@users.noreply.github.com>
Copilot
AI
changed the title
Implement Vulkan compute infrastructure: shader modules and descriptor management
Implement Vulkan compute infrastructure and GDeflate format foundation
Feb 16, 2026
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
Implements GPU compute capabilities and compression format structures for DirectStorage-style I/O pipeline on Linux. Completes Phase 1.2 (Vulkan compute) and begins Phase 2.1 (GDeflate decompression).
Vulkan Compute Infrastructure
Shader Management (
src/ds_runtime_vulkan.cpp):load_spirv_from_file(): Validates magic number (0x07230203), 4-byte alignmentShaderModule: RAII wrapper, move-only semanticsShaderModuleCache: Path-based O(1) lookup.comp→.spvwithglslangValidatorDescriptor System:
create_buffer_copy_layout()(2 bindings),create_decompression_layout()(3 bindings)DescriptorPool: Pre-allocated (32 sets, 96 storage buffers), individual free supportdescriptor_updates::update_storage_buffers(): Batch buffer bindingPipeline Creation:
PipelineLayout: Combines descriptor layouts + push constantsComputePipeline: Links shader to layout, supports pipeline cacheComputePipelineBundle: Complete package (layout + pipeline + descriptors)pipeline_factory: One-call creation for buffer_copy and decompression pipelinesDispatch & Synchronization (
compute_dispatchnamespace):record_compute_dispatch(): Single-call pipeline bind + descriptor bind + push constants + dispatchcalculate_workgroup_count_1d(): Ceiling division for workgroup sizingbarrier_transfer_to_compute(),barrier_compute_to_transfer(),barrier_compute_to_compute()MemoryBarrierInfoabstraction for access masks and pipeline stagesExample Usage:
GDeflate Format Foundation
Structures (
include/gdeflate_format.h):FileHeader: Magic (0x4744464C), version, sizes, block countBlockInfo: Per-block offset, compressed/uncompressed sizes, checksumStreamInfo: Aggregate with validation and size calculationsparse_stream_info()validates entire chainTesting (
tests/gdeflate_format_test.cpp):Example Shaders
shaders/buffer_copy.comp: GPU copy with push constants, 256 thread workgroupsshaders/uppercase.comp: ASCII transformation demonstratinguint8_toperationsshaders/README.md: Conventions and build instructionsStats
ds_gdeflate_format_test)-WconversionNext Steps
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.