From: Kenneth Graunke Date: Fri, 21 Sep 2018 22:43:49 +0000 (-0700) Subject: iris: use 0 for TCS passthrough program string ID X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=30c370ed4bc502b6163b52b36c6bb1c776ccd1f1;p=mesa.git 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. --- 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, };