summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Clark <[email protected]>2016-05-14 13:39:57 -0400
committerRob Clark <[email protected]>2016-05-15 17:25:48 -0400
commit277818ecfb3d7a2ac840b0c36e3586b2fdac1a52 (patch)
tree69ee083797fe77931c9ff635ed9d6df4ec43f12b
parentf06343d6eabf8f91e4cfb2b2d7313e9d5ca0797a (diff)
freedreno/ir3: small standalone compiler cleanup
Don't hard-code the gpu-id anymore. Signed-off-by: Rob Clark <[email protected]>
-rw-r--r--src/gallium/drivers/freedreno/ir3/ir3_cmdline.c3
1 files changed, 1 insertions, 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);