Commit Graph
100 Commits
Author SHA1 Message Date
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
Alexander von Gluck IV 64629da639 3DRender preferences: Remove OpenGL text
* Prevent trademark issues with "OpenGL" text.
* Rename OpenGL preference pane "3D Rendering"
* Update catkeys
* Add a better image to 3D Rendering preferences
  (we can change this if there are objections, just
  trying to pretty the pane up a little)
2012-02-02 17:07:46 +00:00
Alexander von Gluck IV ef34f28b38 opengl add-on: Fix potential memory leaks. CID 2777
* Free GL FrameBuffer which could of resulted in
  memory leaks
* Add better malloc/calloc failure tracing.
2012-02-01 08:13:20 -06:00
Alexander von Gluck IV f7167131ad opengl add-on: Fix logical/bitwise mismatch. CID 11201
* The !DOUBLE actually wipes *all* GL settings causing the
  teapot depth issues.
* Teapot now renders properly, however still flickers red
  on mouse over.
* Disable tracing, it really spams the console when GL is
  working.
2012-02-01 07:03:19 -06:00
Alexander von Gluck IV 38759479e7 radeon_hd: Fix missing break; CID 11230 2012-01-30 09:01:50 -06:00
Alexander von Gluck IV 9fabc0f6da opengl add-ons: Style cleanup 2012-01-29 09:59:39 -06:00
Alexander von Gluck IV 40ea55295d radeon_hd: Pointer style cleanup, no functional change 2012-01-29 09:53:03 -06:00
Alexander von Gluck IV d2a69507d0 radeon_hd: A few style fixes, no functional change 2012-01-29 09:53:03 -06:00
Alexander von Gluck IV 47452375a7 opengl: Clear up a few header issues, no functional change
* Philippe voiced that he was the original author in the ML,
  adding Philippe to the headers to ensure credit is given.
* Adding Precision Insight copyright back *just incase*
  It's unclear if Precision Insight code was used given
  Philippe's comments in the ML, lets be safe and add it back.
  As we have Brian's permission for these changes I feel
  comfortable with it.
2012-01-26 13:19:34 -06:00
Alexander von Gluck IV a80293e0cf opengl: Pointer, newline cleanup, no functional change
* Clean up pointer positions
* Clean up function line returns
2012-01-26 09:47:08 -06:00
Alexander von Gluck IV a42877a6e4 opengl: Header / whitespace cleanup
* I received the ok via email from Brain Paul at mesa to
  relicense the GLDispatcher sources to MIT + him as the
  author.
* Update include ordering
* Remove HAIKU_TARGET_PLATFORM_HAIKU ifdefs for boot options
2012-01-26 09:27:31 -06:00
Alexander von Gluck IV 24b921a0ca mesa: Whitespace cleanup 2012-01-24 17:41:52 -06:00
Alexander von Gluck IV e887ca27b1 mesa: Improve and cleanup render code. 2012-01-24 17:39:12 -06:00
Alexander von Gluck IV bec3facc5e mesa: Use latest Mesa optional package
* Use non-debug version which is a *lot* smaller
* Represents bug fixes to Mesa under Haiku, x86
  assembly + sse is now used with swrast.
* Remove state.h requirement as I can't find anything
  that actually uses it.
2012-01-23 13:45:06 -06:00
Alexander von Gluck IV 4b3408bdf6 mesa build: Remove un-needed headers
* Let gcc do it's job and pull header requirements
* Add defines for gcc to ensure all arch headers are pulled
2012-01-23 13:23:16 -06:00
Alexander von Gluck IV 19affa2725 mail kit: Use errno vs return codes, gives better results. 2012-01-22 09:31:36 -06:00
Alexander von Gluck IV fd391ef3c2 mail kit: Improve debugging of internal mail kit network code
* Return the correct error code if there is a connection error
* Be more verbose if there is a problem
  network connection problem instead of showing "Login error: "
