mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-26 04:10:09 +01:00
lima: disasm: call util_cpu_detect() to init CPU caps
It's needed by _mesa_half_to_float(), without this change it hits assertion failure in util_get_cpu_caps(). Reviewed-by: Andreas Baierl <ichgeh@imkreisrum.de> Signed-off-by: Vasily Khoruzhick <anarsoul@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/13968>
This commit is contained in:
parent
711a4ccddb
commit
b8f4d36ee4
1 changed files with 4 additions and 0 deletions
|
|
@ -23,6 +23,7 @@
|
|||
*/
|
||||
|
||||
#include "util/ralloc.h"
|
||||
#include "util/u_cpu_detect.h"
|
||||
|
||||
#include <err.h>
|
||||
#include <stdio.h>
|
||||
|
|
@ -175,6 +176,9 @@ main(int argc, char **argv)
|
|||
return -1;
|
||||
}
|
||||
|
||||
/* Needed by _mesa_half_to_float() */
|
||||
util_cpu_detect();
|
||||
|
||||
if (is_frag) {
|
||||
assert((size & 0x3) == 0);
|
||||
size >>= 2;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue