1. 04 Mar, 2019 2 commits
  2. 13 Feb, 2019 1 commit
    • Maarten Lankhorst's avatar
      lib/igt_fb: Add support for P01x formats, v5. · cb8e45a6
      Maarten Lankhorst authored
      The P01x formats are planar 16 bits per component, with the unused lower bits set to 0.
      This means they can all be converted the same way. Only the range is slightly different,
      and this is handled in the color_encoding implementation.
      This requires cairo 1.17.2 and pixman 0.36. This works but doesn't give extra precision.
      For more than 8 bits precision a few more patches are required to pixman, pending review:
      Once those are merged, we will require the next pixman release for better precision.
      Changes since v1:
      - Add fallback color definitions when compiling on cairo version < 1.17.2.
      - Skip when FB creation fails on HDR formats, instead of failing.
      Changes since v2:
      - Complain slightly harder when pixman/cairo are out of date.
      - Create a fb with alpha when converting to pixman formats with alpha.
      - Oops, s/pixman_format_code_t/cairo_format_t/
      Changes since v3:
      - Rebase on top of upstream YUV changes.
      Changes since v4:
      - Rebase again.
      - Use drm_fourcc.h from drm-misc-next.
      Signed-off-by: 's avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>  #v4
  3. 11 Feb, 2019 1 commit
  4. 29 Jan, 2019 6 commits
  5. 23 Jan, 2019 1 commit
  6. 13 Dec, 2018 1 commit
  7. 08 Oct, 2018 1 commit
  8. 30 Aug, 2018 1 commit
    • Maarten Lankhorst's avatar
      lib/core: Use libdw to decode stack trace with debugging symbols, v2. · e39e0991
      Maarten Lankhorst authored
      libdw is a new dependency built from the elfutils package. It provides
      us a way to generate line numbers and file names from the instruction
      elfutils is LGPLv3 or GPLv2, so it's ok to link against it.
      IGT-Version: 1.23-g8ae86abd419d (x86_64) (Linux: 4.16.0-1-amd64 x86_64)
      Starting subtest: fail-result
      (meta_test:29661) CRITICAL: Test assertion failure function test_result, file ../tests/meta_test.c:94:
      (meta_test:29661) CRITICAL: Failed assertion: result == 1
      (meta_test:29661) CRITICAL: error: 0 != 1
      Stack trace:
        #0 [__igt_fail_assert+0x20a]
        #1 [test_result+0x7a]
        #2 [__real_main120+0x240]
        #3 [main+0x4a]
        #4 (../csu/libc-start.c) __libc_start_main:344
        #5 [_start+0x2a]
      IGT-Version: 1.23-g8ae86abd419d (x86_64) (Linux: 4.16.0-1-amd64 x86_64)
      Starting subtest: fail-result
      (meta_test:1357) CRITICAL: Test assertion failure function test_result, file ../tests/meta_test.c:94:
      (meta_test:1357) CRITICAL: Failed assertion: result == 1
      (meta_test:1357) CRITICAL: error: 0 != 1
      Stack trace:
        #0 ../lib/igt_core.c:1467 __igt_fail_assert()
        #1 ../tests/meta_test.c:95 test_result()
        #2 ../tests/meta_test.c:137 __real_main120()
        #3 ../tests/meta_test.c:120 main()
        #4 ../csu/libc-start.c:344 __libc_start_main()
        #5 [_start+0x2a]
      Changes since v1:
      - Add libdw dependency to readme.
      - Change backtrace format slightly.
      Cc: Petri Latvala <petri.latvala@intel.com>
      Signed-off-by: 's avatarMaarten Lankhorst <maarten.lankhorst@linux.intel.com>
      [mlankhorst: Add description about libdw in commit msg, name -> dwfl_name]
      Reviewed-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
  9. 09 Aug, 2018 2 commits
    • Petri Latvala's avatar
      runner: Unit tests for the runner · 6cb3d7db
      Petri Latvala authored
      TODO: Unit tests for the results.json file contents.
       - Avoid writing the nul character to mock files
       - Properly set up tmpdirs
       - Restore the resume-related changes that were lost in rebase
       - Better teardown for temporary directories
       - Build with autotools
      Signed-off-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
      Reviewed-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
    • Petri Latvala's avatar
      runner: New test runner · 18c1e752
      Petri Latvala authored
      This is a new test runner to replace piglit. Piglit has been very
      useful as a test runner, but certain improvements have been very
      difficult if possible at all in a generic test running framework.
      Important improvements over piglit:
      - Faster to launch. Being able to make assumptions about what we're
        executing makes it possible to save significant amounts of time. For
        example, a testlist file's line "igt@somebinary@somesubtest" already
        has all the information we need to construct the correct command
        line to execute that particular subtest, instead of listing all
        subtests of all test binaries and mapping them to command
        lines. Same goes for the regexp filters command line flags -t and
        -x; If we use -x somebinaryname, we don't need to list subtests from
        somebinaryname, we already know none of them will get executed.
      - Logs of incomplete tests. Piglit collects test output to memory and
        dumps them to a file when the test is complete. The new runner
        writes all output to disk immediately.
      - Ability to execute multiple subtests in one binary execution. This
        was possible with piglit, but its semantics made it very hard to
        implement in practice. For example, having a testlist file not only
        selected a subset of tests to run, but also mandated that they be
        executed in the same order.
      - Flexible timeout support. Instead of mandating a time tests cannot
        exceed, the new runner has a timeout on inactivity. Activity is
        any output on the test's stdout or stderr, or kernel activity via
      The runner is fairly piglit compatible. The command line is very
      similar, with a few additions. IGT_TEST_ROOT environment flag is still
      supported, but can also be set via command line (in place of igt.py in
      piglit command line).
      The results are a set of log files, processed into a piglit-compatible
      results.json file (BZ2 compression TODO). There are some new fields in
      the json for extra information:
      - "igt-version" contains the IGT version line. In
        multiple-subtests-mode the version information is only printed once,
        so it needs to be duplicated to all subtest results this way.
      - "dmesg-warnings" contains the dmesg lines that triggered a
        dmesg-warn/dmesg-fail state.
      - Runtime information will be different. Piglit takes a timestamp at
        the beginning and at the end of execution for runtime. The new
        runner uses the subtest output text. The binary execution time will
        also be included; The key "igt@somebinary" will have the runtime of
        the binary "somebinary", whereas "igt@somebinary@a" etc will have
        the runtime of the subtests. Substracting the subtest runtimes from
        the binary runtime yields the total time spent doing setup in
        igt_fixture blocks.
       - use clock handling from igt_core instead of copypaste
       - install results binary
       - less magic numbers
       - scanf doesn't give empty strings after all
       - use designated array initialization with _F_JOURNAL and pals
       - add more comments to dump_dmesg
       - use signal in kill_child instead of bool
       - use more 'usual' return values for execute_entry
       - use signal number instead of magic integers
       - use IGT_EXIT_INVALID instead of magic 79
       - properly remove files in clear_test_result_directory()
       - remove magic numbers
       - warn if results directory contains extra files
       - fix naming in matches_any
       - construct command line in a cleaner way in add_subtests()
       - clarify error in filtered_job_list
       - replace single string fprintfs with fputs
       - use getline() more sanely
       - refactor string constants to a shared header
       - explain non-nul-terminated string handling in resultgen
       - saner line parsing
       - rename gen_igt_name to generate_piglit_name
       - clean up parse_result_string
       - explain what we're parsing in resultgen
       - explain the runtime accumulation in add_runtime
       - refactor result overriding
       - stop passing needle sizes to find_line functions
       - refactor stdout/stderr parsing
       - fix regex whitelist compiling
       - add TODO for suppressions.txt
       - refactor dmesg parsing
       - fill_from_journal returns void
       - explain missing result fields with TODO comments
       - log_level parsing with typeof
       - pass stdout/stderr to usage() instead of a bool
       - fix absolute_path overflow
       - refactor settings serialization
       - remove maybe_strdup function
       - refactor job list serialization
       - refactor resuming, add new resume binary
       - catch mmap failure correctly
       - rename runner to igt_runner, etc
       - add meson option for building the runner
       - use UPPER_CASE names for string constants
       - add TODO comments for future refactoring
       - add a midding close()
       - const correctness where applicable
       - also build with autotools
      Signed-off-by: Petri Latvala's avatarPetri Latvala <petri.latvala@intel.com>
      Reviewed-by: Arkadiusz Hiler's avatarArkadiusz Hiler <arkadiusz.hiler@intel.com>
  10. 25 Jul, 2018 1 commit
  11. 18 Jul, 2018 1 commit
  12. 13 Jul, 2018 1 commit
    • Chris Wilson's avatar
      igt/gem_userptr: Check read-only mappings · caea9c5b
      Chris Wilson authored
      Setup a userptr object that only has a read-only mapping back to a file
      store (memfd). Then attempt to write into that mapping using the GPU and
      assert that those writes do not land (while also writing via a writable
      userptr mapping into the same memfd to verify that the GPU is working!)
      v2: Pull the random batch construction into a routine to avoid
      Signed-off-by: Chris Wilson's avatarChris Wilson <chris@chris-wilson.co.uk>
      Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
      Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
      Reviewed-by: Tvrtko Ursulin's avatarTvrtko Ursulin <tvrtko.ursulin@intel.com>
  13. 25 Jun, 2018 1 commit
  14. 16 May, 2018 1 commit
  15. 09 Mar, 2018 3 commits
  16. 27 Feb, 2018 1 commit
  17. 16 Jan, 2018 1 commit
  18. 22 Dec, 2017 1 commit
  19. 04 Dec, 2017 1 commit
  20. 29 Nov, 2017 1 commit
  21. 22 Nov, 2017 1 commit
  22. 21 Nov, 2017 1 commit
  23. 04 Oct, 2017 1 commit
  24. 02 Oct, 2017 2 commits
  25. 08 Sep, 2017 1 commit
  26. 21 Aug, 2017 2 commits
  27. 14 Aug, 2017 1 commit
  28. 03 Aug, 2017 1 commit
  29. 26 Jul, 2017 1 commit