From 277818ecfb3d7a2ac840b0c36e3586b2fdac1a52 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 14 May 2016 13:39:57 -0400 Subject: [PATCH] freedreno/ir3: small standalone compiler cleanup Don't hard-code the gpu-id anymore. Signed-off-by: Rob Clark --- src/gallium/drivers/freedreno/ir3/ir3_cmdline.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c index 47bcec42751..42beb4db6e3 100644 --- a/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c +++ b/src/gallium/drivers/freedreno/ir3/ir3_cmdline.c @@ -48,8 +48,7 @@ static void dump_info(struct ir3_shader_variant *so, const char *str) { uint32_t *bin; const char *type = ir3_shader_stage(so->shader); - // TODO make gpu_id configurable on cmdline - bin = ir3_shader_assemble(so, 320); + bin = ir3_shader_assemble(so, so->shader->compiler->gpu_id); debug_printf("; %s: %s\n", type, str); ir3_shader_disasm(so, bin); free(bin); -- 2.30.2