Skip to content

NFC: remove dead external validation code paths from dxcompiler#7451

Merged
bob80905 merged 16 commits intomicrosoft:mainfrom
bob80905:add_dxil_dll_path_opt
Jun 5, 2025
Merged

NFC: remove dead external validation code paths from dxcompiler#7451
bob80905 merged 16 commits intomicrosoft:mainfrom
bob80905:add_dxil_dll_path_opt

Conversation

@bob80905
Copy link
Copy Markdown
Collaborator

@bob80905 bob80905 commented May 12, 2025

DXC has now been changed to use the internal validator (loaded by dxcompiler.dll) by default. This PR removes the ability for dxc.exe to load dxil.dll in preparation for a series of changes to fix external validation handling.
Fixes #7525

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented May 12, 2025

✅ With the latest revision this PR passed the C/C++ code formatter.

@bob80905 bob80905 marked this pull request as draft May 14, 2025 23:12
Comment thread include/dxc/Support/dxcapi.use.h Outdated
Comment thread include/dxc/Support/dxcapi.use.h Outdated
Comment thread include/dxc/Support/dxcapi.use.h Outdated
Comment thread include/dxc/Support/dxcapi.use.h Outdated
Comment thread include/dxc/Support/dxcapi.use.h Outdated
Comment thread tools/clang/unittests/HLSLTestLib/FileCheckerTest.cpp Outdated
Comment thread include/dxc/Support/dxcapi.use.h Outdated
Comment thread include/dxc/Support/dxcapi.use.h Outdated
Comment thread tools/clang/tools/dxcompiler/dxcutil.cpp Outdated
Comment thread tools/clang/tools/dxcompiler/dxcutil.cpp Outdated
Comment thread tools/clang/tools/dxcompiler/dxcutil.cpp Outdated
Comment thread tools/clang/unittests/HLSLTestLib/FileCheckerTest.cpp Outdated
Comment thread tools/clang/tools/dxcompiler/dxcapi.cpp Outdated
Comment thread include/dxc/Support/dxcapi.use.h
Comment thread tools/clang/tools/dxcompiler/dxcompilerobj.cpp Outdated
Comment thread tools/clang/tools/dxcompiler/dxcutil.cpp Outdated
@bob80905 bob80905 changed the title Failing first draft Stage 1: remove dxillib.cpp/h, and remove references to external validation May 20, 2025
@bob80905 bob80905 changed the title Stage 1: remove dxillib.cpp/h, and remove references to external validation Stage 1: Remove dxillib.cpp/h, and remove references to external validation May 20, 2025
Comment thread tools/clang/tools/dxcompiler/dxcutil.cpp
@bob80905 bob80905 marked this pull request as ready for review May 20, 2025 03:31
Comment thread tools/clang/tools/dxcompiler/dxcutil.cpp Outdated
Comment thread tools/clang/tools/dxcompiler/dxcutil.cpp Outdated
Copy link
Copy Markdown
Contributor

@tex3d tex3d left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, but the title should probably be revised so it doesn't need to be interpreted within the context of a broader work item to understand what it means. And update the description to describe the change.

Perhaps something like this for the title:

NFC: remove dead external validation code paths from dxcompiler

@bob80905 bob80905 changed the title Stage 1: Remove dxillib.cpp/h, and remove references to external validation NFC: remove dead external validation code paths from dxcompiler May 20, 2025
@bob80905 bob80905 force-pushed the add_dxil_dll_path_opt branch from 30b3914 to 733ce1e Compare May 22, 2025 02:24
@bob80905 bob80905 force-pushed the add_dxil_dll_path_opt branch from 733ce1e to 44c2c67 Compare June 4, 2025 18:36
Copy link
Copy Markdown
Collaborator

@spall spall left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM from my understanding level

@bob80905 bob80905 merged commit 77b2ff6 into microsoft:main Jun 5, 2025
12 checks passed
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Jun 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

Remove dead external validation code paths from dxcompiler.dll

3 participants