mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-15 22:13:24 +09:00
[MG_Backend, MG_Test] (Disaggregated): P5f fv - keep hidden frontend programs off server initialization
This commit is contained in:
@@ -4482,6 +4482,12 @@ void main() {
|
||||
}
|
||||
|
||||
Bool VulkanRenderer::InitializeBlitResources() {
|
||||
#if MOBILEGL_BUILD_DISAGGREGATED
|
||||
// P5f fv: both window and headless transports use WireFramebuffer's native
|
||||
// operations. These hidden programs are frontend objects, so even creating
|
||||
// them on the server would retain a client compiler/allocator dependency.
|
||||
if (MG_Config::Transport != MG_Config::TransportMode::Monolith) return true;
|
||||
#endif
|
||||
ShutdownBlitResources();
|
||||
|
||||
auto vertexShader = MakeShared<MG_State::GLState::ShaderObject>(ShaderStage::Vertex, kHiddenBlitVertexShaderId);
|
||||
@@ -4574,6 +4580,12 @@ void main() {
|
||||
}
|
||||
|
||||
Bool VulkanRenderer::InitializeDepthMipmapResources() {
|
||||
#if MOBILEGL_BUILD_DISAGGREGATED
|
||||
// P5f fv: both window and headless transports use WireFramebuffer's native
|
||||
// operations. These hidden programs are frontend objects, so even creating
|
||||
// them on the server would retain a client compiler/allocator dependency.
|
||||
if (MG_Config::Transport != MG_Config::TransportMode::Monolith) return true;
|
||||
#endif
|
||||
ShutdownDepthMipmapResources();
|
||||
|
||||
auto vertexShader = MakeShared<MG_State::GLState::ShaderObject>(ShaderStage::Vertex,
|
||||
|
||||
Reference in New Issue
Block a user