0001-Disable-UploadToScreen-and-DownloadFromScreen.patch 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. From c0ff117d3e19e14829a21d89673e03f9d6389043 Mon Sep 17 00:00:00 2001
  2. From: Jan de Groot <jgc@archlinux.org>
  3. Date: Thu, 22 Nov 2012 15:04:42 +0100
  4. Subject: [PATCH] Disable UploadToScreen and DownloadFromScreen. These
  5. functions use invalid pointers, causing crashes. As the
  6. driver is technically unmaintained, it's better to rely on
  7. software fallback than trying to fix the driver
  8. implementation.
  9. ---
  10. src/sis300_accel.c | 2 ++
  11. src/sis310_accel.c | 2 ++
  12. src/sis_accel.c | 2 ++
  13. 3 files changed, 6 insertions(+)
  14. diff --git a/src/sis300_accel.c b/src/sis300_accel.c
  15. index af0527d..2162d76 100644
  16. --- a/src/sis300_accel.c
  17. +++ b/src/sis300_accel.c
  18. @@ -1273,9 +1273,11 @@ SiS300AccelInit(ScreenPtr pScreen)
  19. /* Composite not supported */
  20. +#if 0
  21. /* Upload, download to/from Screen */
  22. pSiS->EXADriverPtr->UploadToScreen = SiSUploadToScreen;
  23. pSiS->EXADriverPtr->DownloadFromScreen = SiSDownloadFromScreen;
  24. +#endif
  25. } else {
  26. diff --git a/src/sis310_accel.c b/src/sis310_accel.c
  27. index 1a6f639..20106ce 100644
  28. --- a/src/sis310_accel.c
  29. +++ b/src/sis310_accel.c
  30. @@ -2303,9 +2303,11 @@ SiS315AccelInit(ScreenPtr pScreen)
  31. }
  32. #endif
  33. +#if 0
  34. /* Upload, download to/from Screen */
  35. pSiS->EXADriverPtr->UploadToScreen = SiSUploadToScreen;
  36. pSiS->EXADriverPtr->DownloadFromScreen = SiSDownloadFromScreen;
  37. +#endif
  38. }
  39. #endif
  40. diff --git a/src/sis_accel.c b/src/sis_accel.c
  41. index c2c24c7..bb08296 100644
  42. --- a/src/sis_accel.c
  43. +++ b/src/sis_accel.c
  44. @@ -801,9 +801,11 @@ SiSAccelInit(ScreenPtr pScreen)
  45. /* Composite not supported */
  46. +#if 0
  47. /* Upload, download to/from Screen */
  48. pSiS->EXADriverPtr->UploadToScreen = SiSUploadToScreen;
  49. pSiS->EXADriverPtr->DownloadFromScreen = SiSDownloadFromScreen;
  50. +#endif
  51. }
  52. #endif /* EXA */
  53. --
  54. 1.8.0