Permalink
Commits on Jan 6, 2013
  1. x11 backend: add option to use pixman renderer

    When --use-shm is passed to weston and x11 backend is active,
    it will use SHM surfaces with pixman renderer instead of EGL
    
    Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
    committed Jan 5, 2013
  2. Implement pixman renderer

    Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
    committed Jan 5, 2013
Commits on Jan 5, 2013
  1. screenshoter: add cases for x8r8g8b8 and x8b8g8r8 formats

    Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
    committed Jan 5, 2013
  2. screenshoter: don't use hardcoded bpp value

    Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com>
    committed Jan 5, 2013
Commits on Dec 14, 2012
  1. tests: Pass --backend so the test suite runs with the right modules

    Without this we try to load the installed backends, which is nasty for
    regular runs, and just doesn't work for make distcheck, which sets
    prefix to $PWD/_inst.  This makes sure we load the right backend
    and make distcheck pass.  Other modules (xwayland, shells etc) just don't
    get loaded for distcheck and for make check we still try to load the
    installed modules.
    krh committed Dec 14, 2012
  2. compositor-drm: Reduce code duplication on drm_output_switch_mode()

    Call drm_output_init_egl() instead of duplicating the gbm surface and
    gl renderer state initialization code.
    
    Note that this makes error handling a bit worse. Before, if we failed
    to allocate a gbm surface we could still recover. Failing the renderer
    state creation would lead to inconsisten state. Now we end up in
    inconsistent state on both cases.
    anderco committed with krh Dec 14, 2012
  3. compositor-drm: Don't do a mode set on drm_output_switch_mode()

    At this point, we reallocated the gbm surface, but we don't have an
    fb with the right size to use. If we're going to a larger mode, the fb
    would be too small and the mode set would fail. Besides, the repaint
    logic will already do a mode set if necessary, so rely on that instead.
    anderco committed with krh Dec 14, 2012
  4. compositor-drm: Fix a return value check in drm_output_switch_mode()

    gl_rederer_output_create() returns 0 on success, but drm compositor
    would consider this a failure.
    anderco committed with krh Dec 14, 2012
  5. compositor: Don't let pointers get outside of an output on mode switch

    When an output suffers a mode switch, it is possible that a pointer
    was inside the old output area but falls outside of it with the new
    size. In that case, move the cursor to the output's bottom-right
    corner. Otherwise, there's a crash in clip_pointer_motion().
    anderco committed with krh Dec 14, 2012
  6. compositor: Update output state after mode switch

    After a mode switch, the output region and transformation matrix need
    to be updated. The call to weston_output_move() would do the former but
    not the latter, but calling that when the output remains in the same
    coordinate doesn't make much sense. Instead, update this state and the
    transformation matrix in weston_output_mode_switch().
    anderco committed with krh Dec 14, 2012
  7. transformed: Add options for using debuging driver fullscreen method

    Add options for setting width, height and using the driver fullscreen
    method.
    anderco committed with krh Dec 14, 2012
Commits on Dec 13, 2012
  1. tests: remove test logs on 'make clean'

    Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
    ppaalanen committed with krh Dec 13, 2012
Commits on Dec 12, 2012
  1. tests: check wl_display_roundtrip() for errors

    Add a macro that wraps wl_display_roundtrip() and check for errors. It
    is a macro, so that the assert would show the relevant file and line
    number.
    
    This will also catch protocol errors, that would go unnoticed otherwise.
    
    All roundtrips in tests are replaced with the check.
    
    Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
    ppaalanen committed with krh Dec 12, 2012
  2. tests: set client log handler

    Otherwise we cannot normally see protocol errors etc. in the test
    output.
    
    Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
    ppaalanen committed with krh Dec 12, 2012
  3. update git ignores

    Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
    ppaalanen committed with krh Dec 12, 2012
  4. tests: write logs to files

    This cleans up the 'make check' output considerably. When all goes well,
    you will only see the "PASS" line for each of $TESTS.
    
    Weston logs into a separate file than stdout and stderr, so server logs
    end up in one file per test, and other output to another file per test.
    
    'make distclean' does not remove the tests/logs/ directory.
    
    Also changes the weston-tests-env interpreter to bash, since I think &>
    and ${1/.la/.so} might be bashisms.
    ppaalanen committed with krh Dec 12, 2012
  5. tests: Convert remaining module tests to not use test-runner.c

    The remaining module tests don't need to fork and talk to a test client,
    so just convert them to regular modules and let them handle running their
    tests themselves.  Then drop test-runner.[ch].
    krh committed Dec 12, 2012
  6. tests: Remove client-test test

    This test case is the last user of the test-client code and it only
    tests launching the test-client.  In other words it's a minimal test
    of the framework we're dropping, so just drop this test.
    krh committed Dec 12, 2012
  7. tests: Port text-test to new test framework

    So much simpler this way and the test suite is now back too 100% pass.
    krh committed Dec 12, 2012
  8. tests: Drop yield() helper function

    Remaining use case was when we move the pointer.  This doesn't change
    geometry so we can just use a wl_display_roundtrip() to make sure
    we get the request to the server and receive the resulting events.
    krh committed Dec 12, 2012
  9. keyboard-test: Use wl_display_roundtrip() instead of yield()

    As for button-test, a wl_display_roundtrip is sufficient here.  The
    yield() between wl_test_activate_surface() and wl_test_send_key() is
    also not needed, since the two requests will arrive at the server in
    order, and will activate the surface first, then send a key event.
    krh committed Dec 12, 2012
  10. button-test: Use wl_display_roundtrip instead of yield()

    A round trip is sufficient here.  We need to make sure that the server
    has received the wl_test request and that we've received the event
    that the request triggers.  The wl_display_roundtrip() helper does
    exactly that: it sends a wl_display.sync request, which will hit the
    server after the wl_test requests and thus the wl_callback.done event
    will come back after the server has seen all the previous requests and
    after we've handled all preceeding event.
    krh committed Dec 12, 2012
  11. weston-test-client-helper: Use a frame callback to flush surface geom…

    …etry
    
    When moving a test surface, use a frame callback to make sure the
    surface has been moved and the geometry updated.  The compositor may
    delay updating the transform matrices, but once we get the frame
    callback we know the surface has been repainted and the geometry
    updated.
    krh committed Dec 12, 2012
Commits on Dec 11, 2012
  1. tests: Convert button-test to new test extension

    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56821
    
    Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
    uartie committed with krh Dec 7, 2012
  2. tests: Convert event-test to new test extension

    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56819
    
    Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
    uartie committed with krh Dec 7, 2012
  3. tests: Convert keyboard-test to new test extension

    This adds a weston-test-runner for the weston test extension and
    some weston test client helper methods.
    
    Converted keyboard-test to use the new test interface, runner,
    and helper methods.
    
    Fixes https://bugs.freedesktop.org/show_bug.cgi?id=56822
    
    Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
    uartie committed with krh Dec 7, 2012
  4. tests: Allow weston-tests-env to process different test types

    The weston-tests-env script needs to be able to handle weston
    test extension style tests as well as module style tests.
    
    Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
    uartie committed with krh Dec 7, 2012
  5. tests: Rename weston-test to weston-tests-env

    Renamed weston-test test environment script to weston-tests-env
    to avoid ambiguity with weston-test.c (the weston test extension).
    
    Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
    uartie committed with krh Dec 7, 2012
  6. tests: Define and implement a test protocol extension.

    The weston test extension, called weston-test.so, can be loaded
    from the "modules" configuration option on the command line
    or in the .ini file.
    
    Clients can bind to the "wl_test" interface to interact with
    the weston test extension.
    
    Signed-off-by: U. Artie Eoff <ullysses.a.eoff@intel.com>
    uartie committed with krh Dec 7, 2012
  7. simple-egl: Remove old obsolete fbo and color_rbo fields

    Finally a commit that actually makes simple-egl simpler.
    krh committed Dec 11, 2012
Commits on Dec 7, 2012
  1. Link matrix.c into weston again

    We want to make sure that the matrix symbols are exported from weston and
    that modules get them from there.  To do that, we pull matrix.[ch] out of
    libshared and back into weston.  calibrator now also links to matrix.[ch]
    and we add a IN_WESTON define to enable the WL_EXPORT macro when compiled
    inside weston.
    krh committed Dec 7, 2012
  2. compositor-drm: Dont pass ARGB format to addfb2 for primary fbs

    Trying to create a ARGB framebuffer for scanout results in EINVAL when
    trying to queue the pageflip.  This patch overrides the format we pass
    to addfb2 in case of primary buffers like we do for sprites.
    
    Since we always have to inspect and override the format, don't try to
    look up the format in drm_fb_get_from_bo().  Instead return format from
    drm_output_check_scanout_format().
    
    Rename drm_surface_format_supported() to drm_output_check_sprite_format()
    and make it follow the same convention.
    
    We started scanning out ARGB surfaces in commit e920941.
    krh committed Dec 7, 2012