Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update barycentric with new spec #265

Merged
merged 4 commits into from May 4, 2017

Conversation

yskim1501
Copy link
Contributor

  1. Adding SV_Barycentric and removing barycentric intrinsics/dxilops
  2. GetAttributeAtVertex only thakes no_interpolation attribute
  3. SV_Barycentric can take any interpolation modifier except nointerpolationg

Note that the signature packing of SV_Barycentric is set to "Not Packed" for now. This could potentially change based on the feedback from hardware vendors.

@msftclas
Copy link

msftclas commented May 2, 2017

@youngkim93,
Thanks for your contribution as a Microsoft full-time employee or intern. You do not need to sign a CLA.
Thanks,
Microsoft Pull Request Bot

@AppVeyorBot
Copy link

Build DirectXShaderCompiler 1.0.91 completed (commit 6016fbd7c1 by @youngkim93)

1. Adding SV_Barycentric and removing barycentric intrinsics/dxilops
2. GetAttributeAtVertex only thakes no_interpolation attribute
3. SV_Barycentric can take any interpolation modifier except nointerpolation
2. Fix Typo from SV_Barycentric to SV_Barycentrics
@AppVeyorBot
Copy link

Build DirectXShaderCompiler 1.0.95 completed (commit df401c02fe by @youngkim93)

@@ -1559,6 +1542,8 @@ def build_valrules(self):
self.add_valrule("Meta.ForceCaseOnSwitch", "Attribute forcecase only works for switch")
self.add_valrule("Meta.ControlFlowHintNotOnControlFlow", "Control flow hint only works on control flow inst")
self.add_valrule("Meta.TextureType", "elements of typed buffers and textures must fit in four 32-bit quantities")
self.add_valrule("Meta.BarycentricsInterpolation", "Invalid interpolation type '%0' for SV_Barycentrics. Interpolation type must be linear, linear noperspective, linear centroid, linear noperspective centroid, linear sample or linear noperspective sample")
Copy link
Contributor

Choose a reason for hiding this comment

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

This should use the add_valrule_msg function with separate summary line and message with %0 value. Also, since the only invalid enum here is Constant (nointerpolation), why not shorten the message to something like "SV_Barycentrics can not be used with interpolation type 'nointerpolation'" or something like that.

@AppVeyorBot
Copy link

Build DirectXShaderCompiler 1.0.99 completed (commit c10e1bf246 by @youngkim93)

@yskim1501 yskim1501 merged commit 13cf7d4 into microsoft:master May 4, 2017
@yskim1501 yskim1501 deleted the barycentric-sv branch May 4, 2017 00:07
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.

None yet

4 participants