diff options
Diffstat (limited to 'src/radeon_bof.c')
-rw-r--r-- | src/radeon_bof.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/radeon_bof.c b/src/radeon_bof.c index a0a8708..f252d92 100644 --- a/src/radeon_bof.c +++ b/src/radeon_bof.c @@ -55,6 +55,11 @@ struct radeon_ctx *radeon_ctx_load_bof(struct radeon *radeon, const char *filena goto out_err; } device = bof_int32_value(tmp); + if (!radeon->device) { + r = radeon_initialize_family(radeon, device); + if (r) + goto out_err; + } ctx = radeon_ctx(radeon); if (ctx == NULL) { fprintf(stderr, "%s failed to create context\n", __func__); |