mesa: glProgramBinary add resource_hash

reduce search time(E.g glGetUniformLocation) when use glProgramBinary

Signed-off-by: cheyang <cheyang@bytedance.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8238>
This commit is contained in:
cheyang
2020-12-25 16:20:43 +08:00
committed by Marge Bot
parent 72390f063f
commit a7be48bdae
+2
View File
@@ -301,6 +301,8 @@ _mesa_program_binary(struct gl_context *ctx, struct gl_shader_program *sh_prog,
return;
}
_mesa_create_program_resource_hash(sh_prog);
/* From section 7.3 (Program Objects) of the OpenGL 4.5 spec:
*
* "If LinkProgram or ProgramBinary successfully re-links a program