~alan-griffiths/mir/test-without-ABI-bump-libmirserver

Viewing all changes in revision 2320.

  • Committer: Tarmac
  • Author(s): Andreas Pokorny
  • Date: 2015-02-16 14:19:20 UTC
  • mfrom: (2318.1.2 fix-1417581)
  • Revision ID: tarmac-20150216141920-blgvmehzw2fkzuvr
Fix corrupt AMD/radeon cursor again (LP: #1417581)

Include the omitted parts back into the bugfix

Back then when the cursor issue of radeons and kaveris was handled I omitted this check to simplify the fix. This part was necessary to make GBM return correct stride sizes. GBM seems to stick to the size provided on construction, and does not verify what buffer was returned by the driver. Yes this is broken in GBM, but we are currently not alone with this workaround. Fixes: https://bugs.launchpad.net/bugs/1391975, https://bugs.launchpad.net/bugs/1417581.

Approved by Gerry Boland, PS Jenkins bot, Daniel van Vugt, Alexandros Frantzis.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: