fix(shader): decode reflected value lanes#267
Conversation
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
PR Summary by QodoFix cbuffer/debug decode for double shader values (f64v) and centralize lane mapping
AI Description
Diagram
High-Level Assessment
Files changed (7)
|
📝 WalkthroughWalkthroughAdds shared lane-name selection for reflected shader values, applies it in buffer and debug handlers, extends mocks and tests for f64v, and updates docs-astro ignore rules. ChangesDouble-precision shader lane support
Estimated code review effort: 2 (Simple) | ~15 minutes Sequence Diagram(s)sequenceDiagram
participant Caller
participant BufferOrDebugHandler
participant SharedHelper
Caller->>BufferOrDebugHandler: decode/format ShaderVariable
BufferOrDebugHandler->>SharedHelper: _shader_value_lane_name(var_type)
SharedHelper-->>BufferOrDebugHandler: lane name
BufferOrDebugHandler-->>Caller: extracted value / formatted type
Possibly related PRs
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Code Review by Qodo
1.
|
There was a problem hiding this comment.
Actionable comments posted: 1
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@src/rdc/handlers/_helpers.py`:
- Around line 511-532: Update _shader_value_lane_name so it explicitly maps
64-bit VarType integer codes 7 and 8 to the correct ShaderValue lanes s64v and
u64v instead of falling back to f32v. Also extend the string-name matching in
the same function to recognize sbyte and ubyte alongside the existing
integer/uint checks, while preserving the current handling for the other numeric
types.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: defaults
Review profile: CHILL
Plan: Pro
Run ID: 7bc89b40-4098-43ca-b43a-f87d9119fd30
📒 Files selected for processing (8)
.gitignoresrc/rdc/handlers/_helpers.pysrc/rdc/handlers/buffer.pysrc/rdc/handlers/debug.pytests/mocks/mock_renderdoc.pytests/unit/test_buffer_decode.pytests/unit/test_daemon_shader_api_fix.pytests/unit/test_debug_handlers.py
490f375 to
6c51614
Compare
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
6c51614 to
15ad95f
Compare
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
15ad95f to
fe10bf8
Compare
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
Summary
Scope
Quality follow-up after #265/#266. This does not change VS-IN OBJ export behavior and does not add full IA attribute-table export.
Review
Residual non-blocking notes: bool maps through
u32vand is labeled asuintin debug formatting; very largeu64values are emitted as JSON numbers, so JavaScript clients may lose precision above2^53 - 1.Tests
pixi run checkpixi run checkpixi run e2efe10bf89: lint/typecheck/audit/AUR/tests/build verify passing; macOS and release jobs skipped by workflow rules