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,056
    • Issues 3,056
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1,003
    • Merge requests 1,003
  • 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
  • !13572

virgl: Add driconf tweak to force-enable reading back R8_SRGB textures

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Gert Wollny requested to merge gerddie/mesa:virgl-r8_srgb-tweak into main Oct 28, 2021
  • Overview 2
  • Commits 1
  • Pipelines 8
  • Changes 5

In the menu of CS:GO R8_SRGB textures are uploaded and read back, and since R8_SRGB can't be read back on GLES, because it is not a rendertarget format and glGetTexImage and siblings don't exists, we can't default to enabling reading back this format. This leads to an emulation of the glGetTexImage calls issued by CS:GO, and this slows down the menus a lot (below 1 fps on Intel XE hosts).

So add this driconf tweak and enable it for CS:GO to work around the issue. It can be done safely, because in this case we actually can use the data that is stored on the host in the backing IOV.

This tweak lets the CS:GO menu run at around 60 FPS when run with virgl on a Intel XE host.

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: virgl-r8_srgb-tweak