Commit Graph

59424 Commits

Author SHA1 Message Date
Murai Takashi
ddd56c013d Haikudepot: Fix PVS 856
Fix 'true' value becomes a class object.

Change-Id: I7d36c024a9fec7c9649765370f529de2df44d7cb
Reviewed-on: https://review.haiku-os.org/c/868
Reviewed-by: Axel Dörfler <axeld@pinc-software.de>
2019-01-12 10:56:10 +00:00
Augustin Cavalier
7c7d9013db usb.ids: Update. 2019-01-11 16:44:44 -05:00
Augustin Cavalier
3cb53df4e6 pci.ids: Update.
It seems the cronjob that usually updates these was never migrated to
the new server. We should fix that, but in the meantime, these files are
now a year old, so let's update them.
2019-01-11 16:44:09 -05:00
Augustin Cavalier
16172596e2 freebsd_network: Update usbdevs. 2019-01-11 16:41:32 -05:00
Augustin Cavalier
6b899f5ab4 Appearance: Don't disable the "glyph hinting" menu field.
I missed this snippet of code in earlier changes, it seems.
2019-01-11 16:01:50 -05:00
Augustin Cavalier
c5cb2cbd86 Delete usb_printer driver.
It has been unused since 2010, when the usb_port printer transport
was rewritten to use the USBKit.

Change-Id: I224e07fb35cd9696c07b8f22dd51d3c67d92e0a9
Reviewed-on: https://review.haiku-os.org/c/869
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-01-11 17:02:21 +00:00
Stephan Aßmus
315ab3328e Small test-app playing ground for text rendering
The test app currently shows a number of problems in text rendering

 * Above a certain font-size, there is no glyph caching, which
   also means there is no sub-pixel filtering. It is actually
   the same problem right now for all vector-drawing. It uses the
   sub-pixel rendering pipeline, but without any filtering.
 * This test feels very sluggish. Something is going on which seems
   to be very unoptimized. To be observed when resizing the window
   and causing redraws.
 * Overlapping glyphs are handled wrongly in B_OP_COPY mode. The
   problem is that glyphs are drawn one at a time, but B_OP_COPY
   also draws the background color. In case some pixels already
   drawn with the text color by one glyph are drawn again by the
   next glyph, but with the background color, then it looks like
   gaps in the text. This problem has always existed. With the
   double filtering that was recently fixed, it was just especially
   visible, since, due to the smearing, it was much more likely that
   there were extra background pixels at the left side of glyphs.
   (Right side, too, but without visual effect.) Of course not
   completely transparent pixels, those are not drawn, but almost
   transparent pixels.

Change-Id: If590a4c93983c5a3ff0772c19074c408be8e1e74
Reviewed-on: https://review.haiku-os.org/c/871
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-01-11 16:51:27 +00:00
Augustin Cavalier
1245324d9f marvell88w8363: GCC2 fixes. 2019-01-10 22:08:08 -05:00
Augustin Cavalier
0eb01c720a drivers/wlan: All drivers have been upgraded to FreeBSD 12. 2019-01-10 22:05:44 -05:00
Augustin Cavalier
1528ce925d realtekwifi: Update and add new firmware sets. 2019-01-10 21:43:52 -05:00
Augustin Cavalier
a8bfcf3228 realtekwifi: Sync with FreeBSD trunk.
This includes changes to support the 8188EE device, as well as a
number of critical bugfixes to 8192EE devices, which should make
the driver much more stable and reliable overall.
2019-01-10 21:08:26 -05:00
Augustin Cavalier
478b2a6ab0 realtekwifi: Upgrade to FreeBSD 12.
This driver was completely rewritten and merged with its USB counterpart
in FreeBSD 12. I've imported the USB code, even though it's not compiled
in at all, because it's more than likely I'll get around to USB WiFi support
before FreeBSD 13 comes...

Untested, because I don't have one of these PCI devices.
2019-01-10 20:43:15 -05:00
Augustin Cavalier
860d86851e freebsd_network: Tweaks for the new realtekwifi.
One dummy header, and bump __FreeBSD_version to its actual value
from 12.0-RELEASE.
2019-01-10 20:42:24 -05:00
Augustin Cavalier
baf68028bf wavelanwifi: Upgrade to FreeBSD 12. 2019-01-10 20:10:37 -05:00
Augustin Cavalier
db7b74600c ralinkwifi: Upgrade to FreeBSD 12. 2019-01-10 17:40:08 -05:00
Augustin Cavalier
c8ba6df4ed marvell88w8335: Upgrade to FreeBSD 12. 2019-01-10 17:39:17 -05:00
Augustin Cavalier
a3cc4e1a5e marvell88w8363: Upgrade to FreeBSD 12. 2019-01-10 17:39:03 -05:00
Augustin Cavalier
0fc3af214b iprowifi3945: Upgrade to FreeBSD 12. 2019-01-10 17:29:25 -05:00
Augustin Cavalier
f7dac49055 iprowifi2200: Upgrade to FreeBSD 12. 2019-01-10 17:28:41 -05:00
Augustin Cavalier
a2045452ff iprowifi2100: Upgrade to FreeBSD 12. 2019-01-10 17:28:29 -05:00
Augustin Cavalier
3aaffc2769 broadcom43xx: Upgrade to FreeBSD 12. 2019-01-10 17:27:42 -05:00
Augustin Cavalier
4cba08df51 Printers: Allow adding IPP printers even if none are detected.
Yes, this is kind of hacky to put the printer driver as a special case
in here, but we already do this for the Preview driver, and IPP's
printer detection is pretty broken, whereas adding a printer URL manually
seems to still work.

Works around #12702.
2019-01-10 16:32:31 -05:00
Augustin Cavalier
daa6582acb XHCI: Don't reject devices with "invalid" IRQs immediately.
It seems some controllers are assigned "invalid" interrupt lines under
the expectation they will be allocated an MSI. So, don't reject
these devices for having an invalid interrupt line until after
we have tried to allocate an MSI for them.

Should fix #14792.
2019-01-10 14:17:55 -05:00
Augustin Cavalier
696138675a freebsd_wlan: Copy out only the size of the request length.
Fixes more problems with wpa_supplicant, this time on x64.
2019-01-10 13:55:21 -05:00
Augustin Cavalier
b237fff49e FileRules: Fix typo.
Thanks PulkoMandy for reviewing!
2019-01-10 12:32:33 -05:00
kerwizzy
cc15132ccc Mandelbrot: Clean up thread handling code.
* Style fixes
 * Delete semaphores in destructor

Change-Id: Ia293d3f4096e2ef1305398356f3e263a8a263d78
Reviewed-on: https://review.haiku-os.org/c/866
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-01-10 05:27:42 +00:00
Augustin Cavalier
f84c53e4ac makefile_engine: Fix installing to a path with spaces in it.
Fixes #11419.
2019-01-09 22:08:01 -05:00
Augustin Cavalier
88f01a973f Appearance: Remove FontMenu and MenuView.
Not used and largely untouched since 2005. FontSelectionView
supersedes FontMenu, and MenuView's options were merged elsewhere
(e.g. Alt/Ctrl swapping now lives in Keymap.)
2019-01-09 20:56:07 -05:00
Augustin Cavalier
177db1e47f app_server: Switch default UI font to Noto Sans Display.
Fixes #14779.
2019-01-09 20:35:41 -05:00
Augustin Cavalier
5464abed7e Enable sub-pixel font anti-aliasing by default.
Now that stippi has fixed the FreeType bitmap filter in app_server,
this rendering mode looks much nicer than Grayscale does.

Fixes #13290.
2019-01-09 20:29:47 -05:00
Augustin Cavalier
166dc2bfec Appearance: Remove "sub-pixel anti-aliasing is not enabled" message.
FreeType 2.8+ uses a non-patent-encumbered algorithm for this by default,
and as we have used it for quite a while now, this message is obsolete.
2019-01-09 19:51:24 -05:00
Augustin Cavalier
ec12d1fd3e freebsd_wlan: Add another struct-size hack. 2019-01-09 19:22:51 -05:00
Augustin Cavalier
1d91b37193 build: Fixes to support building in paths with spaces in them.
Now that HAIKU_TOP is a relative path, nearly all paths Jam actually
has to deal with will never contain spaces, so this is now feasible.
Only one issue remains after this commit (namely, setting
HOST_BUILD_COMPATIBILITY_LIB_DIR.)
2019-01-09 19:18:28 -05:00
Augustin Cavalier
134e58ec8d FileRules: Make DownloadLocatedFile1 less cryptic.
As Jam prints the entire erring command on failure, including this if-test
in the command itself makes the output somewhat difficult to decipher.
So instead we use two separate rules based on whether or not NO_DOWNLOADS
is set or not.
2019-01-09 19:18:27 -05:00
Augustin Cavalier
4293d6b7da freebsd_wlan: Tweak ioctl-size hacks.
This doesn't seem to fix the wpa_supplicant crashes, though.
2019-01-09 16:30:16 -05:00
Augustin Cavalier
568bb7eeab kernel/thread: Use a rw_spinlock for the sThreadHashLock.
On a dual-core system with no other applications but the standard ones
running, my standard "compile HaikuDepot with hot disk cache" benchmark
shows a consistent ~5% improvement after this patch (~33.7s -> ~31.9s sys).
On systems with higher core and thread counts, these numbers are probably
very much larger (I'd imagine it could be up to even 10 or 15%.)

Change-Id: I5df2a075bae7c71b84c6fcd33ead60df8e844757
Reviewed-on: https://review.haiku-os.org/c/861
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
Reviewed-by: waddlesplash <waddlesplash@gmail.com>
2019-01-09 17:55:43 +00:00
Augustin Cavalier
e6bb34532a kernel/thread: Properly implement has_data for non-current threads.
This was left unimplemented since the dawn of Haiku; but it's so rarely
used nobody seems to have noticed. I've taken care to leave it optimized
for the current thread case.

Change-Id: Ib028a37963b2da6d0ca9b4dbd5a5f4a74ecf25b4
Reviewed-on: https://review.haiku-os.org/c/860
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-01-09 17:55:43 +00:00
Murai Takashi
647b5a29e9 utf8_functions.h: Fix PVS 359
Fix integer constant SIZE_MAX is converted to pointer.

Change-Id: Ifdff4e08a9b2c31e466580ba9a71f6ea7c0191d4
Reviewed-on: https://review.haiku-os.org/c/865
Reviewed-by: Adrien Destugues <pulkomandy@gmail.com>
2019-01-09 17:44:19 +00:00
Murai Takashi
5bfdd10fb6 bus_managers/ps2: Fix PVS 519, 520
Fix 'xDelta' and 'yDelta' are assigned to itself.

Change-Id: I2e1d5fbcf3137086875db2e9590780fc1034f0bc
Reviewed-on: https://review.haiku-os.org/c/864
Reviewed-by: Stefano Ceccherini <stefano.ceccherini@gmail.com>
2019-01-09 17:43:14 +00:00
Augustin Cavalier
3af2e73e0b iprowifi4965: GCC2 fix. 2019-01-08 21:19:42 -05:00
Augustin Cavalier
4e5a521c2a iprowifi4965: Upgrade to FreeBSD 12.
Tested on a ThinkPad T61.
2019-01-08 20:54:21 -05:00
Augustin Cavalier
27632129b2 freebsd_network: Implement taskqueue_drain_all.
Required by FreeBSD 12's iprowifi4965.
2019-01-08 20:52:06 -05:00
Augustin Cavalier
24e7aa4217 regular: Typo fix.
Sorry for the noise...
2019-01-08 19:55:45 -05:00
Augustin Cavalier
0a973154a8 BMenu: Look for ASCII characters < 128, not < 255.
Otherwise we will include ISO 8859-15 (é, à, etc.)
Thanks to PulkoMandy for pointing this out!
2019-01-08 19:50:52 -05:00
Augustin Cavalier
5c8f9c2b0c build: Move WiFi drivers from the minimum to the regular image.
We don't include the wpa_supplicant on the minimum image, so
these aren't very useful (it seems one needs the wpa_supplicant
to connect even to an unsecured network, with our setup.)

Anyone who needs one of these and also has a reason to use the
minimum image can easily add them back via their UserBuildConfig.
2019-01-08 19:48:09 -05:00
Augustin Cavalier
9a0d08a701 build: Move repository config and cache files to the minimum image.
Most of the time, one just winds up adding them manually anyway.
2019-01-08 19:45:36 -05:00
Augustin Cavalier
5d200bd39c ReadMe.Compiling: Various updates.
* Remove parenthetical about cross-tools not being needed on Haiku,
   as they are indeed on x86_64.
 * Replace mkisofs/genisoimage with xorriso.
 * Move mtools to the list of tools generally needed, as EFI builds
   require them.
 * Update clone URLs and GCC version numbers.
2019-01-08 19:32:34 -05:00
Augustin Cavalier
b3dc16eecb build: Use xorriso instead of mkisofs or genisoimage.
It seems that not all Linux distributions ship an EFI-enabled
cdrtools (i.e. mkisofs takes -e option), Arch being one that
does not.

So instead, we now use xorriso universally, which is
as (or more, in most cases) widely available, and supports
emulating mkisofs with the EFI commands universally.

This also has the added benefit that we can drop genisoimage
support altogether.
2019-01-08 19:31:15 -05:00
Augustin Cavalier
ab3e2cf4bc atheroswifi: Upgrade to FreeBSD 12.
Thanks return0e for testing!
2019-01-08 17:21:31 -05:00
Augustin Cavalier
3001575d60 freebsd_network: Add child drivers directly rather than finding symbols.
This method is much less error-prone than the prior one, as that required
the driver structure to have an exported symbol identical to its "name"
field, a fact that is usually true but not always (we've had an ifdef
in the atheroswifi driver for a while now due to this.)

So when we have it, we now just use the driver_t* directly, which
should push any of these problems from the run-time stage to the
compile-time stage. It's also a significant performance
improvement.
2019-01-08 17:20:50 -05:00