asahi: fix no16 flag

regressed when shuffling code for hk.

Fixes: 3cb8c1de81 ("asahi: get debug in common")
Signed-off-by: Alyssa Rosenzweig <alyssa@rosenzweig.io>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/31908>
This commit is contained in:
Alyssa Rosenzweig 2024-10-22 08:56:51 -04:00
parent 02169e76dd
commit 773dd89fde

View file

@ -2673,10 +2673,6 @@ agx_screen_create(int fd, struct renderonly *ro,
driParseConfigFiles(config->options, config->options_info, 0, "asahi", NULL,
NULL, NULL, 0, NULL, 0);
/* Forward no16 flag from driconf */
if (driQueryOptionb(config->options, "no_fp16"))
agx_screen->dev.debug |= AGX_DBG_NO16;
agx_screen->dev.fd = fd;
agx_screen->dev.ro = ro;
u_rwlock_init(&agx_screen->destroy_lock);
@ -2687,6 +2683,12 @@ agx_screen_create(int fd, struct renderonly *ro,
return NULL;
}
/* Forward no16 flag from driconf. This must happen after opening the device,
* since agx_open_device sets debug.
*/
if (driQueryOptionb(config->options, "no_fp16"))
agx_screen->dev.debug |= AGX_DBG_NO16;
int ret =
drmSyncobjCreate(agx_device(screen)->fd, 0, &agx_screen->flush_syncobj);
assert(!ret);