Skip to content

shader: lower explicit-LOD 2D gather in the direct DXIL frontend #3066

Done

Description

@RonLogic

Refs #2935 and #1802. image_gather4_l compiles through the startup HLSL frontend, but the direct C++ frontend refuses it. Using source-built 2D pixel and compute containers built from tests/native_direct_container_check.py, opcode 71 (image_gather4_lz) compiled and opcode 68 (image_gather4_l) failed at guest +0x30 with direct image opcode or descriptor modifiers. The local compiler used main ff04a75e plus the separate #3057 ALU patch, which changes no image handling.

I’ll take the explicit-LOD 2D slice. Start with a normalized clamp sampler and a fixed table-bound 2D view. Use the repository’s explicit-gather mip and tap rules, preserve channel order and make the SRV mip window view-relative. Refuse other dimensions, unsupported sampler/operand fields and any form whose layout is unproved.

Acceptance is source-built direct DXIL and exact readback from two mip levels with a nonzero SRV base and distinct taps, including a wrong-mip control. Cover the supported pixel and compute entry points as their bindings allow. #3065 supplies the desktop reference values. Plain implicit image_gather4 and runtime binding changes have separate requirements.

Activity

  1. added a commit that references this issue on Nov 27, 2026
    a9fd148
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions