1. 22 Jun, 2020 1 commit
    • Neil Roberts's avatar
      gallium: Add pipe cap for primitive restart with fixed index · bb5fc901
      Neil Roberts authored
      Adds PIPE_CAP_PRIMITIVE_RESTART_FIXED_INDEX which is a subset of the
      primitive restart cap for when the hardware can only support the fixed
      indices specified in GLES.
      The switch statements were automatically modified with this command:
      find \( \( -name \*.cpp -o -name \*.c \) \! -type l \) \
       -exec sed -i -r \
       's/^(\s*case\s+PIPE_CAP_PRIMITIVE_RESTART)\s*:.*$/\0\n\1_FIXED_INDEX:/' \
       {} \;
      v2: Add a note in screen.rst
      Reviewed-by: Eric Anholt <eric@anholt.net> (v1)
      Reviewed by: Erik Faye-Lund <erik.faye-lund@collabora.com>
      Part-of: <!5559>
  2. 02 Jun, 2020 1 commit
  3. 22 Apr, 2020 1 commit
    • Alejandro Piñeiro's avatar
      v3d: support for textureQueryLOD · ad460c5d
      Alejandro Piñeiro authored
      Fixes all the ARB_texture_query_lod piglit tests, and needed to get
      the Vulkan CTS textureQueryLOD passing with the ongoing Vulkan driver.
      Note that LOD Query bit flag became only available on V42 of the hw,
      but the v3d40_tex is using V41 as reference. In order to avoid setting
      up the infrastructure to support both v41 and v42, we manually set the
      bit if the device version is the correct one.
      We also fix how the ARB_texture_query_lod (so EXT_texture_query_lod)
      is exposed. Before this commit it was always exposed (wrongly as it
      was not really supported). Now it is exposed for devinfo.ver >= 42.
      v2: move _need_sampler helper to nir.h (Eric Anholt)
      Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
      Part-of: <!4677>
  4. 26 Feb, 2020 2 commits
  5. 24 Feb, 2020 1 commit
  6. 16 Dec, 2019 2 commits
  7. 14 Nov, 2019 1 commit
  8. 23 Oct, 2019 1 commit
  9. 18 Oct, 2019 3 commits
    • José Casanova Crespo's avatar
      v3d: Explicitly expose OpenGL ES Shading Language 3.1 · f8da0f61
      José Casanova Crespo authored
      This will expose GL_EXT_primitive_bounding_box and
      GL_OES_primitive_bounding_box after previous commits
      expose OpenGL ES 3.1 once Compute Shaders are available.
      Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
    • Iago Toral's avatar
      v3d: request the kernel to flush caches when TMU is dirty · db874392
      Iago Toral authored
      This adapts the v3d driver to the new CL submit ioctl interface that
      allows the driver to request a flush of the caches after the render
      job has completed. This seems to eliminate the kernel write violation
      errors reported during CTS and Piglit excutions, fixing some CTS tests
      and GPU resets along the way.
        - Adapt to changes in the kernel side.
        - Disable shader storage and shader images if the kernel doesn't
          implement cache flushing.
      Fixes CTS tests:
      Reviewed-by: Eric Anholt's avatarEric Anholt <eric@anholt.net>
    • Eric Anholt's avatar
      v3d: Add Compute Shader support · 66e2d3b6
      Eric Anholt authored
      Now that the UAPI has landed, add the pipe_context function for
      dispatching compute shaders.  This is the last major feature for GLES 3.1,
      though it's not enabled quite yet.
  10. 17 Oct, 2019 1 commit
  11. 10 Oct, 2019 1 commit
  12. 01 Aug, 2019 1 commit
  13. 23 Jul, 2019 1 commit
  14. 17 Jul, 2019 1 commit
  15. 10 Jul, 2019 1 commit
    • Erik Faye-Lund 's avatar
      gallium: get rid of PIPE_CAP_SM3 · 39e7fbf2
      Erik Faye-Lund authored
      PIPE_CAP_SM3 has always been an odd one out of all our caps. While most
      other caps are fine-grained and single-purpose, this cap encode several
      features in one. And since OpenGL cares more about single features, it'd
      be nice to get rid of this one.
      As it turns, this is now relatively simple. We only really care about
      three features using this cap, and those already got their own caps. So
      we can remove it, and make sure all current drivers just give the same
      response to all of them.
      The only place we *really* care about SM3 is in nine, and there we can
      instead just re-construct the information based on the finer-grained
      caps. This avoids DX9 semantics from needlessly leaking into all of the
      drivers, most of who doesn't care a whole lot about DX9 specifically.
      Signed-off-by: Erik Faye-Lund 's avatarErik Faye-Lund <erik.faye-lund@collabora.com>
      Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
      Acked-by: Alyssa Rosenzweig's avatarAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
  16. 13 May, 2019 2 commits
  17. 26 Apr, 2019 1 commit
  18. 25 Apr, 2019 1 commit
    • Eric Anholt's avatar
      v3d: Disable SSBOs and atomic counters on vertex shaders. · d23b47fd
      Eric Anholt authored
      The CTS fails on
      when they are enabled, due to the VS being run for both bin and render.  I
      think this behavior is expected to be valid, but I can't find text in
      atomic counters or SSBO specs saying so (the closed I found was in
      shader_image_load_store).  Just disable it for now, since the closed
      source driver doesn't expose vertex atomic counters/SSBOs either.
  19. 12 Apr, 2019 4 commits
  20. 05 Apr, 2019 1 commit
  21. 21 Mar, 2019 1 commit
    • Eric Anholt's avatar
      v3d: Move constant offsets to UBO addresses into the main uniform stream. · 320e96ba
      Eric Anholt authored
      We'd end up with the constant offset in the uniform stream anyway, since
      they're bigger than small immediates.  Avoids the extra uniforms and adds
      in the shader in favor of just adding once on the CPU.
      total instructions in shared programs: 6496865 -> 6494851 (-0.03%)
      total uniforms in shared programs: 2119511 -> 2117243 (-0.11%)
  22. 19 Mar, 2019 1 commit
    • Eric Anholt's avatar
      v3d: Expose the dma-buf modifiers query. · 17115da6
      Eric Anholt authored
      This allows DRI3 to pick between UIF and raster according to whether we're
      pageflipping or not and whether the pageflipping display can do UIF,
      avoiding copies for the windowed/composited case that previously was
      forced to linear.
      Improves windowed glmark2 -b build:use-vbo=false performance by 30.7783%
      +/- 13.1719% (n=3)
  23. 12 Mar, 2019 2 commits
  24. 08 Feb, 2019 1 commit
  25. 27 Jan, 2019 2 commits
  26. 14 Jan, 2019 4 commits
  27. 08 Jan, 2019 1 commit