[all-commits] [llvm/llvm-project] 678a6c: [DirectX] Implement lowering of SampleGrad. Refact...

Deric C. via All-commits all-commits at lists.llvm.org
Wed Jun 3 08:58:34 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 678a6c7dbbb90b5cf856d487820c63aafa6de25b
      https://github.com/llvm/llvm-project/commit/678a6c7dbbb90b5cf856d487820c63aafa6de25b
  Author: Deric C. <cheung.deric at gmail.com>
  Date:   2026-06-03 (Wed, 03 Jun 2026)

  Changed paths:
    M llvm/lib/Target/DirectX/DXIL.td
    M llvm/lib/Target/DirectX/DXILOpLowering.cpp
    A llvm/test/CodeGen/DirectX/SampleGrad.ll

  Log Message:
  -----------
  [DirectX] Implement lowering of SampleGrad. Refactor sample lowering functions (#200871)

Fixes #192549

This PR builds atop #199745 by adding a helper `lowerSampleOp` function
to refactor `lowerSampleBias` and implement `lowerSampleGrad`.

The `lowerSampleGrad` implementation is very similar to
`lowerSampleBias`, just with ddx and ddy arguments instead of a bias.
Unlike SampleBias, SampleGrad is usable in all shader stages because it
has explicit gradient/derivative arguments.

Assisted-by: GitHub Copilot



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list