HLSL: fix type on clip/cull index result

While adding geometry stage support for clip/cull, it transpired that the
existing clip/cull support was not setting the type of the result of indexing
into the clup/cull variable.  That's a defect independent of the geometry
support, so to simplify the geometry PR, this is addressed separately.

It doesn't appear to change the generated SPIR-V, but that's probably down to
something else tolerating a bad input.
This commit is contained in:
LoopDawg 2017-08-28 14:05:41 -06:00
parent 82e95a3aa5
commit d6f4d9b48c
18 changed files with 180 additions and 174 deletions

View file

@ -111,7 +111,7 @@ Shader version: 500
0:8 0 (const int)
0:? Sequence
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 0 (const int)
@ -123,7 +123,7 @@ Shader version: 500
0:8 Constant:
0:8 0 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 1 (const int)
@ -135,7 +135,7 @@ Shader version: 500
0:8 Constant:
0:8 1 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 2 (const int)
@ -147,7 +147,7 @@ Shader version: 500
0:8 Constant:
0:8 2 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 3 (const int)
@ -160,7 +160,7 @@ Shader version: 500
0:8 3 (const int)
0:? Sequence
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 4 (const int)
@ -172,7 +172,7 @@ Shader version: 500
0:8 Constant:
0:8 0 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 5 (const int)
@ -184,7 +184,7 @@ Shader version: 500
0:8 Constant:
0:8 1 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 6 (const int)
@ -196,7 +196,7 @@ Shader version: 500
0:8 Constant:
0:8 2 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 7 (const int)
@ -327,7 +327,7 @@ Shader version: 500
0:8 0 (const int)
0:? Sequence
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 0 (const int)
@ -339,7 +339,7 @@ Shader version: 500
0:8 Constant:
0:8 0 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 1 (const int)
@ -351,7 +351,7 @@ Shader version: 500
0:8 Constant:
0:8 1 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 2 (const int)
@ -363,7 +363,7 @@ Shader version: 500
0:8 Constant:
0:8 2 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 3 (const int)
@ -376,7 +376,7 @@ Shader version: 500
0:8 3 (const int)
0:? Sequence
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 4 (const int)
@ -388,7 +388,7 @@ Shader version: 500
0:8 Constant:
0:8 0 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 5 (const int)
@ -400,7 +400,7 @@ Shader version: 500
0:8 Constant:
0:8 1 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 6 (const int)
@ -412,7 +412,7 @@ Shader version: 500
0:8 Constant:
0:8 2 (const int)
0:8 move second child to first child ( temp float)
0:8 direct index ( temp float)
0:8 direct index ( out float ClipDistance)
0:? '@entryPointOutput.clip1' ( out 8-element array of float ClipDistance)
0:8 Constant:
0:8 7 (const int)