1. 28 May, 2021 2 commits
    • Aaron Plattner's avatar
      os: print registers in the libunwind version of xorg_backtrace() · 42da95d9
      Aaron Plattner authored
      
      
      If the stack walker finds a signal frame, record the cursor at that point and
      then use unw_get_reg() to query the values of the architecture-specific
      registers at the frame that triggered the signal.
      
      Example output:
      
       (EE) Backtrace:
       (EE) 0: hw/xfree86/Xorg (OsSigHandler+0x25) [0x561458bb8195]
       (EE) 1: <signal handler called>
       (EE) 2: hw/xfree86/Xorg (dix_main+0x9c) [0x561458aead6c]
       (EE) 3: /usr/lib/libc.so.6 (__libc_start_main+0xd5) [0x7f2d23170b25]
       (EE) 4: hw/xfree86/Xorg (_start+0x2e) [0x561458aad8be]
       (EE)
       (EE) Registers at frame #2:
       (EE)   rax: 0x0
       (EE)   rbx: 0x561458c3ae60
       (EE)   rcx: 0x7f2d23328943
       (EE)   rdx: 0x0
       (EE)   rsi: 0x7ffcb6025030
       (EE)   rdi: 0xe
       (EE)   rbp: 0x0
       (EE)   rsp: 0x7ffcb6026430
       (EE)    r8: 0x0
       (EE)    r9: 0x0
       (EE)   r10: 0x8
       (EE)   r11: 0x246
       (EE)   r12: 0x561458aad890
       (EE)   r13: 0x0
       (EE)   r14: 0x0
       (EE)   r15: 0x0
       (EE)
       (EE) Segmentation fault at address 0x0
      Signed-off-by: Aaron Plattner's avatarAaron Plattner <aplattner@nvidia.com>
      42da95d9
    • Aaron Plattner's avatar
      os: print <signal handler called> if unw_is_signal_frame() · f13dd7fd
      Aaron Plattner authored
      
      
      libunwind has a function to query whether the cursor points to a signal frame.
      Use this to print
      
       1: <signal handler called>
      
      like GDB does, rather than printing something less useful such as
      
       1: /usr/lib/libpthread.so.0 (funlockfile+0x60) [0x7f679838b870]
      Signed-off-by: Aaron Plattner's avatarAaron Plattner <aplattner@nvidia.com>
      f13dd7fd
  2. 18 May, 2021 1 commit
  3. 17 May, 2021 1 commit
  4. 11 May, 2021 15 commits
  5. 30 Apr, 2021 1 commit
    • Erik Kurzinger's avatar
      xwayland-eglstream: fix X11 rendering to flipping GL / VK window · 4f6fbd50
      Erik Kurzinger authored
      
      
      If a window is being used for direct rendering with OpenGL or Vulkan, and is
      using the flipping path for presentation, it's pixmap will be set to a dma-buf
      backed pixmap created by the client-side GL driver. However, this means that
      xwl_glamor_eglstream_post_damage won't work since it requires that the pixmap
      has an EGLSurface that it can render to, which dma-buf backed pixmaps do not.
      
      In this case, though, xwl_glamor_eglstream_post_damage is not necessary since
      glamor will have rendered directly to the pixmap, so we can simply pass it
      directly to the compositor. There's no need for the intermediate copy we
      normally do in that function.
      
      Therefore, this change adds an early-return case to post_damage for dma-buf
      backed pixmaps, and removes the corresponding asserts from that function and
      allow_commits.
      Signed-off-by: Erik Kurzinger's avatarErik Kurzinger <ekurzinger@nvidia.com>
      Acked-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
      Reviewed-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
      4f6fbd50
  6. 24 Apr, 2021 3 commits
  7. 16 Apr, 2021 7 commits
  8. 13 Apr, 2021 1 commit
  9. 09 Apr, 2021 9 commits