[Mesa-dev] [Bug 111734] Geometry shader with double interpolators fails in LLVM

bugzilla-daemon at freedesktop.org bugzilla-daemon at freedesktop.org
Wed Sep 18 13:58:57 UTC 2019


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

            Bug ID: 111734
           Summary: Geometry shader with double interpolators fails in
                    LLVM
           Product: Mesa
           Version: git
          Hardware: x86-64 (AMD64)
                OS: Linux (All)
            Status: NEW
          Severity: normal
          Priority: not set
         Component: Drivers/Vulkan/radeon
          Assignee: mesa-dev at lists.freedesktop.org
          Reporter: baldurk at baldurk.org
        QA Contact: mesa-dev at lists.freedesktop.org

Created attachment 145427
  --> https://bugs.freedesktop.org/attachment.cgi?id=145427&action=edit
VkRunner test showing crash

When compiling a geometry shader with double inputs and outputs I get an LLVM
fatal error:

LLVM ERROR: Cannot select: 0x55de91ee9320: v2i32 = bitcast 0x55de91ee9048
  0x55de91ee9048: f32,ch = BUFFER_LOAD<(dereferenceable load 4 from custom
TargetCustom7, align 1, addrspace 4)> 0x55de91dcfbc8, 0x55de91e58860,
Constant:i32<0>, 0x55de91ee8a98, Constant:i32<0>, Constant:i32<0>,
Constant:i32<1>, Constant:i1<0>
    0x55de91e58860: v4i32,ch = load<(invariant load 16 from %ir.12, addrspace
4)> 0x55de91dcfbc8, 0x55de91e581e0, undef:i64
      0x55de91e581e0: i64 = add 0x55de91e587f8, Constant:i64<32>
        0x55de91e587f8: i64,ch = CopyFromReg 0x55de91dcfbc8, Register:i64 %0
          0x55de91ee8e40: i64 = Register %0
        0x55de91e58318: i64 = Constant<32>
      0x55de91e58380: i64 = undef
    0x55de91ee8b68: i32 = Constant<0>
    0x55de91ee8a98: i32 = add 0x55de91e58e10, Constant:i32<4096>
      0x55de91e58e10: i32 = shl 0x55de91e58998, Constant:i32<2>
        0x55de91e58998: i32,ch = CopyFromReg 0x55de91dcfbc8, Register:i32 %3
          0x55de91e586c0: i32 = Register %3
        0x55de91e58cd8: i32 = Constant<2>
      0x55de91ee8a30: i32 = Constant<4096>
    0x55de91ee8b68: i32 = Constant<0>
    0x55de91ee8b68: i32 = Constant<0>
    0x55de91e58ad0: i32 = Constant<1>
    0x55de91eeb340: i1 = Constant<0>
In function: main

with this geometry shader:

#version 450 core

layout(triangles) in;
layout(triangle_strip, max_vertices = 3) out;

layout(location = 0) in double InDouble[3];
layout(location = 0) out double OutDouble;

void main() {
  gl_Position = vec4(0);
  for(int i = 0; i < 3; i++) {
    OutDouble = InDouble[i];
    EmitVertex();
  }
  EndPrimitive();
}

I've attached a VkRunner test which shows the crash.

-- 
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/mesa-dev/attachments/20190918/09c0dfd0/attachment-0001.html>


More information about the mesa-dev mailing list