Skip to content

Bump SM version to 6.10 - #7804

Merged
Joshua Batista (bob80905) merged 14 commits into
microsoft:mainfrom
bob80905:increment_max_shader_minor_allowed
Oct 10, 2025
Merged

Joshua Batista (bob80905) merged 14 commits into
microsoft:mainfrom
bob80905:increment_max_shader_minor_allowed

Conversation

@bob80905

Copy link
Copy Markdown
Collaborator

This PR focuses on bumping the max allowable targetable shader model version to 6.10, up from the previous max 6.9.
It mimics this one for 6.9: #7075

Fixes #7802

@github-actions

github-actions Bot commented Oct 7, 2025 •

Copy link
Copy Markdown
Contributor

✅ With the latest revision this PR passed the Python code formatter.

Comment thread lib/DXIL/DxilShaderModel.cpp Resolved
Comment thread lib/DxcSupport/HLSLOptions.cpp Resolved
Comment thread lib/DxcSupport/HLSLOptions.cpp Resolved
Comment thread lib/DxcSupport/HLSLOptions.cpp Resolved
Comment thread lib/DxcSupport/HLSLOptions.cpp Resolved
Comment thread lib/DxcSupport/HLSLOptions.cpp Resolved
Comment thread lib/DxcSupport/HLSLOptions.cpp Resolved
Comment thread lib/DxcSupport/HLSLOptions.cpp Resolved
Comment thread lib/DxcSupport/HLSLOptions.cpp Resolved

@tex3d Tex Riddell (tex3d) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

GetTargetVersionFromString duplicates ParseTargetProfile functionality but drops the stage string. Could we move ParseTargetProfile to DxilShaderModel.cpp and declare in DxilShaderModel.h, then use this instead? Also see recommended changes to ParseTargetProfile.

That would keep parsing in a single, more maintainable location. It could also be used to greatly simplify the ShaderModel::GetByName implementation as well (then I don't think we need as much code generation from hctdb_instrhelp.py).

I also recommended a different approach for updating hctdb_instrhelp.py.

Comment thread utils/hct/hctdb_instrhelp.py Resolved
Comment thread utils/hct/hctdb_instrhelp.py Resolved
Comment thread include/dxc/Support/HLSLOptions.td Outdated
/* <py::lines('VALRULE-TEXT')>hctdb_instrhelp.get_target_profiles()</py>*/
// VALRULE-TEXT:BEGIN
HelpText<"Set target profile. \n\t<profile>: ps_6_0, ps_6_1, ps_6_2, ps_6_3, ps_6_4, ps_6_5, ps_6_6, ps_6_7, ps_6_8, ps_6_9, ps_6_10, \n\t\t vs_6_0, vs_6_1, vs_6_2, vs_6_3, vs_6_4, vs_6_5, vs_6_6, vs_6_7, vs_6_8, vs_6_9, vs_6_10, \n\t\t gs_6_0, gs_6_1, gs_6_2, gs_6_3, gs_6_4, gs_6_5, gs_6_6, gs_6_7, gs_6_8, gs_6_9, gs_6_10, \n\t\t hs_6_0, hs_6_1, hs_6_2, hs_6_3, hs_6_4, hs_6_5, hs_6_6, hs_6_7, hs_6_8, hs_6_9, hs_6_10, \n\t\t ds_6_0, ds_6_1, ds_6_2, ds_6_3, ds_6_4, ds_6_5, ds_6_6, ds_6_7, ds_6_8, ds_6_9, ds_6_10, \n\t\t cs_6_0, cs_6_1, cs_6_2, cs_6_3, cs_6_4, cs_6_5, cs_6_6, cs_6_7, cs_6_8, cs_6_9, cs_6_10, \n\t\t lib_6_1, lib_6_2, lib_6_3, lib_6_4, lib_6_5, lib_6_6, lib_6_7, lib_6_8, lib_6_9, lib_6_10, \n\t\t ms_6_5, ms_6_6, ms_6_7, ms_6_8, ms_6_9, ms_6_10, \n\t\t as_6_5, as_6_6, as_6_7, as_6_8, as_6_9, as_6_10, \n\t\t ">;
HelpText<"Set target profile. \n\t<profile>: ps_(6, 0), ps_(6, 1), ps_(6, 2), ps_(6, 3), ps_(6, 4), ps_(6, 5), ps_(6, 6), ps_(6, 7), ps_(6, 8), ps_(6, 9), ps_(6, 10), \n\t\t vs_(6, 0), vs_(6, 1), vs_(6, 2), vs_(6, 3), vs_(6, 4), vs_(6, 5), vs_(6, 6), vs_(6, 7), vs_(6, 8), vs_(6, 9), vs_(6, 10), \n\t\t gs_(6, 0), gs_(6, 1), gs_(6, 2), gs_(6, 3), gs_(6, 4), gs_(6, 5), gs_(6, 6), gs_(6, 7), gs_(6, 8), gs_(6, 9), gs_(6, 10), \n\t\t hs_(6, 0), hs_(6, 1), hs_(6, 2), hs_(6, 3), hs_(6, 4), hs_(6, 5), hs_(6, 6), hs_(6, 7), hs_(6, 8), hs_(6, 9), hs_(6, 10), \n\t\t ds_(6, 0), ds_(6, 1), ds_(6, 2), ds_(6, 3), ds_(6, 4), ds_(6, 5), ds_(6, 6), ds_(6, 7), ds_(6, 8), ds_(6, 9), ds_(6, 10), \n\t\t cs_(6, 0), cs_(6, 1), cs_(6, 2), cs_(6, 3), cs_(6, 4), cs_(6, 5), cs_(6, 6), cs_(6, 7), cs_(6, 8), cs_(6, 9), cs_(6, 10), \n\t\t lib_(6, 1), lib_(6, 2), lib_(6, 3), lib_(6, 4), lib_(6, 5), lib_(6, 6), lib_(6, 7), lib_(6, 8), lib_(6, 9), lib_(6, 10), \n\t\t ms_(6, 5), ms_(6, 6), ms_(6, 7), ms_(6, 8), ms_(6, 9), ms_(6, 10), \n\t\t as_(6, 5), as_(6, 6), as_(6, 7), as_(6, 8), as_(6, 9), as_(6, 10), \n\t\t ">;

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This isn't right is it?

Comment thread utils/hct/hctdb_instrhelp.py Resolved
Comment thread lib/DXIL/DxilShaderModel.cpp Resolved
Comment thread lib/DxcSupport/HLSLOptions.cpp Resolved

@tex3d Tex Riddell (tex3d) left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@bob80905
Joshua Batista (bob80905) merged commit 0bf8434 into microsoft:main Oct 10, 2025
@github-project-automation github-project-automation Bot moved this from New to Done in HLSL Roadmap Oct 10, 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.

Bump highest targetable shader model version to 6.10

3 participants