[Bug 100274] LunarG Vulkan smoke test fragement shader compiling issue

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Sun Mar 19 02:01:43 UTC 2017


https://bugs.freedesktop.org/show_bug.cgi?id=100274

--- Comment #2 from Randy <randy.xu at intel.com> ---
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

-- 
You are receiving this mail because:
You are the QA Contact for the bug.
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/intel-3d-bugs/attachments/20170319/0baed0dd/attachment-0001.html>


More information about the intel-3d-bugs mailing list