1. 13 Feb, 2021 1 commit
  2. 22 Jan, 2021 1 commit
    • Marek Olšák's avatar
      radeonsi: add new possibly faster command submission helpers · a0978fff
      Marek Olšák authored
      
      
      This decreases the release libgallium_dri.so size without debug symbols
      by 16384 bytes. The CPU time spent in si_emit_draw_packets decreased
      from 4.5% to 4.1% in viewperf13/catia/plane01.
      
      The previous code did:
          cs->current.buf[cs->current.cdw++] = ...;
          cs->current.buf[cs->current.cdw++] = ...;
          cs->current.buf[cs->current.cdw++] = ...;
          cs->current.buf[cs->current.cdw++] = ...;
      
      The new code does:
          unsigned num = cs->current.cdw;
          uint32_t *buf = cs->current.buf;
          buf[num++] = ...;
          buf[num++] = ...;
          buf[num++] = ...;
          buf[num++] = ...;
          cs->current.cdw = num;
      
      The code is the same (radeon_emit is redefined as a macro) except that
      all set and emit functions must be surrounded by radeon_begin(cs) and
      radeon_end().
      
      radeon_packets_added() returns whether there has been any new packets added
      since radeon_begin.
      
      radeon_end_update_context_roll(sctx) sets sctx->context_roll = true
      if there has been any new packets added since radeon_begin.
      
      For now, the "cs" parameter is intentionally unused in radeon_emit and
      radeon_emit_array.
      
      Reviewed-by: Pierre-Eric Pelloux-Prayer's avatarPierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
      Part-of: <!8653>
      a0978fff
  3. 05 Dec, 2020 1 commit
  4. 18 Nov, 2020 1 commit
  5. 24 Sep, 2020 1 commit
  6. 30 Mar, 2020 1 commit
    • Pierre-Eric Pelloux-Prayer's avatar
      radeonsi: switch to 3-spaces style · d7008fe4
      Pierre-Eric Pelloux-Prayer authored
      
      
      Generated automatically using clang-format and the following config:
      
      AlignAfterOpenBracket: true
      AlignConsecutiveMacros: true
      AllowAllArgumentsOnNextLine: false
      AllowShortCaseLabelsOnASingleLine: false
      AllowShortFunctionsOnASingleLine: false
      AlwaysBreakAfterReturnType: None
      BasedOnStyle: LLVM
      BraceWrapping:
        AfterControlStatement: false
        AfterEnum: true
        AfterFunction: true
        AfterStruct: false
        BeforeElse: false
        SplitEmptyFunction: true
      BinPackArguments: true
      BinPackParameters: true
      BreakBeforeBraces: Custom
      ColumnLimit: 100
      ContinuationIndentWidth: 3
      Cpp11BracedListStyle: false
      Cpp11BracedListStyle: true
      ForEachMacros:
        - LIST_FOR_EACH_ENTRY
        - LIST_FOR_EACH_ENTRY_SAFE
        - util_dynarray_foreach
        - nir_foreach_variable
        - nir_foreach_variable_safe
        - nir_foreach_register
        - nir_foreach_register_safe
        - nir_foreach_use
        - nir_foreach_use_safe
        - nir_foreach_if_use
        - nir_foreach_if_use_safe
        - nir_foreach_def
        - nir_foreach_def_safe
        - nir_foreach_phi_src
        - nir_foreach_phi_src_safe
        - nir_foreach_parallel_copy_entry
        - nir_foreach_instr
        - nir_foreach_instr_reverse
        - nir_foreach_instr_safe
        - nir_foreach_instr_reverse_safe
        - nir_foreach_function
        - nir_foreach_block
        - nir_foreach_block_safe
        - nir_foreach_block_reverse
        - nir_foreach_block_reverse_safe
        - nir_foreach_block_in_cf_node
      IncludeBlocks: Regroup
      IncludeCategories:
        - Regex:           '<[[:alnum:].]+>'
          Priority:        2
        - Regex:           '.*'
          Priority:        1
      IndentWidth: 3
      PenaltyBreakBeforeFirstCallParameter: 1
      PenaltyExcessCharacter: 100
      SpaceAfterCStyleCast: false
      SpaceBeforeCpp11BracedList: false
      SpaceBeforeCtorInitializerColon: false
      SpacesInContainerLiterals: false
      
      Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
      Part-of: <!4319>
      d7008fe4
  7. 12 Mar, 2020 1 commit
  8. 18 Sep, 2019 1 commit
  9. 27 Aug, 2019 1 commit
  10. 07 Aug, 2019 3 commits
  11. 06 Aug, 2019 2 commits
  12. 09 Jul, 2019 5 commits
  13. 03 Jul, 2019 1 commit
  14. 25 Jun, 2019 1 commit
  15. 04 Jun, 2019 1 commit
  16. 25 Apr, 2019 1 commit
  17. 30 Oct, 2018 1 commit
  18. 16 Oct, 2018 1 commit
  19. 12 Jul, 2018 1 commit
  20. 19 Jun, 2018 1 commit
  21. 14 Jun, 2018 5 commits
  22. 08 Jun, 2018 1 commit
  23. 24 May, 2018 1 commit
  24. 27 Apr, 2018 2 commits
  25. 05 Apr, 2018 4 commits