* IMAP inbound: Show a valid error message if there is a
* Show server name resolution, fishes out IPv6 bug #8293
2012-01-22 00:12:53 -06:00
Alexander von Gluck IV bf2b0138fe radeon_hd: Fill in a few missing PCIIDs, #8289 2012-01-20 21:32:57 -06:00
Alexander von Gluck IV 8dd1e875c1 kernel: Fix FPU SSE + MMX instruction usage.
* Rename init_sse to init_fpu and handle FPU setup.
* Stop trying to set up FPU before VM init.
  We tried to set up the FPU before VM init, then
  set it up again after VM init with SSE extensions,
  this caused SSE and MMX applications to crash.
* Be more logical in FPU setup by detecting CPU flag prior
  to enabling FPU. (it's unlikely Haiku will run on
  a processor without a fpu... but lets be consistant)
* SSE2 gcc code now runs (faster even) without GPF
* tqh confirms his previously crashing mmx code now works
* The non-SSE FPU enable after VM init needs tested!
2012-01-20 15:06:01 -06:00
Alexander von Gluck IV 67f45bfdf2 opengl add-on: Remove dead code 2012-01-20 11:33:52 -06:00
Alexander von Gluck IV 2a14f70ce8 opengl: Remove unneeded visibility flag 2012-01-17 14:59:04 +00:00
Alexander von Gluck IV 3c0d5dcaf1 opengl: Improve libGL linking and Mesa optional package
* Move compiled binaries into lib.haiku within Mesa optional
  pacakge, this enables us to use Make or scons to build Mesa
* Untangle libGL linking and order library inclusion
* Remove zmuldef hacks
* Compile libgallium into the libGL on Mesa 8.0 / gcc4 images
* Don't Mesa calculate cpu optimizations due to visibility
  issues, use Mesa cpu functions for this.
* Don't allow undefined symbols in libGL.so to ensure sanity.
* Move Mesa optional packages to haiku-files
2012-01-17 14:57:49 +00:00
Alexander von Gluck IV ec4f80739e mesa: Update OptionalPacakge build script
* Add missing cpuinfo header
* Add diff to compile Mesa 7.8.2 for gcc2
2012-01-17 14:57:00 +00:00
Alexander von Gluck IV 9097f91c95 mesa: Updated script to build Mesa optional package
* Move compiled binaries into lib.haiku
* Enables usage with makefile and scons Mesa builds
2012-01-17 14:51:55 +00:00
Alexander von Gluck IV 65705aca9a radeon_hd: Fix DisplayPort connector check, #8282 2012-01-13 17:56:03 -06:00
Alexander von Gluck IV eb3e388241 GL: Disable OpenGL applications and libraries on non-x86
* This should definitely be undone once we figure out a
  way to cross compile stuff under haiku.
* setgcc ppc gcc4 anyone?
2012-01-13 17:42:45 -06:00
Alexander von Gluck IV 58dbd25f6b mesa: Whitespace, style cleanup. No functional change 2012-01-12 18:04:34 -06:00
Alexander von Gluck IV 0c99c75edf mesa: Always check color space before deciding to reconfigure
* Gives a slight performance boost
* Variable name cleanup
2012-01-12 17:54:03 -06:00
Alexander von Gluck IV 3df3057e3c mesa: Code cleanup and optimization
* Rename _SetSpan to _SetupRenderBuffer to perform more general
  render buffer setup and consolidate code
* Remove CMAP8 calls. Mesa no longer supports CMAP8. CMAP8 GL
  use cases are non-existent
