<html>
    <head>
      <base href="https://bugs.freedesktop.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - LunarG Vulkan smoke test fragement shader compiling issue"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100274#c2">Comment # 2</a>
              on <a class="bz_bug_link 
          bz_status_NEEDINFO "
   title="NEEDINFO - LunarG Vulkan smoke test fragement shader compiling issue"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=100274">bug 100274</a>
              from <span class="vcard"><a class="email" href="mailto:randy.xu@intel.com" title="Randy <randy.xu@intel.com>"> <span class="fn">Randy</span></a>
</span></b>
        <pre>The fragement shader is converted to spir-v IR through glslangValidator tool

# glslangValidator -V -H -o Smoke.frag.spv Smoke.frag

The Smoke.frag.spv is correct and can be disassembled as

# spirv-dis Smoke.frag.spv

; SPIR-V
; Version: 1.0
; Generator: Khronos Glslang Reference Front End; 1
; Bound: 19
; Schema: 0
               OpCapability Shader
          %1 = OpExtInstImport "GLSL.std.450"
               OpMemoryModel Logical GLSL450
               OpEntryPoint Fragment %main "main" %fragcolor %color
               OpExecutionMode %main OriginUpperLeft
               OpSource ESSL 310
               OpName %main "main"
               OpName %fragcolor "fragcolor"
               OpName %color "color"
               OpDecorate %fragcolor Location 0
       %void = OpTypeVoid
          %3 = OpTypeFunction %void
      %float = OpTypeFloat 32
    %v4float = OpTypeVector %float 4
%_ptr_Output_v4float = OpTypePointer Output %v4float
  %fragcolor = OpVariable %_ptr_Output_v4float Output
    %v3float = OpTypeVector %float 3
%_ptr_Input_v3float = OpTypePointer Input %v3float
      %color = OpVariable %_ptr_Input_v3float Input
  %float_0_5 = OpConstant %float 0.5
       %main = OpFunction %void None %3
          %5 = OpLabel
         %13 = OpLoad %v3float %color
         %15 = OpCompositeExtract %float %13 0
         %16 = OpCompositeExtract %float %13 1
         %17 = OpCompositeExtract %float %13 2
         %18 = OpCompositeConstruct %v4float %15 %16 %17 %float_0_5
               OpStore %fragcolor %18
               OpReturn
               OpFunctionEnd</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>