mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
main/program_binary: In ProgramBinary set link status as LINKING_SKIPPED
This change allows the disk shader cache to work with programs loaded with ProgramBinary. Drivers check for LINKING_SKIPPED, and if set, then they try to use the shader cache. Since the program loaded by ProgramBinary is similar to loading the shader from the disk cache, this is probably more appropriate. Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Tapani Pälli <tapani.palli@intel.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
d2b74ca2b5
commit
2ed288363f
1 changed files with 1 additions and 1 deletions
|
|
@ -287,5 +287,5 @@ _mesa_program_binary(struct gl_context *ctx, struct gl_shader_program *sh_prog,
|
|||
return;
|
||||
}
|
||||
|
||||
sh_prog->data->LinkStatus = LINKING_SUCCESS;
|
||||
sh_prog->data->LinkStatus = LINKING_SKIPPED;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue