diff options
author | Rob Clark <[email protected]> | 2020-06-15 11:14:46 -0700 |
---|---|---|
committer | Marge Bot <[email protected]> | 2020-06-19 13:16:57 +0000 |
commit | 6039d083f781b13b420ed7abe1660d353fe3e518 (patch) | |
tree | 46e8da4edf50482371ba7eaa63dbbae49b9847d2 /src/freedreno/ir3/ir3.c | |
parent | 65660622a1f7284c457388e553867b239343d314 (diff) |
freedreno/ir3: pass variant to ir3_create()
Prep to convert over to ralloc.
Signed-off-by: Rob Clark <[email protected]>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5508>
Diffstat (limited to 'src/freedreno/ir3/ir3.c')
-rw-r--r-- | src/freedreno/ir3/ir3.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/freedreno/ir3/ir3.c b/src/freedreno/ir3/ir3.c index fd2b8eab9cc..3d41a7b5cc4 100644 --- a/src/freedreno/ir3/ir3.c +++ b/src/freedreno/ir3/ir3.c @@ -45,12 +45,13 @@ void * ir3_alloc(struct ir3 *shader, int sz) return rzalloc_size(shader, sz); /* TODO: don't use rzalloc */ } -struct ir3 * ir3_create(struct ir3_compiler *compiler, gl_shader_stage type) +struct ir3 * ir3_create(struct ir3_compiler *compiler, + struct ir3_shader_variant *v) { struct ir3 *shader = rzalloc(NULL, struct ir3); shader->compiler = compiler; - shader->type = type; + shader->type = v->type; list_inithead(&shader->block_list); list_inithead(&shader->array_list); |