Commit Graph
100 Commits
Author SHA1 Message Date
Alexander von Gluck IV 75c81b64a9 whoami: Remove OpenB*OS version
* Was replaced by coreutils whoami, and options are the same.
2012-04-01 13:40:19 -05:00
Alexander von Gluck IV e0153fad24 beep: Style cleanup. No functional change. 2012-04-01 13:40:19 -05:00
Alexander von Gluck IV 5cb635561c listdev: Style cleanup. No functional change. 2012-04-01 13:40:19 -05:00
Alexander von Gluck IV 948be77f87 swrast: Cleanup, no functional change 2012-03-30 16:50:28 -05:00
Alexander von Gluck IV d0df888925 swrast: Fix inverted rendering
* Override swrast RenderBuffer mapping function
  so we can invert Y at rendertime.
2012-03-30 16:43:21 -05:00
Alexander von Gluck IV df82ad659d swrast: Style cleanup, no functional change 2012-03-30 15:28:28 -05:00
Alexander von Gluck IV cd0ba1c23a swrast: Header comment cleanup
* Clean up header information and dates
* We can safely remove this Mesa blurb now
2012-03-30 15:02:27 -05:00
Alexander von Gluck IV 1044ebb29c swrast: Set RowStride, remove Viewport hook 2012-03-30 14:43:27 -05:00
Alexander von Gluck IV ca55f49062 swrast: remove unneeded component ordering 2012-03-30 14:00:24 -05:00
Alexander von Gluck IV db8c0f96f6 swrast: Remove unused clear code 2012-03-30 13:09:09 -05:00
Alexander von Gluck IV 21e0911b7d swrast: Header style cleanup
* Functions are pushed out one tab due to
  very long types
2012-03-30 13:07:53 -05:00
Alexander von Gluck IV 065cba5314 swrast: Initial rewrite for new Mesa
* Stop using internal fb and rb wrappers
* Stop doing Get/Put Row
* Stop malloc'ing buffers
* Tons of other changes
2012-03-30 13:02:40 -05:00
Alexander von Gluck IV a37e0c23c8 swrast: Remove Get/Put Row/Value code as it no longer exists 2012-03-30 10:43:14 -05:00
Alexander von Gluck IV 67fd0d069c mesa: Use updated gcc4 Mesa build 2012-03-30 10:38:48 -05:00
Alexander von Gluck IV b318ebee97 mesa: Add stock Mesa diffs for mainline mesa
* rtasm symbol collision fix.
  There is older Mesa rtasm code, and newer Gallium3D
  rtasm code. There are colliding symbols only seen when
  you link Mesa and Gallium into the same shared library.
  This diff makes Mesa use the Gallium3D rtasm code.
* Mesa target architecture fix.
  This ensures the generated Mesa binaries work under
  Pentium or higher processors. Fix for #8318
2012-03-30 10:09:08 -05:00
Alexander von Gluck IV 6aaadd60dd radeon_hd: Fix bytes per row passed to app_server
* Video modes with widths that are not multiples of
  32 were failing to set
* Should solve analog "skewed display"
* Add debugging on adjusted framebuffer pitch
* Thanks go out to AMD open source developers for
  the help tracking this one down!
2012-03-29 07:00:37 -05:00
Alexander von Gluck IV 7e9cb02755 radeon_hd: Correct framebuffer pixel pitch alignment 2012-03-29 06:14:35 -05:00
Alexander von Gluck IV 8a7256ae14 jamfile: Update speex package name
* Not sure where this optional package went however
  it is no longer on haiku-files.org
* A newer speex package does exist however.
* Should fix #8371
* If this doesn't work speex (and maybe sdl) optional
  packages need rebuilt
2012-03-26 15:36:31 -05:00
Alexander von Gluck IV 5e87e39562 radeon_hd: Don't pass old pixel clock to encoder
* pll_set can make pixel clock adjustments.
* Anything after pll_set should use encoder pll
  to ensure adjustments are picked up.
2012-03-24 21:08:28 -05:00
Alexander von Gluck IV d8ac7e28ee radeon_hd: Fix DCE version check
* Trace cleanup
* Minimal change
2012-03-24 20:30:14 -05:00
Alexander von Gluck IV 151b499622 radeon_hd: Add spread spectrum control functions
* Store SS information with PLL
* Probe SS information for PLL
* Disable SS more correctly
* May resolve mode setting issues on newer cards
2012-03-22 17:00:08 -05:00
Alexander von Gluck IV 67da9f0716 radeon_hd: Fix oops in hrev43880 2012-03-22 16:18:09 -05:00
Alexander von Gluck IV d07afea357 radeon_hd: Fix AtomBIOS provided reference divider
* When AtomBIOS provides a reference divider, we should
  still attempt to perform calculations using it vs
  returning.
2012-03-22 13:05:39 -05:00
Alexander von Gluck IV 41cf61d1c9 radeon_hd: Don't call TV encoder control improperly
* TV encoder was dropped on DCE5+
* (ATOM_DEVICE_TV_SUPPORT | ATOM_DEVICE_CV_SUPPORT)
  will improperly match DFP4 (0x2 | 0x8) = 0xA
* Bug reported to linux kernel driver
2012-03-22 11:49:15 -05:00
Alexander von Gluck IV bc83207890 radeon_hd: Add new VCE encoder defines
* Internal encoder introduced for HD 7xxx
* si_tn [PATCH 02/48]
2012-03-22 08:41:17 -05:00
Alexander von Gluck IV 00cc4e4ff4 radeon_hd: Fix nutmeg check to external encoder 2012-03-16 21:59:08 -05:00
Alexander von Gluck IV 4eabb6487d radeon_hd: DisplayPort encoder fixes.
* Handle external encoder case properly when
  pulling encoder mode.
* Return DisplayPort encoder if DisplayPort
  connector.
* Handle DVO properly when pulling encoder mode
2012-03-16 21:52:17 -05:00
Alexander von Gluck IV e58807ed85 networkstatus: Scale icon to large and small sizes
* This gives us a nice status icon to use for
  notification messages.
2012-03-16 04:07:42 +00:00
Alexander von Gluck IV 4f3b7115be gl: Unify DirectConnected functions
* Partial undo of hrev43864 - 3dmov
  I was using an old GL renderer. After my indirect
  GL fix, this started working well without direct
  rendering. (sorry for the spam)
* Clean up the other GL DirectConnected functions
  Make it easy for know what to disable to toggle
  Direct Rendering.
2012-03-16 03:39:31 +00:00
Alexander von Gluck IV b2bcacdef6 3dmov: Convert to current DirectConnected api
* Not sure when this older method went away,
  but nothing uses it anymore.
* You now see a book when you launch 3dmov
* Still crashy
2012-03-16 01:31:38 +00:00
Alexander von Gluck IV 66765679d4 3dmov: Add GL header dependency 2012-03-16 01:29:25 +00:00
Alexander von Gluck IV 491ab3bcbe radeon_hd: Repair external encoder dpms call
* I was right that this didn't look right.
* Now we set up the internal encoder, then
  the external one if valid.
* Make sure we optionally set up external
  encoder if desired on UNIPHY
2012-03-15 19:31:37 -05:00
Alexander von Gluck IV f2d6b9af3a radeon_hd: Sanitize connector_is_dp function
* there is no guarentee the data in encoderExternal
  is valid if we don't check valid == true
2012-03-15 19:14:43 -05:00
Alexander von Gluck IV 6728eddfa4 radeon_hd: Fix bugs in external DP bridge code
* non-external encoder will never be a DP bridge.
* use external encoder in places where needed.
* ensure we look at proper encoder for isDPBridge.
2012-03-15 09:38:48 -05:00
Alexander von Gluck IV 72f6869e9e radeon_hd: Add support for external encoders
* Some encoders are bridges (DVO) and some encoders
  can act like bridges (UNIPHY). Probe for encoders
  further out in the display path and set them up
  properly.
* Debug output support for external encoders
* Fix cases where we should use external encoder
  information vs main encoder info.
2012-03-15 14:47:13 -05:00
Alexander von Gluck IV ced3b516ea radeon_hd: Remove isHDMI, isTV. Unused. 2012-03-15 14:47:13 -05:00
Alexander von Gluck IV 6da8db2786 Revert "radeon_hd: Convert encoders to pointers"
This reverts commit 5a1f9f0f16.

* Thinking on this a bit more, this is really a silly change as
  I know the upper limit for number of valid encoders.
* Resolves a app_server crash introduced as well due to not
  allocating encoder pointer.
2012-03-15 09:07:23 -05:00
Alexander von Gluck IV 5a1f9f0f16 radeon_hd: Convert encoders to pointers
* Preparation for multiple encoders per connector
2012-03-14 07:24:59 -05:00
Alexander von Gluck IV 6848bdd539 radeon_hd: Reduce complexity in connector setup
* Map connector under consideration to pointer
  in connector probing.
2012-03-14 06:54:41 -05:00
Alexander von Gluck IV 83e3a8ea50 radeon_hd: Start work on proper DP link training
* The AtomBIOS timeout fix has made my DP bridge
  stop working
* The current DisplayPort code is a little lacking
  on DP link training... I think thats the cause.
* This puts the first steps towards DP training
  in place.
* I plan on trying to make some of this DP stuff
  common accelerant stuff after it works.
2012-03-14 06:22:59 -05:00
Alexander von Gluck IV 6f7c0aadbe radeon_hd: Whitespace cleanup, no functional change 2012-03-14 06:20:16 -05:00
Alexander von Gluck IV 48b430fe0b radeon_hd: Add missing AtomBIOS tables 2012-03-14 06:20:15 -05:00
Alexander von Gluck IV 119cd5e1c1 radeon_hd: Add missing load detection on DIG encoders 2012-03-14 06:20:15 -05:00
Alexander von Gluck IV 32ef94aa91 radeon_hd: AtomBIOS loop failure detection now time based
* If the same call is made for 5 seconds straight, fail.
* Resolves random AtomBIOS failures.
* AtomBIOS failures now represent *real* bugs :)
2012-03-14 06:20:14 -05:00
Alexander von Gluck IV 89e7764d98 radeon_hd: Tune AtomBIOS failure threshold
* Fixes edge cases of AtomBIOS parser failing
  before there really was a problem.
* Hopefully resolves the rest of the random
  failures and #5722
* If this doesn't work, I'll rewrite the parser
  to use jiffies (snooze)
* Thanks for all the testing Disreali!
2012-03-12 21:43:38 -05:00
Alexander von Gluck IV f1b3e74461 3dmov: Add missing GL headers 2012-03-12 19:49:19 -05:00
Alexander von Gluck IV 5874758653 Merge branch 'mesasplit' 2012-03-12 16:44:49 -05:00
Alexander von Gluck IV d36a2809d1 swrast: Remove old Mesa ifdef's 2012-03-12 16:41:49 -05:00
Alexander von Gluck IV 0b15050616 swrasts: Clean up build system
* Make two independent rast add-ons to avoid
  file name collisions
* Clean up some gcc2 vs gcc4 jamfile defines
2012-03-12 15:41:09 -05:00
Alexander von Gluck IV 2502c69c60 swrast_legacy: Remove new Mesa ifdef's 2012-03-12 15:13:53 -05:00
Alexander von Gluck IV 9526f0a881 swrasts: Fix indirect rendering regression
* Introduced in hrev43755
* Missed the fact this fb width and height was
  still used.
* Haiku3d, and flurry work once again
2012-03-12 14:43:43 -05:00
Alexander von Gluck IV db1fd85b59 swrast: Split swrast driver in two (mainline and legacy)
* Mainline will be gcc4, current Mesa.
* Legacy is the "stable" 7.8.2 swrast engine.
2012-03-12 09:46:47 -05:00
Alexander von Gluck IV 8fb9e2dbb8 jam: Add clang binary optional package
* Created from haikuporter ticket #313
* Tested as functional under gcc4h
2012-03-09 15:07:46 -06:00
Alexander von Gluck IV 89a2b4812c radeon_hd: Fix APU / DCE 5+ encoder mode switch
* Don't touch transmitter.
* Potential fix for #8331 and other HD 5xxx, 6xxx
  mode setting issues.
* Missed in my backport drm commit:
  3a47824d85eeca122895646f027dc63480994199
* Tested as non-impacting change on my APU
2012-03-08 09:29:27 -06:00
Alexander von Gluck IV f070c3c311 radeon_hd: Decode encoder flags in debug.
* Should assist in troubleshooting.
2012-03-08 07:13:17 -06:00
Alexander von Gluck IV 0a92c1ea63 radeon_hd: White space / line length cleanup.
* No functional change.
2012-03-08 05:52:57 -06:00
Alexander von Gluck IV 63d0b67679 radeon_hd: Fill in a few analog encoder edge cases
* If TV, NTSC hardcoded for now. I plan to address
  this with an accelerant config file at some point
2012-03-08 05:49:10 -06:00
Alexander von Gluck IV 628e4c98bd radeon_hd: Better tracing for dig transmitter setup
* Help troubleshoot #8331
* Whitespace cleanup
2012-03-06 10:54:18 -06:00
Alexander von Gluck IV 33e204adee jam: Add binary bootloader for Raspberry Pi
* Version 17-02-2012
* Used to initialize the Raspberry Pi GPU and boot it
* License is permissive, I've also included the
  confirmation email on this license.
* Little bootloader documentation.
* Still nothing to get excited about, preliminary.
2012-03-05 20:44:54 -06:00
Alexander von Gluck IV b44d24c0ad network status: Add notifications for major network events
* Add a notification if the network interface monitored by
  the system tray icon has a major state change.
* This gives users a little feedback on connection state.
* User is only prompted once on each state change.
* TODO: change system tray icons to vector so we can scale
  them up better.
2012-03-05 16:30:27 -06:00
Alexander von Gluck IV fe4fdaad2e jam: Add board definition for Raspberry Pi
* used by HAIKU_BOOT_BOARD.
* gcc machine options from Raspberry Pi wiki.
* don't get too excited, or expect any Haiku
  love for it anytime soon.
2012-03-04 07:44:27 -06:00
Alexander von Gluck IV 7c89d968b5 radeon_hd: Ensure vramBase is at 0.
* This value is card internal framebuffer offset
* 0 is the proper value, however it was causing issues for me
* The mode setting issues I saw before are now gone, and this
  seems to make mode setting more stable now.
2012-03-02 16:03:35 -06:00
Alexander von Gluck IV 7dd182106a radeon_hd: Fix invalid encoder state
* This was a *big* oops on my part.
* We were missing initial setup call for
  Kaleidoscope and DP Bridge encoders.
* If you were having radeon HD mode setting
  issues, try this change.
* Potential fix for #5722, #7397, #8059, #8151, #8282,
  #8289, #8310, #8322, #8331
2012-03-01 07:11:28 -06:00
Alexander von Gluck IV ccb23a1eee radeon_hd: Improve dig encoder picking 2012-03-01 06:12:56 -06:00
Alexander von Gluck IV e766693eb0 radeon_hd: lvds, dvo, and hdmi encoder improvements
* Begin storing the lcd flags in lvds info call as the
  encoder needs them.
* Fill out laptop / lvds todo in encoder code.
* Stub out dvo encoder calls, not sure use cases for dvo.
2012-02-28 09:56:20 -06:00
Alexander von Gluck IV 64ff3d1891 radeon_hd: Pass dpms calls to encoders as well 2012-02-28 09:56:20 -06:00
Alexander von Gluck IV 59bfec576d radeon_hd: Better implement GPU idle function
* Function only checked for idle and didn't
  wait for the gpu memory controler to idle.
* May resolve mode setting issues on some
  newer hardware.
2012-02-25 11:04:08 -06:00
Alexander von Gluck IV 2399d174dc radeon_hd: Begin improvement on crtc state control
* Try to not blank the crtc when it is alreay disabled
* Clean up wording, active now present on display info
* Don't lock crtc when doing normal dpms calls, crtc
  should only be locked during mode set / change
2012-02-25 11:04:07 -06:00
Alexander von Gluck IV a5e3ee78ee radeon_hd: AtomBIOS, correct logic. No functional change 2012-02-25 11:04:07 -06:00
Alexander von Gluck IV 24dfcdc195 radeon_hd: AtomBIOS parser improvements
* "DANGER" is a little strong of a warning
* Provide better tracing when things go wrong
* Give raw table / operation values in addition
  to AtomBIOS pointers
2012-02-22 09:35:15 -06:00
Alexander von Gluck IV 43b4a25fe4 radeon_hd: The lack of a default case here was on purpose 2012-02-22 07:50:21 -06:00
Alexander von Gluck IV c937ca1987 radeon_hd: Improve pll DP bridge code
* Only set DP bridge on DP bridge.
* Add a bit of tracing
2012-02-22 06:52:51 -06:00
Alexander von Gluck IV 4ee41b26a0 radeon_hd: Disable spread spectrum
* SS requires complex pll adjustments that we don't do atm
2012-02-22 06:31:53 -06:00
Alexander von Gluck IV 962eb31b1c radeon_hd: Add better tracing 2012-02-22 05:10:37 -06:00
Alexander von Gluck IV c1cd48b72f kernel: Fix fpu on non-apic systems
* If apic is not present, the smp code never gets called
  to set up the fpu.
* Detect lack of apic, and set up fpu in arch_cpu.
* Should fix #8346 and #8348
2012-02-21 11:58:15 -06:00
Alexander von Gluck IV 4bd6c200c1 radeon_hd: Implement preferred mode
* Add preferredMode display mode to each display.
* If LVDS is detected, set preferredMode based on AtomBIOS
* Fixes blocker #8329 ?
2012-02-21 09:48:11 -06:00
Alexander von Gluck IV 47cede7b8c swrast: Fix gcc4 Pentium compatibility
* Move to new mesa optional package whih build options:
  -march=i586 -mtune=i686 -mmmx (removing all -msse*)
* SSE asm still executes based on CPU flags
* Fixes blocker #8318
2012-02-20 12:56:53 -06:00
Alexander von Gluck IV 4a84bae838 swrast: Legacy renderer fixes / cleanup
* Fix red teapot on mouseover. This was due to extra
  buffer swap.
* Fix crash on double buffer usage.
* We still use single buffer at the moment as Haiku
  has a software cursor that gets overwritten by GL apps
2012-02-18 15:31:06 -06:00
Alexander von Gluck IV e8790580ad radeon_hd: LVDS AtomBIOS mode reading
* This isn't done, but all we need to do now is create
  a simulated edid struct for LVDS screens.
2012-02-17 08:13:29 -06:00
Alexander von Gluck IV 437937ab64 radeon_hd: Add rebranded HD 73xx, add process, add rumored cards 2012-02-17 08:13:28 -06:00
Alexander von Gluck IV 3944c320dd radeon_hd: Clean up PCIID hex case 2012-02-17 08:13:28 -06:00
Alexander von Gluck IV 0a2f1274ff radeon_hd: Update southern islands info
* Add 7770 and 7750 pciid's
* Remove Thames and reorganize code names for SI
  (seems the codenames changed before release)
