Skip to content
Snippets Groups Projects
  1. Jun 27, 2012
  2. Jun 25, 2012
  3. Jun 17, 2012
  4. Jun 12, 2012
  5. Jun 11, 2012
  6. Jun 09, 2012
  7. Jun 08, 2012
  8. Jun 07, 2012
  9. Jun 06, 2012
  10. Jun 05, 2012
  11. May 16, 2012
  12. May 12, 2012
  13. May 10, 2012
  14. May 03, 2012
    • Paulo Zanoni's avatar
      modetest: print more about our properties · d72a44c7
      Paulo Zanoni authored and Simona Vetter's avatar Simona Vetter committed
      
      In the future we'll have more than just connector properties, so create
      a dump_prop function that can handle any property (instead of the
      current dump_props function that only handles connector properties).
      
      Also, make this function print a lot more information about the existing
      properties.
      
      Also change the printed indentation of the modes to make the output more
      readable.
      
      The previous function dump_props also segfaulted when we didn't have
      enought permissions. The new function does not segfault in this case (by
      checking for the return value of drmModeGetProperty).
      
      Reviewed-by: default avatarEugeni Dodonov <eugeni.dodonov@intel.com>
      Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      d72a44c7
    • Paulo Zanoni's avatar
      modetest: call drmModeFreePlaneResources · 0ef7644f
      Paulo Zanoni authored and Simona Vetter's avatar Simona Vetter committed
      
      24 (16 direct, 8 indirect) bytes in 1 blocks are definitely lost in loss record 2 of 7
         at 0x402994D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
         by 0x4A25950: drmMalloc (xf86drm.c:147)
         by 0x4A2E26D: drmModeGetPlaneResources (xf86drmMode.c:951)
         by 0x4025FF: dump_planes (modetest.c:276)
         by 0x4052AF: main (modetest.c:1120)
      
      Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      0ef7644f
    • Paulo Zanoni's avatar
      modetest: fix drmModeGetConnector memory leak · a10bcaaf
      Paulo Zanoni authored and Simona Vetter's avatar Simona Vetter committed
      
      Don't "continue" without freeing the connector.
      
      192 bytes in 6 blocks are indirectly lost in loss record 6 of 12
         at 0x4C2779D: malloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
         by 0x4E30DD8: drmMalloc (xf86drm.c:147)
         by 0x4E35024: drmAllocCpy (xf86drmMode.c:73)
         by 0x4E35D69: drmModeGetConnector (xf86drmMode.c:507)
         by 0x402F22: dump_connectors (modetest.c:181)
         by 0x40261B: main (modetest.c:801)
      
      Reviewed-by: default avatarEugeni Dodonov <eugeni.dodonov@intel.com>
      Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      a10bcaaf
    • Paulo Zanoni's avatar
      modetest: fix some compiler warnings · 9b44fbd3
      Paulo Zanoni authored and Simona Vetter's avatar Simona Vetter committed
      
      Use unsigned int instead of int:
      - modetest.c:90:1: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      - modetest.c:98:1: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      - modetest.c:118:1: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      - modetest.c:286:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      - modetest.c:303:17: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      - modetest.c:694:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      - modetest.c:1088:16: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
      
      The 'fd' variable is global, we don't need to pass it as an argument:
      - modetest.c:998:40: warning: unused parameter ‘fd’ [-Wunused-parameter]
      
      We don't use the 'modeset' variable:
      - modetest.c:1025:8: warning: variable ‘modeset’ set but not used [-Wunused-but-set-variable]
      
      V2: rebase, clear some more warnings
      
      Signed-off-by: default avatarPaulo Zanoni <paulo.r.zanoni@intel.com>
      Signed-off-by: default avatarDaniel Vetter <daniel.vetter@ffwll.ch>
      9b44fbd3
  15. May 02, 2012
  16. Apr 24, 2012
  17. Apr 16, 2012
  18. Apr 13, 2012
Loading