2012-01-12 17:49:12 -06:00
Alexander von Gluck IV 69001466e2 interface: Clean up public headers; No functional change.
* Whitespace / Tab cleanup
* Better document color space
* Let me know if anything looks wrong
2012-01-12 16:26:15 -06:00
Alexander von Gluck IV 67f3236e6a glut: Ensure Mesa dependency is met before compiling 2012-01-11 22:01:12 -06:00
Alexander von Gluck IV 367834c6ba mesa: include GL public headers in image 2012-01-11 16:56:28 -06:00
Alexander von Gluck IV 7b2c1ed631 glut: build and link into libGL 2012-01-11 16:55:15 -06:00
Alexander von Gluck IV 8e4cdaae8d haiku3d: Fix haiku3d build
* Add GL header include path
* Remove strange GL include path from sources
2012-01-11 00:20:02 -06:00
Alexander von Gluck IV defd6ec79a mesa: Bump gcc4 optional package to 8.0-devel 2012-01-11 00:14:54 -06:00
Alexander von Gluck IV 683e7cc845 Merge branch 'mesabetter' 2012-01-10 20:54:26 -06:00
Alexander von Gluck IV 7dde214bc0 radeon_hd: Fix accelerant regression in 4e9e029
* After 4e9e029, radeon_hd functionality became erratic.
* I think failing to lock the encoder bios scratch on
  encoder changes was causing it.
2012-01-10 13:07:15 -06:00
Alexander von Gluck IV b4f8644589 add in a missing mesa header, formats.h; No Haiku code change. 2012-01-10 12:57:43 -06:00
Alexander von Gluck IV 3e0c69a0e6 Add hacks for older gcc2 Mesa 7.8.2 support
* Call different functions depending on Mesa version
* The --no-warnings is for the GL headers which produce
  large numbers of attribute directive ignored warnings
  that cannot be disabled on gcc2
2012-01-10 05:13:19 +00:00
Alexander von Gluck IV 27fdeae9e1 Use optional package gl headers 2012-01-08 01:42:10 -06:00
Alexander von Gluck IV 77d663c3ea Remove the Haiku Mesa fork 2012-01-08 01:12:54 -06:00
Alexander von Gluck IV 41020a0f1a Make mesa_software_renderer work with latest mesa
* Some of these changes may be pulled back with the NEW_MESA
  define so this works across older and newer Mesa versions
* NEW_MESA defines and checks should be removed when gcc2 is
  no longer a supported platform
2012-01-08 01:07:57 -06:00
Alexander von Gluck IV f6a611ebf0 Use Mesa optional package to build opengl kit 2012-01-08 00:31:03 -06:00
Alexander von Gluck IV 016d04966a Add optional build feature to pull Mesa optional package 2012-01-08 00:22:07 -06:00
Alexander von Gluck IV da46520777 Break glut out from mesa lib
As glut is no longer in upstream Mesa and no longer developed
we will need to keep a fork.
2012-01-08 00:15:58 -06:00
Alexander von Gluck IV b63d0f0c44 add mesa-o-matic shell script
* This bundles up a compiled upstream Mesa source directory
 * Used during the creation of the Mesa optional package
2012-01-07 23:58:54 -06:00
Alexander von Gluck IV 2cb6157746 Add Juniper LE+XT pci id's 2011-12-28 17:15:45 -06:00
Alexander von Gluck IV 4e9e029551 Set encoder dpms on dpms, it just feels right 2011-12-19 10:47:55 -06:00
Alexander von Gluck IV 94e5ca7e6d Add function to perform external encoder dpms set
* Utilize external encoder dpms set on dpms set
2011-12-18 21:23:57 -06:00
Alexander von Gluck IV 45e71a9ea6 Add function to handle DIG encoder dpms setup
* Add code to control DIG dpms setup
* Reduce information needed by encoder_dpms_set
* DIG dpms setup needs access to pixelClock for DP training
2011-12-18 11:48:53 -06:00
Alexander von Gluck IV 8ff2ca22f7 Complete code for DIG transmitter control
* Record external clock frequency (aka, DP non-pll)
* Add function to control DIG transmitter
* Cleanup duplicated is external code in encoder mode set
2011-12-17 12:34:56 -06:00
Alexander von Gluck IV 7e38e5101f Pass pixelClock to dig encoder setup, my DP LVDS bridge now works. 2011-12-16 16:43:54 -06:00
Alexander von Gluck IV 09aaa658b0 DisplayPort call organization and cleanup
* Add color space to BPP function
* Pass display_mode to DP lane count function
* Get BPP in DP lane count
* Move some DPInfo population out of DP link training
  as other things need them sooner.
* Fill out DP code in external encoder setup
2011-12-15 17:18:39 -06:00