From 691240cdbee712e56679368de8e6635c3df1208a Mon Sep 17 00:00:00 2001 From: =?utf8?q?Marek=20Ol=C5=A1=C3=A1k?= Date: Mon, 30 Sep 2019 16:54:00 -0400 Subject: [PATCH] st/mesa: don't store stream output info to shader cache for tess ctrl shaders Reviewed-by: Timothy Arceri --- src/mesa/state_tracker/st_shader_cache.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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; -- 2.30.2