HLSL: small fix for index type in f16tof32 opcode

The f16tof32 opcode was indexing a vector with a float 0, rather
than an int 0.  It may have made no functional difference due to the
identical bit pattern, but code looking at the type could be
confused.
This commit is contained in:
steve-lunarg
2017-02-28 14:14:14 -07:00
parent 69a2c69649
commit fdbfb65ec7
3 changed files with 41 additions and 41 deletions

View File

@@ -11,7 +11,7 @@ gl_FragCoord origin is upper left
0:3 unpackHalf2x16 (temp 2-component vector of float)
0:3 'inF0' (in uint)
0:3 Constant:
0:3 0.000000
0:3 0 (const int)
0:7 Function Definition: PixelShaderFunction1(vu1; (temp 1-component vector of float)
0:7 Function Parameters:
0:7 'inF0' (in 1-component vector of uint)
@@ -32,7 +32,7 @@ gl_FragCoord origin is upper left
0:13 Constant:
0:13 0 (const int)
0:13 Constant:
0:13 0.000000
0:13 0 (const int)
0:13 direct index (temp float)
0:13 unpackHalf2x16 (temp 2-component vector of float)
0:13 direct index (temp uint)
@@ -40,7 +40,7 @@ gl_FragCoord origin is upper left
0:13 Constant:
0:13 1 (const int)
0:13 Constant:
0:13 0.000000
0:13 0 (const int)
0:17 Function Definition: PixelShaderFunction3(vu3; (temp 3-component vector of float)
0:17 Function Parameters:
0:17 'inF0' (in 3-component vector of uint)
@@ -54,7 +54,7 @@ gl_FragCoord origin is upper left
0:18 Constant:
0:18 0 (const int)
0:18 Constant:
0:18 0.000000
0:18 0 (const int)
0:18 direct index (temp float)
0:18 unpackHalf2x16 (temp 2-component vector of float)
0:18 direct index (temp uint)
@@ -62,7 +62,7 @@ gl_FragCoord origin is upper left
0:18 Constant:
0:18 1 (const int)
0:18 Constant:
0:18 0.000000
0:18 0 (const int)
0:18 direct index (temp float)
0:18 unpackHalf2x16 (temp 2-component vector of float)
0:18 direct index (temp uint)
@@ -70,7 +70,7 @@ gl_FragCoord origin is upper left
0:18 Constant:
0:18 2 (const int)
0:18 Constant:
0:18 0.000000
0:18 0 (const int)
0:22 Function Definition: PixelShaderFunction(vu4; (temp 4-component vector of float)
0:22 Function Parameters:
0:22 'inF0' (in 4-component vector of uint)
@@ -84,7 +84,7 @@ gl_FragCoord origin is upper left
0:23 Constant:
0:23 0 (const int)
0:23 Constant:
0:23 0.000000
0:23 0 (const int)
0:23 direct index (temp float)
0:23 unpackHalf2x16 (temp 2-component vector of float)
0:23 direct index (temp uint)
@@ -92,7 +92,7 @@ gl_FragCoord origin is upper left
0:23 Constant:
0:23 1 (const int)
0:23 Constant:
0:23 0.000000
0:23 0 (const int)
0:23 direct index (temp float)
0:23 unpackHalf2x16 (temp 2-component vector of float)
0:23 direct index (temp uint)
@@ -100,7 +100,7 @@ gl_FragCoord origin is upper left
0:23 Constant:
0:23 2 (const int)
0:23 Constant:
0:23 0.000000
0:23 0 (const int)
0:23 direct index (temp float)
0:23 unpackHalf2x16 (temp 2-component vector of float)
0:23 direct index (temp uint)
@@ -108,7 +108,7 @@ gl_FragCoord origin is upper left
0:23 Constant:
0:23 3 (const int)
0:23 Constant:
0:23 0.000000
0:23 0 (const int)
0:27 Function Definition: @main( (temp 4-component vector of float)
0:27 Function Parameters:
0:? Sequence
@@ -143,7 +143,7 @@ gl_FragCoord origin is upper left
0:3 unpackHalf2x16 (temp 2-component vector of float)
0:3 'inF0' (in uint)
0:3 Constant:
0:3 0.000000
0:3 0 (const int)
0:7 Function Definition: PixelShaderFunction1(vu1; (temp 1-component vector of float)
0:7 Function Parameters:
0:7 'inF0' (in 1-component vector of uint)
@@ -164,7 +164,7 @@ gl_FragCoord origin is upper left
0:13 Constant:
0:13 0 (const int)
0:13 Constant:
0:13 0.000000
0:13 0 (const int)
0:13 direct index (temp float)
0:13 unpackHalf2x16 (temp 2-component vector of float)
0:13 direct index (temp uint)
@@ -172,7 +172,7 @@ gl_FragCoord origin is upper left
0:13 Constant:
0:13 1 (const int)
0:13 Constant:
0:13 0.000000
0:13 0 (const int)
0:17 Function Definition: PixelShaderFunction3(vu3; (temp 3-component vector of float)
0:17 Function Parameters:
0:17 'inF0' (in 3-component vector of uint)
@@ -186,7 +186,7 @@ gl_FragCoord origin is upper left
0:18 Constant:
0:18 0 (const int)
0:18 Constant:
0:18 0.000000
0:18 0 (const int)
0:18 direct index (temp float)
0:18 unpackHalf2x16 (temp 2-component vector of float)
0:18 direct index (temp uint)
@@ -194,7 +194,7 @@ gl_FragCoord origin is upper left
0:18 Constant:
0:18 1 (const int)
0:18 Constant:
0:18 0.000000
0:18 0 (const int)
0:18 direct index (temp float)
0:18 unpackHalf2x16 (temp 2-component vector of float)
0:18 direct index (temp uint)
@@ -202,7 +202,7 @@ gl_FragCoord origin is upper left
0:18 Constant:
0:18 2 (const int)
0:18 Constant:
0:18 0.000000
0:18 0 (const int)
0:22 Function Definition: PixelShaderFunction(vu4; (temp 4-component vector of float)
0:22 Function Parameters:
0:22 'inF0' (in 4-component vector of uint)
@@ -216,7 +216,7 @@ gl_FragCoord origin is upper left
0:23 Constant:
0:23 0 (const int)
0:23 Constant:
0:23 0.000000
0:23 0 (const int)
0:23 direct index (temp float)
0:23 unpackHalf2x16 (temp 2-component vector of float)
0:23 direct index (temp uint)
@@ -224,7 +224,7 @@ gl_FragCoord origin is upper left
0:23 Constant:
0:23 1 (const int)
0:23 Constant:
0:23 0.000000
0:23 0 (const int)
0:23 direct index (temp float)
0:23 unpackHalf2x16 (temp 2-component vector of float)
0:23 direct index (temp uint)
@@ -232,7 +232,7 @@ gl_FragCoord origin is upper left
0:23 Constant:
0:23 2 (const int)
0:23 Constant:
0:23 0.000000
0:23 0 (const int)
0:23 direct index (temp float)
0:23 unpackHalf2x16 (temp 2-component vector of float)
0:23 direct index (temp uint)
@@ -240,7 +240,7 @@ gl_FragCoord origin is upper left
0:23 Constant:
0:23 3 (const int)
0:23 Constant:
0:23 0.000000
0:23 0 (const int)
0:27 Function Definition: @main( (temp 4-component vector of float)
0:27 Function Parameters:
0:? Sequence