ir3: add pointer from ir3_shader_variant to ir3_shader

Needed in the next commit to get the shader key for a variant.

Signed-off-by: Job Noorman <jnoorman@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33602>
This commit is contained in:
Job Noorman
2025-02-18 13:43:16 +01:00
committed by Marge Bot
parent d36594f7f0
commit 0a123ce68b
2 changed files with 2 additions and 0 deletions
+1
View File
@@ -510,6 +510,7 @@ alloc_variant(struct ir3_shader *shader, const struct ir3_shader_key *key,
return NULL;
v->id = ++shader->variant_count;
v->shader = shader;
v->shader_id = shader->id;
v->binning_pass = !!nonbinning;
v->nonbinning = nonbinning;
+1
View File
@@ -633,6 +633,7 @@ struct ir3_shader_variant {
/* id of the shader the variant came from (for debug) */
uint32_t shader_id;
struct ir3_shader *shader;
struct ir3_shader_key key;