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

@ -29,7 +29,7 @@ gl_FragCoord origin is upper left
0:? 'clip0' ( temp 3-component vector of float)
0:6 Constant:
0:6 0 (const int)
0:6 direct index ( temp float)
0:6 direct index ( in float ClipDistance)
0:? 'clip0' ( in 4-element array of float ClipDistance)
0:6 Constant:
0:6 0 (const int)
@ -38,7 +38,7 @@ gl_FragCoord origin is upper left
0:? 'clip0' ( temp 3-component vector of float)
0:6 Constant:
0:6 1 (const int)
0:6 direct index ( temp float)
0:6 direct index ( in float ClipDistance)
0:? 'clip0' ( in 4-element array of float ClipDistance)
0:6 Constant:
0:6 1 (const int)
@ -47,14 +47,14 @@ gl_FragCoord origin is upper left
0:? 'clip0' ( temp 3-component vector of float)
0:6 Constant:
0:6 2 (const int)
0:6 direct index ( temp float)
0:6 direct index ( in float ClipDistance)
0:? 'clip0' ( in 4-element array of float ClipDistance)
0:6 Constant:
0:6 2 (const int)
0:? Sequence
0:6 move second child to first child ( temp float)
0:? 'clip1' ( temp float)
0:6 direct index ( temp float)
0:6 direct index ( in float ClipDistance)
0:? 'clip0' ( in 4-element array of float ClipDistance)
0:6 Constant:
0:6 3 (const int)
@ -103,7 +103,7 @@ gl_FragCoord origin is upper left
0:? 'clip0' ( temp 3-component vector of float)
0:6 Constant:
0:6 0 (const int)
0:6 direct index ( temp float)
0:6 direct index ( in float ClipDistance)
0:? 'clip0' ( in 4-element array of float ClipDistance)
0:6 Constant:
0:6 0 (const int)
@ -112,7 +112,7 @@ gl_FragCoord origin is upper left
0:? 'clip0' ( temp 3-component vector of float)
0:6 Constant:
0:6 1 (const int)
0:6 direct index ( temp float)
0:6 direct index ( in float ClipDistance)
0:? 'clip0' ( in 4-element array of float ClipDistance)
0:6 Constant:
0:6 1 (const int)
@ -121,14 +121,14 @@ gl_FragCoord origin is upper left
0:? 'clip0' ( temp 3-component vector of float)
0:6 Constant:
0:6 2 (const int)
0:6 direct index ( temp float)
0:6 direct index ( in float ClipDistance)
0:? 'clip0' ( in 4-element array of float ClipDistance)
0:6 Constant:
0:6 2 (const int)
0:? Sequence
0:6 move second child to first child ( temp float)
0:? 'clip1' ( temp float)
0:6 direct index ( temp float)
0:6 direct index ( in float ClipDistance)
0:? 'clip0' ( in 4-element array of float ClipDistance)
0:6 Constant:
0:6 3 (const int)