Repository navigation
Add SV_BaseVertexLocation and SV_StartInstanceLocation to VSIn - #5770
Conversation
Chris B (llvm-beanz)
left a comment
There was a problem hiding this comment.
We should probably have some tests that verify that users get source errors if they try to use the new system values in older shader models.
|
PR contains clang-format violations. First 50 lines of the diff: --- lib/DXIL/DxilMetadataHelper.cpp (before formatting)
+++ lib/DXIL/DxilMetadataHelper.cpp (after formatting)
@@ -7,10 +7,10 @@
// //
///////////////////////////////////////////////////////////////////////////////
+#include "dxc/DXIL/DxilMetadataHelper.h"
#include "dxc/DXIL/DxilCBuffer.h"
#include "dxc/DXIL/DxilCounters.h"
#include "dxc/DXIL/DxilFunctionProps.h"
-#include "dxc/DXIL/DxilMetadataHelper.h"
#include "dxc/DXIL/DxilModule.h"
#include "dxc/DXIL/DxilOperations.h"
#include "dxc/DXIL/DxilResource.h"
--- lib/DXIL/DxilOperations.cpp (before formatting)
+++ lib/DXIL/DxilOperations.cpp (after formatting)
@@ -9,9 +9,9 @@
// //
///////////////////////////////////////////////////////////////////////////////
+#include "dxc/DXIL/DxilOperations.h"
#include "dxc/DXIL/DxilInstructions.h"
#include "dxc/DXIL/DxilModule.h"
-#include "dxc/DXIL/DxilOperations.h"
#include "dxc/Support/Global.h"
#include "llvm/ADT/ArrayRef.h"See action log for the full diff. |
|
PR contains clang-format violations. First 50 lines of the diff: --- lib/DXIL/DxilMetadataHelper.cpp (before formatting)
+++ lib/DXIL/DxilMetadataHelper.cpp (after formatting)
@@ -7,10 +7,10 @@
// //
///////////////////////////////////////////////////////////////////////////////
+#include "dxc/DXIL/DxilMetadataHelper.h"
#include "dxc/DXIL/DxilCBuffer.h"
#include "dxc/DXIL/DxilCounters.h"
#include "dxc/DXIL/DxilFunctionProps.h"
-#include "dxc/DXIL/DxilMetadataHelper.h"
#include "dxc/DXIL/DxilModule.h"
#include "dxc/DXIL/DxilOperations.h"
#include "dxc/DXIL/DxilResource.h"
--- lib/DXIL/DxilOperations.cpp (before formatting)
+++ lib/DXIL/DxilOperations.cpp (after formatting)
@@ -9,9 +9,9 @@
// //
///////////////////////////////////////////////////////////////////////////////
+#include "dxc/DXIL/DxilOperations.h"
#include "dxc/DXIL/DxilInstructions.h"
#include "dxc/DXIL/DxilModule.h"
-#include "dxc/DXIL/DxilOperations.h"
#include "dxc/Support/Global.h"
#include "llvm/ADT/ArrayRef.h"See action log for the full diff. |
|
PR contains clang-format violations. First 50 lines of the diff: --- lib/DXIL/DxilMetadataHelper.cpp (before formatting)
+++ lib/DXIL/DxilMetadataHelper.cpp (after formatting)
@@ -7,10 +7,10 @@
// //
///////////////////////////////////////////////////////////////////////////////
+#include "dxc/DXIL/DxilMetadataHelper.h"
#include "dxc/DXIL/DxilCBuffer.h"
#include "dxc/DXIL/DxilCounters.h"
#include "dxc/DXIL/DxilFunctionProps.h"
-#include "dxc/DXIL/DxilMetadataHelper.h"
#include "dxc/DXIL/DxilModule.h"
#include "dxc/DXIL/DxilOperations.h"
#include "dxc/DXIL/DxilResource.h"
--- lib/DXIL/DxilOperations.cpp (before formatting)
+++ lib/DXIL/DxilOperations.cpp (after formatting)
@@ -9,9 +9,9 @@
// //
///////////////////////////////////////////////////////////////////////////////
+#include "dxc/DXIL/DxilOperations.h"
#include "dxc/DXIL/DxilInstructions.h"
#include "dxc/DXIL/DxilModule.h"
-#include "dxc/DXIL/DxilOperations.h"
#include "dxc/Support/Global.h"
#include "llvm/ADT/ArrayRef.h"See action log for the full diff. |
|
Added test but it still dependent on moving diagnostic to sema. |
|
Should we have an execution test for these? How does that work for new features like this? |
|
This looks like something we should support in spirv as well. I believe these correspond to the BaseVertex and the BaseInstance builtin. Cassandra Beckley (@cassiebeckley) Could you add this to your list for Q4? Once this PR is merged it should not take too long. |
|
Cassandra Beckley (@cassiebeckley) & Steven Perron (@s-perron), we're going to post a spec for this on the hlsl-specs repo hopefully soon. That may change some details of this implementation. |
|
PR contains clang-format violations. First 50 lines of the diff: --- lib/DXIL/DxilMetadataHelper.cpp (before formatting)
+++ lib/DXIL/DxilMetadataHelper.cpp (after formatting)
@@ -7,10 +7,10 @@
// //
///////////////////////////////////////////////////////////////////////////////
+#include "dxc/DXIL/DxilMetadataHelper.h"
#include "dxc/DXIL/DxilCBuffer.h"
#include "dxc/DXIL/DxilCounters.h"
#include "dxc/DXIL/DxilFunctionProps.h"
-#include "dxc/DXIL/DxilMetadataHelper.h"
#include "dxc/DXIL/DxilModule.h"
#include "dxc/DXIL/DxilOperations.h"
#include "dxc/DXIL/DxilResource.h"
--- lib/DXIL/DxilOperations.cpp (before formatting)
+++ lib/DXIL/DxilOperations.cpp (after formatting)
@@ -9,9 +9,9 @@
// //
///////////////////////////////////////////////////////////////////////////////
+#include "dxc/DXIL/DxilOperations.h"
#include "dxc/DXIL/DxilInstructions.h"
#include "dxc/DXIL/DxilModule.h"
-#include "dxc/DXIL/DxilOperations.h"
#include "dxc/Support/Global.h"
#include "llvm/ADT/ArrayRef.h"See action log for the full diff. |
Yes, but that is easier to do once all support for this is available and has been taken on by another team. |
|
✅ With the latest revision this PR passed the Python code formatter. |
…VSIn New VS Input semantics SV_BaseVertexLocation and SV_StartInstanceLocation are added for BaseVertexLocation and StartInstanceLocation of https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12graphicscommandlist-drawindexedinstanced Also added DXIL operation for these 2 inputs. Fixes microsoft#2907
Rename BaseVertexLocation to StartVertexLocation.
743876c to
a5fc322
Compare
Tex Riddell (tex3d)
left a comment
There was a problem hiding this comment.
SV_StartInstanceLocation should not use Arb in SemanticInterpretationCSV.
Gregory Roth (pow2clk)
left a comment
There was a problem hiding this comment.
Looks good! I think all Tex's comments have been addressed
New VS Input semantics SV_BaseVertexLocation and SV_StartInstanceLocation are added for
BaseVertexLocation and StartInstanceLocation of https://learn.microsoft.com/en-us/windows/win32/api/d3d12/nf-d3d12-id3d12graphicscommandlist-drawindexedinstanced
Also added DXIL operation for these 2 input semantics.
Fixes #2907