1. 26 Oct, 2018 1 commit
    • Rob Clark's avatar
      freedreno: import libdrm_freedreno + redesign submit · f3cc0d27
      Rob Clark authored
      In the pursuit of lowering driver overhead, it became clear that some
      amount of redesign of how libdrm_freedreno constructs the submit ioctl
      would be needed.  In particular, as the gallium driver is starting to
      make heavier use of CP_SET_DRAW_STATE state groups/objects, the over-
      head of tracking cmd buffers and relocs becomes too much.  And for
      "streaming" state, which isn't ever reused (like uniform uploads) the
      overhead of allocating/freeing ringbuffer[1] objects is too high.
      This redesign makes two main changes:
       1) Introduces a fd_submit object for tracking bos and cmds table
          for the submit ioctl, making ringbuffer objects more light-
          weight.  This was previously done in the ringbuffer.  But we
          have many ringbuffer instances involved in a submit (gmem +
          draw + potentially 1000's of state-group rbs), and only need
          a single bos and cmds table.  (Reloc table is still per-rb)
          The submit is also a convenient place for a slab allocator for
          ringbuffer objects.  Other options would have required locking
          because, while we can guarantee allocations will only happen on
          a single thread, free's could happen either on the application
          thread or the flush_queue thread.  With the slab allocator in
          the submit object, any frees that happen on the flush_queue
          thread happen after we know that the application thread is done
          with the submit.
       2) Introduce a new "softpin" msm_ringbuffer_sp implementation that
          does not use relocs and only has cmds table entries for IB1 (ie.
          the cmdstream buffers that kernel needs to CP_INDIRECT_BUFFER
          to from the RB).  To do this properly will require some updates
          on the kernel side, so whether you get the softpin or legacy
          submit/ringbuffer implementation at runtime depends on your
          kernel version.
      To make all these changes in libdrm would basically require adding a
      libdrm_freedreno2, so this is a good point to just pull the libdrm code
      into mesa.  Plus it allows for using mesa's hashtable, slab allocator,
      etc.  And it lets us have asserts enabled for debug mesa buids but
      omitted for release builds.  And it makes life easier if further API
      changes become necessary.
      At this point I haven't tried to pull in the kgsl backend.  Although
      I left the level of vfunc indirection which would make it possible
      to have other backends.  (And this was convenient to keep to allow
      for the "softpin" ringbuffer to coexist.)
      NOTE: if bisecting a build error takes you here, try a clean build.
      There are a bunch of ways things can go wrong if you still have
      libdrm_freedreno cflags.
      [1] "ringbuffer" is probably a bad name, the only level of cmdstream
          buffer that is actually a ring is RB managed by kernel.  User-
          space cmdstream is all IB1/IB2 and state-groups.
      Reviewed-by: default avatarKristian H. Kristensen <hoegsberg@chromium.org>
      Reviewed-by: default avatarEric Engestrom <eric.engestrom@intel.com>
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
  2. 03 Oct, 2018 1 commit
  3. 29 Jun, 2017 1 commit
  4. 11 May, 2017 1 commit
  5. 30 Nov, 2016 1 commit
    • Rob Clark's avatar
      freedreno: fix android build with a5xx · ef30e91f
      Rob Clark authored
      Android doesn't build all the files that normal linux/autotools build
      does (mainly standalond ir3_compiler).. but possibly we should pull
      C_SOURCES + aNxx_SOURCES into a single variable picked up by both
      Android.mk and Makefile.am?  (Suggested by Rob H.)
      Signed-off-by: default avatarRob Clark <robdclark@gmail.com>
  6. 13 Jun, 2016 1 commit
  7. 25 Apr, 2016 1 commit
    • Rob Clark's avatar
      freedreno/ir3: fix sin/cos · 4610e5ef
      Rob Clark authored
      We seem to need range reduction to get sane results.  Fixes glmark2
      jellyfish bench, and a whole bunch of
      v2: squashed in android build fixes from Rob Herring
      Signed-off-by: default avatarRob Clark <robclark@freedesktop.org>
  8. 29 Feb, 2016 2 commits
  9. 08 Jul, 2015 1 commit
  10. 22 Apr, 2015 1 commit
  11. 12 Aug, 2014 2 commits
    • Emil Velikov's avatar
      android: gallium/freedreno: add preliminary build · bf05e067
      Emil Velikov authored
      For all the people interested in testing the freedreno driver on
      their Android devices. The next commit will hook these up within
      the libEGL driver (via the gallium-egl backend).
      There may be some rough edges but those can be sorted when a
      willing builder/tester comes along.
       - s/freefreno/freedreno/. Spotted by Matt Turner.
       - Use the installed libdrm headers.
      Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
      Cc: Rob Clark <robclark@freedesktop.org>
      Cc: freedreno@lists.freedesktop.org
      Signed-off-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
    • Paulo Sergio Travaglia's avatar
      android: gallium/radeon: attempt to fix the android build · 5bbfa308
      Paulo Sergio Travaglia authored
       - include the correct folders
       - add a new buildscript for the common radeon folder
      v2: Use the installed libdrm headers over the DRM_TOP ones.
      Cc: "10.1 10.2" <mesa-stable@lists.freedesktop.org>
      [Emil Velikov] Split up and add commit message.
      Signed-off-by: default avatarEmil Velikov <emil.l.velikov@gmail.com>
  12. 26 Nov, 2011 1 commit
  13. 27 Aug, 2011 1 commit
  14. 25 Aug, 2011 1 commit
  15. 20 Aug, 2011 3 commits
    • Chia-I Wu's avatar
      android: build android sw winsys · 15576344
      Chia-I Wu authored
      This builds the static library libmesa_winsys_sw_android from winsys/sw.
    • Chia-I Wu's avatar
      android: build gallium auxiliaries · 688db6e8
      Chia-I Wu authored
      This builds the static library libmesa_gallium from gallium auxiliaries.
    • Chia-I Wu's avatar
      android: build libGLES_mesa · c9b21d98
      Chia-I Wu authored
      This is the first step to integrate Mesa into Android(-x86) build
      system.  You can git clone mesa under the external/ directory of Android
      source tree and build Android with
       $ make BOARD_GPU_DRIVERS=swrast
      It will build libGLES_mesa that will be loaded by Android runtime.
      libGLES_mesa is still a stub in this commit.