You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 8, 2024. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
See glprogram.cpp
the vertex shader and program shader are generated runtime based on the layer_count.
We can't implement this feature if the layer_count is dynamically changed.
We can decide a maximum layer_count, and then use a uniform for the real layercount,
in this case it still possible?
After investitation, this feature is hard to be implemented by gles3.3 spec.
However it is feasible with gles4.2 afterwards. We can wait for this until mesa implement it
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
The text was updated successfully, but these errors were encountered: