mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-24 13:06:49 +03:00
Remove setting an env-var to force disable Altivec in libjpeg-turbo
a) v1.5.1 has Altivec off by default when built for OS4 b) I've moved my detection code into libjpeg-turbo, so the env-var will now *only* be an override
This commit is contained in:
parent
2a937ae040
commit
c2da6cbd25
10
frontends/amiga/dist/Install
vendored
10
frontends/amiga/dist/Install
vendored
@ -289,16 +289,6 @@
|
||||
|
||||
(complete 75)
|
||||
|
||||
; Force disable use of AltiVec if we don't have it
|
||||
(if (database "vectorunit" "0")
|
||||
(
|
||||
(textfile
|
||||
(dest "ENVARC:JSIMD_FORCENONE")
|
||||
(append "1")
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(if (= (exists "ENVARC:Sys/def_css.info") 0)
|
||||
(copyfiles
|
||||
(prompt "Copying default CSS icon")
|
||||
|
@ -5542,29 +5542,6 @@ int main(int argc, char** argv)
|
||||
/* Open splash window */
|
||||
Object *splash_window = ami_gui_splash_open();
|
||||
|
||||
#ifdef __amigaos4__
|
||||
/* Check for AltiVec */
|
||||
uint32 altivec = 0;
|
||||
|
||||
GetCPUInfoTags(GCIT_VectorUnit, &altivec, TAG_DONE);
|
||||
|
||||
if(altivec == VECTORTYPE_ALTIVEC) {
|
||||
LOG("AltiVec detected");
|
||||
} else {
|
||||
char jsimd_forcenone[10];
|
||||
|
||||
LOG("AltiVec NOT detected");
|
||||
int32 len = GetVar("JSIMD_FORCENONE", jsimd_forcenone, 10, GVF_GLOBAL_ONLY);
|
||||
|
||||
if(len == -1) {
|
||||
LOG("WARNING: JSIMD_FORCENONE NOT SET");
|
||||
SetVar("JSIMD_FORCENONE", "1", 1, GVF_GLOBAL_ONLY | GVF_SAVE_VAR);
|
||||
} else {
|
||||
LOG("JSIMD_FORCENONE = %s (NB: Should be '1' for this architecture)", jsimd_forcenone);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
ami_object_init();
|
||||
|
||||
if (ami_open_resources() == false) { /* alloc message ports */
|
||||
|
Loading…
Reference in New Issue
Block a user