mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 17:30:12 +01:00
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> (cherry picked from commit773dd89fde)
This commit is contained in:
parent
274f429664
commit
2e61c87e90
2 changed files with 7 additions and 5 deletions
|
|
@ -344,7 +344,7 @@
|
|||
"description": "asahi: fix no16 flag",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"main_sha": null,
|
||||
"because_sha": "3cb8c1de819105cb21bab8ab02f1fc9a14ff4863",
|
||||
"notes": null
|
||||
|
|
|
|||
|
|
@ -2631,10 +2631,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);
|
||||
|
|
@ -2645,6 +2641,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;
|
||||
|
||||
screen->destroy = agx_destroy_screen;
|
||||
screen->get_screen_fd = agx_screen_get_fd;
|
||||
screen->get_name = agx_get_name;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue