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 5
    • Issues 5
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GL
  • mesamesa
  • Merge requests
  • !7

intel/compiler: add ability to override shader's assembly

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Danylo Piliaiev requested to merge feature/shader-asm-override into master May 24, 2019
  • Overview 0
  • Commits 7
  • Pipelines 6
  • Changes 12

When dumping shader's assembly with INTEL_DEBUG=vs,tcs,... sha1 of the resulting assembly is also printed, having environment variable INTEL_SHADER_ASM_READ_PATH present driver will try to load a "%sha1%.bin" file from the path and substitute current assembly with the one from the file.

The file with the assembly could be generated e.g. with:

./i965_asm --gen=kbl --type=bin test.txt -o 8a6b2ec7dbcf81f962a190408cb47931d20cc148.bin

The main current limitation is that one should be careful with jip offsets when changing the assembly especially with the instruction compaction (better use 'nocompact' debug option).

Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: feature/shader-asm-override