* Untested as always
2012-02-16 12:05:06 -06:00
Alexander von Gluck IV 6e434fd80e wifi-firmware: Move from svn to cgit for byteswap.h 2012-02-15 17:25:13 -06:00
Alexander von Gluck IV 3f1eed704a kernel: x86 SSE improvements
* Prepend x86_ to non-static x86 code
* Add x86_init_fpu function to kernel header
* Don't init fpu multiple times on smp systems
* Verified fpu is still started on smp and non-smp
* SSE code still generates general protection faults
  on smp systems though
2012-02-15 12:33:45 -06:00
Alexander von Gluck IV 63203bef62 mesa-o-matic: Update script for Mesa mainline 2012-02-13 16:14:35 +00:00
Alexander von Gluck IV d2b09eeb7f net server: Remove un-needed braces. Look for network stack vs ipv4 2012-02-10 09:58:40 -06:00
Alexander von Gluck IV 1684be5e39 ipv6: Fix ability to disable ipv6 tracing. Disable ipv6 tracing 2012-02-09 15:36:06 -06:00
Alexander von Gluck IV 842cfbca2d ipv6: bit of style cleanup. No functional change 2012-02-09 15:18:59 -06:00
Alexander von Gluck IV 94c264db3a net server: IPv6, there is no place like ::1
* Add new function to check for protocol support
* If IPv6 support is present assign ::1 to loopback
* ping6 ::1 functions 100%
* Still some route strangeness with link local addresses
2012-02-09 14:49:58 -06:00
Alexander von Gluck IV 990a3ef3ea net server: IPv6, look at nic flags vs name for loop 2012-02-08 21:16:15 -06:00
Alexander von Gluck IV ca1c1c5db9 net server: IPv6 local link, Use BNetworkAddress tools for mac
* Stop using sscanf
* Start using BNetworkAddress LinkLevelAddress and friends
* Thanks Axel!
2012-02-08 21:07:36 -06:00
Alexander von Gluck IV 2c3ab1bed6 kits: Fix a few missed spelling issues 2012-02-08 18:06:03 -06:00
Alexander von Gluck IV 2066acfbc5 game kit: Style and whitespace cleanup. No functional change. 2012-02-08 17:38:59 -06:00
Alexander von Gluck IV 1b6bc2675f kits: Some spelling cleanup of common mistyped words
* Little whitespace cleanup
* No functional change
2012-02-08 16:50:18 -06:00
Alexander von Gluck IV 458166fb30 radeon_hd: Improve Radeon HD APU support
* Backport from linux radeon drm 3a47824d
* Better logic for DCE version checking
2012-02-08 14:45:04 -06:00
Alexander von Gluck IV 7136439799 radeon_hd: Add new Southern Island cards
* Yeah.. these are untested.
* Still trying to verify that these are DCE 6.0
2012-02-08 12:39:33 -06:00
Alexander von Gluck IV 8b371b91e4 NetServer: Prevent duplicate v6 link local addresses
* Check to ensure the address doesn't already exist on card
* In the future we will want to check interface address flags
  for any local scoped addresses on a card.
2012-02-07 18:14:21 -06:00
Alexander von Gluck IV dd7f08b519 NetServer: Add IPv6 link local address to each nic on boot
* Remove old ioctl code, cleanup AutoLooper.
* Move link local code into NetServer
  AutoLooper should only be used for things that
  count as "auto-configuration" such as DHCP, router
  advertisements, and DHCPv6
* Properly form IPv6 link local address from MAC address
* I think some IPv6 routes are needed still for proper
  local link connectivity.
* Duplicate Address Detection is still a TODO
* Style cleanup
2012-02-07 15:46:37 -06:00
Alexander von Gluck IV aaa6172bc7 3DRender prefernces: Wrap text in B_TRANSLATE 2012-02-03 12:05:00 +00:00
Alexander von Gluck IV 608a156784 3DRender prefernces: Remove image, add drop down.
* Add a drop down to force a rendering engine.
* This is cosmetic and doesn't do anything (yet)
* We actually are a preference panel now!
2012-02-03 11:45:13 +00:00