Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • mesa mesa
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 3,037
    • Issues 3,037
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 985
    • Merge requests 985
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • MesaMesa
  • mesamesa
  • Merge requests
  • !18807

radv: inline some functions - CPU overhead part 1

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Timur Kristóf requested to merge Venemo/mesa:radv_cpu_overhead_easy into main Sep 25, 2022
  • Overview 20
  • Commits 3
  • Pipelines 12
  • Changes 2

A few easy to review patches taken from MR !18499 to reduce the CPU overhead of RADV.

  • Use __builtin_prefetch on graphics pipeline pointers. Dropped, this actually hurts perf.
  • Add ALWAYS_INLINE to some functions.

Test on Ryzen 7 6850U: Set the platform profile to performance, disabled boost and set the CPU governor to performance. Then ran: ./vkoverhead -test 0 -duration 30

commit 6850U score
main 20772
radv: ALWAYS_INLINE radv_after_draw 20634
radv: ALWAYS_INLINE radv_flush_descriptors 21558
radv: ALWAYS_INLINE radv_is_streamout_enabled() 21584 (+4% from main)
Edited Sep 26, 2022 by Timur Kristóf
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: radv_cpu_overhead_easy