From 30c370ed4bc502b6163b52b36c6bb1c776ccd1f1 Mon Sep 17 00:00:00 2001 From: Kenneth Graunke Date: Fri, 21 Sep 2018 15:43:49 -0700 Subject: [PATCH] iris: use 0 for TCS passthrough program string ID the passthrough shader doesn't need a real program string ID - that's basically used for ARB programs indicating total program source code changes, or other pre-baked uniform changes, etc...none of which a passthrough shader has...so we don't need a unique identifier to distinguish them. We want to use a consistent value so we find existing passthrough shaders in the cache. --- src/gallium/drivers/iris/iris_program.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/drivers/iris/iris_program.c b/src/gallium/drivers/iris/iris_program.c index 8c425c46d17..597bf4c7ed8 100644 --- a/src/gallium/drivers/iris/iris_program.c +++ b/src/gallium/drivers/iris/iris_program.c @@ -549,7 +549,7 @@ iris_update_compiled_tcs(struct iris_context *ice) const struct shader_info *tes_info = iris_get_shader_info(ice, MESA_SHADER_TESS_EVAL); struct brw_tcs_prog_key key = { - .program_string_id = tcs ? tcs->program_id : get_new_program_id((void *)ice->ctx.screen), + .program_string_id = tcs ? tcs->program_id : 0, .tes_primitive_mode = tes_info->tess.primitive_mode, .input_vertices = ice->state.vertices_per_patch, }; -- 2.30.2