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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user