Revert "Pass texture base level to shaders on D3D11"

This reverts commit 3026829e155bd89b5ca5b7b7c5267699b9192557.

Change-Id: I0b4c3f5b1453b993b149423bb1ce407f4918cf54
Reviewed-on: https://chromium-review.googlesource.com/325435
Reviewed-by: Geoff Lang <geofflang@chromium.org>
diff --git a/src/compiler/translator/OutputHLSL.cpp b/src/compiler/translator/OutputHLSL.cpp
index 602c839..170875e 100644
--- a/src/compiler/translator/OutputHLSL.cpp
+++ b/src/compiler/translator/OutputHLSL.cpp
@@ -183,8 +183,8 @@
         mUniformHLSL->reserveUniformRegisters(3);
     }
 
-    // Reserve registers for the default uniform block, driver constants and sampler metadata
-    mUniformHLSL->reserveInterfaceBlockRegisters(3);
+    // Reserve registers for the default uniform block and driver constants
+    mUniformHLSL->reserveInterfaceBlockRegisters(2);
 }
 
 OutputHLSL::~OutputHLSL()
@@ -506,11 +506,6 @@
             }
 
             out << "};\n";
-
-            if (mOutputType == SH_HLSL_4_1_OUTPUT)
-            {
-                mUniformHLSL->samplerMetadataUniforms(out);
-            }
         }
         else
         {
@@ -612,11 +607,6 @@
 
             out << "};\n"
                    "\n";
-
-            if (mOutputType == SH_HLSL_4_1_OUTPUT)
-            {
-                mUniformHLSL->samplerMetadataUniforms(out);
-            }
         }
         else
         {
diff --git a/src/compiler/translator/UniformHLSL.cpp b/src/compiler/translator/UniformHLSL.cpp
index b1df8b4..20961c4 100644
--- a/src/compiler/translator/UniformHLSL.cpp
+++ b/src/compiler/translator/UniformHLSL.cpp
@@ -246,17 +246,6 @@
     }
 }
 
-void UniformHLSL::samplerMetadataUniforms(TInfoSinkBase &out)
-{
-    if (mSamplerRegister > 0)
-    {
-        out << "cbuffer SamplerMetadata : register(b2)\n"
-            << "{\n"
-            << "    int samplerMetadata[" << mSamplerRegister << "] : packoffset(c0);\n"
-            << "};\n";
-    }
-}
-
 TString UniformHLSL::interfaceBlocksHeader(const ReferencedSymbols &referencedInterfaceBlocks)
 {
     TString interfaceBlocks;
diff --git a/src/compiler/translator/UniformHLSL.h b/src/compiler/translator/UniformHLSL.h
index e377480..0f51f34 100644
--- a/src/compiler/translator/UniformHLSL.h
+++ b/src/compiler/translator/UniformHLSL.h
@@ -31,10 +31,6 @@
     void uniformsHeader(TInfoSinkBase &out,
                         ShShaderOutput outputType,
                         const ReferencedSymbols &referencedUniforms);
-
-    // Must be called after uniformsHeader
-    void samplerMetadataUniforms(TInfoSinkBase &out);
-
     TString interfaceBlocksHeader(const ReferencedSymbols &referencedInterfaceBlocks);
 
     // Used for direct index references