Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Move shader generation and upload to init path #353

@strassek

Description

@strassek

Currently we are generating shaders on-demand in the compositor draw path. This means we can't provide consistent draw latency, as compositions may be subject to blocking on shader gen/upload.

Pick a sensible max number of supported layers, and gen/upload shaders in bulk at program init. We will then reject requests for compositions that exceed that number.

Requirements:

  • The interface we use to tell the backend to do the gen/upload should be graphics API agnostic. i.e. for Vulkan we would generate a pipeline, not just the shader modules.

  • The process of loading shader binaries from storage and then uploading to gpu should happen sequentially, such that it becomes very unlikely that the shader binary memory goes cold before upload.

  • Get rid of LOAD_PREBUILT_SHADER_FILE and compile in prebuilt shader support by default

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions