From: Marek Olšák Date: Mon, 30 Sep 2019 20:54:00 +0000 (-0400) Subject: st/mesa: don't store stream output info to shader cache for tess ctrl shaders X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=691240cdbee712e56679368de8e6635c3df1208a;p=mesa.git st/mesa: don't store stream output info to shader cache for tess ctrl shaders Reviewed-by: Timothy Arceri --- diff --git a/src/mesa/state_tracker/st_shader_cache.c b/src/mesa/state_tracker/st_shader_cache.c index 344bd93d667..7bb36b609c9 100644 --- a/src/mesa/state_tracker/st_shader_cache.c +++ b/src/mesa/state_tracker/st_shader_cache.c @@ -107,7 +107,9 @@ st_serialise_ir_program(struct gl_context *ctx, struct gl_program *prog, case MESA_SHADER_GEOMETRY: { struct st_common_program *stcp = (struct st_common_program *) prog; - write_stream_out_to_cache(&blob, &stcp->tgsi); + if (prog->info.stage == MESA_SHADER_TESS_EVAL || + prog->info.stage == MESA_SHADER_GEOMETRY) + write_stream_out_to_cache(&blob, &stcp->tgsi); if (nir) write_nir_to_cache(&blob, prog); @@ -238,7 +240,6 @@ st_deserialise_ir_program(struct gl_context *ctx, struct st_common_program *sttcp = st_common_program(prog); st_release_basic_variants(st, sttcp); - read_stream_out_from_cache(&blob_reader, &sttcp->tgsi); if (nir) { sttcp->tgsi.type = PIPE_SHADER_IR_NIR;