mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 15:20:10 +01:00
st/mesa: Use ShaderCacheSerializeDriverBlob driver function
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
parent
c510dd22a9
commit
450f00e39d
1 changed files with 2 additions and 0 deletions
|
|
@ -759,10 +759,12 @@ st_init_driver_functions(struct pipe_screen *screen,
|
|||
screen->get_shader_param(screen, PIPE_SHADER_VERTEX,
|
||||
PIPE_SHADER_CAP_PREFERRED_IR);
|
||||
if (preferred_ir == PIPE_SHADER_IR_NIR) {
|
||||
functions->ShaderCacheSerializeDriverBlob = st_serialise_nir_program;
|
||||
functions->ProgramBinarySerializeDriverBlob = st_serialise_nir_program;
|
||||
functions->ProgramBinaryDeserializeDriverBlob =
|
||||
st_deserialise_nir_program;
|
||||
} else {
|
||||
functions->ShaderCacheSerializeDriverBlob = st_serialise_tgsi_program;
|
||||
functions->ProgramBinarySerializeDriverBlob = st_serialise_tgsi_program;
|
||||
functions->ProgramBinaryDeserializeDriverBlob =
|
||||
st_deserialise_tgsi_program;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue