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.
This commit is contained in:
@@ -549,7 +549,7 @@ iris_update_compiled_tcs(struct iris_context *ice)
|
|||||||
const struct shader_info *tes_info =
|
const struct shader_info *tes_info =
|
||||||
iris_get_shader_info(ice, MESA_SHADER_TESS_EVAL);
|
iris_get_shader_info(ice, MESA_SHADER_TESS_EVAL);
|
||||||
struct brw_tcs_prog_key key = {
|
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,
|
.tes_primitive_mode = tes_info->tess.primitive_mode,
|
||||||
.input_vertices = ice->state.vertices_per_patch,
|
.input_vertices = ice->state.vertices_per_patch,
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user