Skip to content
Commit 3b9e9e47 authored by Timothy Arceri's avatar Timothy Arceri Committed by Emil Velikov
Browse files

glsl: use remap location when serialising uniform program resource data



This allows us to avoid expensive string compares since we already have
a map to the pointers.

These compares were taking ~30 seconds for a single shader compile
in Godot due to it using 64,000+ uniforms.

Fixes: c4cff5f4 ("glsl: add basic support for resource list to shader cache")

Reviewed-by: default avatarTapani Pälli <tapani.palli@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=109229
(cherry picked from commit fb78a6cb)
parent 12586d58
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment