Skip to content

[mlir][dxsa] Add dcl_tessellator_partitioning instruction#127

Open
tagolog wants to merge 1 commit intoaccess-softek:dxsa-mlirfrom
tagolog:dxsa-mlir-dcl_tessellator_partitioning
Open

[mlir][dxsa] Add dcl_tessellator_partitioning instruction#127
tagolog wants to merge 1 commit intoaccess-softek:dxsa-mlirfrom
tagolog:dxsa-mlir-dcl_tessellator_partitioning

Conversation

@tagolog
Copy link
Copy Markdown

@tagolog tagolog commented May 8, 2026

Example:
dxsa.dcl_tessellator_partitioning partitioning_integer

@tagolog tagolog requested review from asavonic and asl May 8, 2026 01:00
Comment thread mlir/lib/Target/DXSA/BinaryParser.cpp Outdated
auto partitioningMode = DECODE_D3D11_SB_TESS_PARTITIONING(opcodeToken);
if (partitioningMode == D3D11_SB_TESSELLATOR_PARTITIONING_UNDEFINED ||
partitioningMode > D3D11_SB_TESSELLATOR_PARTITIONING_FRACTIONAL_EVEN) {
return emitError(loc, "invalid tessellator partitioning mode");
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.

I am wondering, if it would make sense in all these emitError() calls everywhere to show the actual invalid value (no need to elaborate on ranges, etc.):

  return emitError(loc, "invalid tessellator partitioning mode ") << partitioningMode;

Example:
  dxsa.dcl_tessellator_partitioning partitioning_integer

Signed-off-by: Vladimir Shiryaev <tagolog@users.noreply.github.com>
@tagolog tagolog force-pushed the dxsa-mlir-dcl_tessellator_partitioning branch from b5ec8de to 00a163e Compare May 9, 2026 06:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants