[Mesa-dev] [PATCH 0/3] radeonsi: handle unaligned vertex buffers in hardware

Marek Olšák maraeo at gmail.com
Tue Apr 30 19:20:45 UTC 2019


Why can we not use tbuffer loads?

Marek

On Thu, Apr 25, 2019 at 7:18 AM Nicolai Hähnle <nhaehnle at gmail.com> wrote:

> Hi all,
>
> the following patches contain code to implement all vertex fetches
> using plain, non-format loads plus explicit shader arithmetic for
> format conversion.
>
> This allows us to remove the software workaround for unaligned vertex
> buffers on SI, because we can just load individual bytes on the GPU.
> CI+ will still use short/dword loads even in the unaligned case.
>
> The format conversion code was tested by running with
> radeonsi_vs_fetch_always_opencode=true on both Verde and Vega.
>
> Please review!
>
> Thanks,
> Nicolai
> --
>  src/amd/common/ac_llvm_build.c               | 313 +++++++++++++++++
>  src/amd/common/ac_llvm_build.h               |  30 ++
>  .../drivers/radeonsi/si_debug_options.h      |   1 +
>  src/gallium/drivers/radeonsi/si_get.c        |   2 +-
>  src/gallium/drivers/radeonsi/si_pipe.h       |   1 +
>  src/gallium/drivers/radeonsi/si_shader.c     | 249 +++++--------
>  src/gallium/drivers/radeonsi/si_shader.h     |  46 +--
>  src/gallium/drivers/radeonsi/si_state.c      | 233 +++++++-----
>  src/gallium/drivers/radeonsi/si_state.h      |  19 +
>  .../drivers/radeonsi/si_state_shaders.c      |  37 +-
>  10 files changed, 645 insertions(+), 286 deletions(-)
>
>
> _______________________________________________
> mesa-dev mailing list
> mesa-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/mesa-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/mesa-dev/attachments/20190430/ac643c93/attachment.html>


More information about the mesa-dev mailing list