1. 23 Oct, 2018 1 commit
  2. 17 Oct, 2018 1 commit
  3. 10 Oct, 2018 1 commit
  4. 25 Sep, 2018 1 commit
  5. 17 Sep, 2018 1 commit
    • Dylan Baker's avatar
      move pthread_setaffinity_np check to the build system · 3acc18fc
      Dylan Baker authored
      Rather than trying to encode all of the rules in a header, lets just put
      them in the build system where they belong. This fixes the build on
      FreeBSD, which does have pthraed_setaffinity_np, but it's in a
      pthread_np.h, not behind _GNU_SOURCE. FreeBSD also implements cpu_set
      slightly differently, so additional changes would be required to get it
      working right there anyway.
      
      v2: - fix #define in autotools
      
      Fixes: 9f1bbbdb
             ("util: try to fix the Android and MacOS build")
      Cc: Emil Velikov <emil.velikov@collabora.com>
      Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
      Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
      3acc18fc
  6. 24 Aug, 2018 1 commit
  7. 23 Aug, 2018 2 commits
  8. 20 Aug, 2018 1 commit
  9. 16 Aug, 2018 1 commit
  10. 08 Aug, 2018 4 commits
  11. 07 Aug, 2018 2 commits
  12. 03 Aug, 2018 2 commits
  13. 20 Jul, 2018 1 commit
  14. 12 Jul, 2018 1 commit
  15. 28 Jun, 2018 1 commit
  16. 21 Jun, 2018 2 commits
  17. 20 Jun, 2018 2 commits
    • Keith Packard's avatar
      vulkan: EXT_acquire_xlib_display requires libXrandr headers to build · 3f960c13
      Keith Packard authored
      When VK_USE_PLATFORM_XLIB_XRANDR_EXT is defined, vulkan.h includes
      X11/extensions/Xrandr.h for the RROutput typedef which is used in
      the vkGetRandROutputDisplayEXT interface.
      
      Make sure we have the required header by checking during the build,
      and also set CFLAGS to point at the right directory.
      
      We don't need to link against the library as we don't use any
      functions from there, so don't add the _LIBS value in the autotools
      build.
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      Fixes: dbac8e25 "radv: Add EXT_acquire_xlib_display to radv driver [v2]"
      Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
      3f960c13
    • Gert Wollny's avatar
      configure.ac: Add CFLAG -Wno-missing-field-initializers (v5) · 81e5bf3c
      Gert Wollny authored
      This warning is misleading: When a struct is partially initialized without
      assigning to the structure members by name, then the remaining fields
      will be zeroed out, and this warning will be issued (if enabled). If, on the
      other hand, the partial initialization is done by assigning to named members,
      the remaining structure elements may hold random data, but the warning is not
      issued. Since in Mesa the first approach to initialize structure elements is
      used very often, and it is usually assumed that the remaining elements are
      zeroed out, heeding this warning would be counter-productive.
      
      v2: - add -Wno-missing-field-initializers to meson-build
          - fix empty line error
          (both Eric Engestrom)
      
      v3: * check for -Wmissing-field-initializers warning and then disable it
            because gcc and clang always accept -Wno-* (Dylan Baker)
          * Also disable this warning for C++
      
      v4: * meson.build add -Wno-missing-field-initializers to
            c_args instead of no_override_init_args (Eric Engstrom)
      
      v5: * configure.ac: Correct copy/paste error with CFLAGS/CXXFLAGS
      
      Reviewed-by: Marek Olšák <marek.olsak@amd.com> (v1)
      Reviewed-by: Emil Velikov <emil.velikov@collabora.com> (v2)
      Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
      Signed-off-by: default avatarGert Wollny <gert.wollny@collabora.com>
      81e5bf3c
  18. 19 Jun, 2018 1 commit
    • Keith Packard's avatar
      vulkan: Add EXT_acquire_xlib_display [v5] · 7ab1fffc
      Keith Packard authored
      This extension adds the ability to borrow an X RandR output for
      temporary use directly by a Vulkan application. For DRM, we use the
      Linux resource leasing mechanism.
      
      v2:
      	Clean up xlib_lease detection
      
      	* Use separate temporary '_xlib_lease' variable to hold the
      	  option value to avoid changin the type of a variable.
      
      	* Use boolean expressions instead of additional if statements
      	  to compute resulting with_xlib_lease value.
      
      	* Simplify addition of VK_USE_PLATFORM_XLIB_XRANDR_KHR to
                vulkan_wsi_args
      Suggested-by: default avatarEric Engestrom <eric.engestrom@imgtec.com>
      
      	Move mode list from wsi_display to wsi_display_connector
      
      	Fix scope for wsi_display_mode and wsi_display_connector allocs
      Suggested-by: default avatarJason Ekstrand <jason@jlekstrand.net>
      
      v3:
      	Adopt Jason Ekstrand's coding conventions
      
      	Declare variables at first use, eliminate extra whitespace
      	between types and names. Wrap lines to 80 columns.
      
      	Explicitly forbid multiple DRM leases. Making the code support
      	this looks tricky and will require additional thought.
      
      	Use xcb_randr_output_t throughout the internals of the
      	implementation. Convert at the public API
      	(wsi_get_randr_output_display).
      
      	Clean up check for usable active_crtc (possible when only the
      	desired output is connected to the crtc).
      Suggested-by: default avatarJason Ekstrand <jason.ekstrand@intel.com>
      
      v4:
      	Move output resource fetching closer to use in
      	wsi_display_get_output. This simplifies the error returns in
      	earlier parts of the code a bit.
      
      	Return VK_ERROR_INITIALIZATION_FAILED from
      	wsi_acquire_xlib_display. Jason says this is the right error
      	message.
      Suggested-by: default avatarJason Ekstrand <jason.ekstrand@intel.com>
      
      v5:
      	randr doesn't pass vscan over the wire, so we set vscan to 0
      	for randr-acquired modes, and test wsi modes for vscan <= 1
      	when comparing against randr modes.
      Suggested-by: default avatarJason Ekstrand <jason.ekstrand@intel.com>
      Signed-off-by: default avatarKeith Packard <keithp@keithp.com>
      Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
      7ab1fffc
  19. 17 Jun, 2018 1 commit
  20. 13 Jun, 2018 1 commit
  21. 08 Jun, 2018 1 commit
  22. 06 Jun, 2018 1 commit
  23. 05 Jun, 2018 1 commit
  24. 31 May, 2018 1 commit
    • Scott D Phillips's avatar
      util: Add a randomized test for the virtual memory allocator · 943fecc5
      Scott D Phillips authored
      The test pseudo-randomly makes allocations and deallocations with
      the virtual memory allocator and checks that the results are
      consistent. Specifically, we test that:
      
       * no result from the allocator overlaps an already allocated range
       * allocated memory fulfills the stated alignment requirement
       * a failed result from the allocator could not have been fulfilled
       * memory freed to the allocator can later be allocated again
      
      v2: - fix if() in test() to actually run fill()
      v3: - add c++11 build flag (Jason)
          - test the full 64-bit range (Jason)
      Reviewed-by: default avatarJason Ekstrand <jason@jlekstrand.net>
      943fecc5
  25. 17 May, 2018 3 commits
  26. 16 May, 2018 3 commits
  27. 15 May, 2018 2 commits
    • Rob Clark's avatar
      freedreno: fence should hold a ref to pipe · 273f7d84
      Rob Clark authored
      Since the fence can outlive the context, and all it really needs to wait
      on a fence is the pipe, use the new fd_pipe reference counting to hold a
      ref to the pipe and drop the ctx pointer.
      
      This fixes a crash seen with (for example) glmark2:
      
        #0  fd_pipe_wait_timeout (pipe=0xbf48678b3cd7b32b, timestamp=0, timeout=18446744073709551615) at freedreno_pipe.c:101
        #1  0x0000ffffbdf75914 in fd_fence_finish (pscreen=0x561110, ctx=0x0, fence=0xc55c10, timeout=18446744073709551615) at ../src/gallium/drivers/freedreno/freedreno_fence.c:96
        #2  0x0000ffffbde154e4 in dri_flush (cPriv=0xb1ff80, dPriv=0x556660, flags=3, reason=__DRI2_THROTTLE_SWAPBUFFER) at ../src/gallium/state_trackers/dri/dri_drawable.c:569
        #3  0x0000ffffbecd8b44 in loader_dri3_flush (draw=0x558a28, flags=3, throttle_reason=__DRI2_THROTTLE_SWAPBUFFER) at ../src/loader/loader_dri3_helper.c:656
        #4  0x0000ffffbecbc36c in glx_dri3_flush_drawable (draw=0x558a28, flags=3) at ../src/glx/dri3_glx.c:132
        #5  0x0000ffffbecd91e8 in loader_dri3_swap_buffers_msc (draw=0x558a28, target_msc=0, divisor=0, remainder=0, flush_flags=3, force_copy=false) at ../src/loader/loader_dri3_helper.c:827
        #6  0x0000ffffbecbcfc4 in dri3_swap_buffers (pdraw=0x5589f0, target_msc=0, divisor=0, remainder=0, flush=1) at ../src/glx/dri3_glx.c:587
        #7  0x0000ffffbec98218 in glXSwapBuffers (dpy=0x502bb0, drawable=2097154) at ../src/glx/glxcmds.c:840
        #8  0x000000000040994c in CanvasGeneric::update (this=0xfffffffff400) at ../src/canvas-generic.cpp:114
        #9  0x0000000000411594 in MainLoop::step (this=this@entry=0x5728f0) at ../src/main-loop.cpp:108
        #10 0x0000000000409498 in do_benchmark (canvas=...) at ../src/main.cpp:117
        #11 0x00000000004071b0 in main (argc=<optimized out>, argv=<optimized out>) at ../src/main.cpp:210
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
      273f7d84
    • Thomas Hellstrom's avatar
      st/xa: Bump minor · 3d0b4979
      Thomas Hellstrom authored
      Bump xa minor to signal that the underlying mesa version is suitable for dri3.
      
      This is a bit ugly since it doesn't relate to a specific xa interface change.
      Recently there has been a number of fixes in mesa that helps enabling dri3
      without any significant regressions in automated testing and common desktop
      usage latency. However, the xf86-video-vmware driver has no other way to tell
      but inspecting the xa version.
      Signed-off-by: default avatarThomas Hellstrom <thellstrom@vmware.com>
      Reviewed-by: default avatarBrian Paul <brianp@vmware.com>
      3d0b4979