1. 11 Jul, 2022 1 commit
  2. 13 Apr, 2022 1 commit
    • Raphael Isemann's avatar
      Fix uninitialized read in MGAEnableSecondOutPut · 63865356
      Raphael Isemann authored
      
      
      `MGAGRestore` allocated `ModeInfo` without initializing its memory and then
      passes it into `MGAEnableSecondOutPut` via `MGAEnableSecondOutPut(pScrn, &ModeInfo);`.
      
      `MGAEnableSecondOutPut` then reads the unitialized memory in the line
      `if ( !(pModeInfo->flSignalMode & POS_HSYNC) )`.
      
      This patch just zeroes the memory to prevent those branches to be randomly
      taken.
      Signed-off-by: Raphael Isemann's avatarRaphael Isemann <teemperor@gmail.com>
      63865356
  3. 22 Jan, 2022 3 commits
  4. 04 May, 2019 1 commit
  5. 08 Dec, 2018 3 commits
  6. 29 Nov, 2018 3 commits
  7. 26 Nov, 2018 4 commits
  8. 25 Nov, 2018 1 commit
  9. 21 Nov, 2018 1 commit
    • Mikulas Patocka's avatar
      mga_drv: fix image corruption due to memcpy reordering · a939aa56
      Mikulas Patocka authored and Kevin Brace's avatar Kevin Brace committed
      
      
      The memcpy specification doesn't specify how the destination is written -
      and on glibc 2.19 memcpy is doing some bytewise writes with the rep stosb
      instruction. These bytewise writes confuse the hardware (because it
      expects 32-bit writes) and result in image corruption.
      
      This patch replaces memcpy with explicit writes, so that the sequential
      write order and 32-bit write size is guaranteed. We use the "volatile"
      attribute to make sure that compiler optimizations won't cause write
      reordering. When reading the memory, we use a structure with "packed"
      attribute to avoid unaligned traps on RISC machines.
      Tested-by: Kevin Brace's avatarKevin Brace <kevinbrace@gmx.com>
      Signed-off-by: default avatarMikulas Patocka <mikulas@twibright.com>
      a939aa56
  10. 18 Nov, 2018 1 commit
  11. 25 Mar, 2018 1 commit
  12. 20 Feb, 2018 4 commits
  13. 17 Jul, 2017 1 commit
    • Emil Velikov's avatar
      xf86-video-mga: remove the GlxSetVisualConfigs stub and friends · 29988689
      Emil Velikov authored and Emil Velikov's avatar Emil Velikov committed
      
      
      The function was an empty since 2008 at least. Remove it alongside the
      unused GLX visuals code.
      
      With this all the GL/GLX dependencies in the driver are gone.
      
      Cc: Mathieu Larouche <mathieu.larouche@matrox.com>
      Cc: Dave Airlie <airlied@redhat.com>
      Signed-off-by: Emil Velikov's avatarEmil Velikov <emil.velikov@collabora.com>
      ---
      There's a GLX reference in mga_ucode.h - a file which was seemingly
      never used since day 1. I'm not going to bother with that, since I've
      taken enough of a diversion already ;-)
      29988689
  14. 20 Jun, 2017 1 commit
  15. 14 Feb, 2017 1 commit
  16. 26 Jan, 2017 5 commits
  17. 17 Jan, 2017 1 commit
  18. 27 Jul, 2016 2 commits
  19. 19 Jul, 2016 1 commit
  20. 17 Sep, 2015 1 commit
  21. 24 Aug, 2015 2 commits
  22. 01 Jul, 2015 1 commit