Browse Source

Fix argument passing for tertiary denorm mode (#1078)

Young Kim 7 years ago
parent
commit
3a77648684

+ 1 - 1
tools/clang/unittests/HLSL/ExecutionTest.cpp

@@ -4935,7 +4935,7 @@ TEST_F(ExecutionTest, DenormTertiaryFloatOpTest) {
     // use shader from data table
     pShaderOp->Shaders.at(0).Target = Target.m_psz;
     pShaderOp->Shaders.at(0).Text = Text.m_psz;
-    pShaderOp->Shaders.at(0).Arguments = Text.m_psz;
+    pShaderOp->Shaders.at(0).Arguments = Arguments.m_psz;
   });
 
   MappedData data;

+ 2 - 2
tools/clang/unittests/HLSL/ShaderOpArithTable.xml

@@ -6304,7 +6304,7 @@
                 <Value>0x00800000</Value>
             </Parameter>
             <Parameter Name="Validation.Expected1">
-                <Value>0x80780000</Value>
+                <Value>0x80F00000</Value>
                 <Value>0x80700000</Value>
                 <Value>0x01380000</Value>
             </Parameter>
@@ -6343,7 +6343,7 @@
                 <Value>0x00800000</Value>
             </Parameter>
             <Parameter Name="Validation.Expected1">
-                <Value>0x80780000</Value>
+                <Value>0x80F00000</Value>
                 <Value>0x80700000</Value>
                 <Value>0x01380000</Value>
             </Parameter>

+ 1 - 1
utils/hct/hctdb_test.py

@@ -841,7 +841,7 @@ def add_test_cases():
      ['1', '2', '2'],
      ['0x80780000', '0x00800000', '0x00800000']],
     [['0', '0x00800000', '0x00800000']],
-     [['0x80780000', '0x80700000', '0x01380000']],
+     [['0x80F00000', '0x80700000', '0x01380000']],
                   'cs_6_2', get_shader_text("tertiary float", "mad"))
 
     # Unary Int