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,068
    • Issues 3,068
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 997
    • Merge requests 997
  • 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
  • !12343

radeonsi: remove prim discard CS, reduce CPU overhead of si_update_shaders, si_emit_spi_map, etc. (big MR)

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Marek Olšák requested to merge mareko/mesa:si-opt-mega-rework into main Aug 12, 2021
  • Overview 49
  • Commits 42
  • Pipelines 51
  • Changes 23

These are CPU overhead improvements motivated by viewperf/snx.

Changes:

  • shader variant keys are added into si_context and they are updated in bind & set functions instead of si_shader_selector_key, reducing the overhead of si_update_shaders
  • si_update_shaders is cleaned up and moved to become a C++ template in si_state_draw.cpp to reduce overhead
  • si_update_spi_map is cleaned up; its loops, memcmp, and memcpy are unrolled using 33 C++ template instantiations to reduce overhead
  • the primitive discard compute shader is removed
  • the NGG passthrough mode is removed
  • SPI_SHADER_PGM_HI_* registers are no longer set for every shader
  • etc.

Tested on gfx10 (Navi10) and gfx8 (Polaris11).

Edited Aug 18, 2021 by Marek Olšák
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: si-opt-mega-rework