OSDev.org

The Place to Start for Operating System Developers
It is currently Thu Mar 28, 2024 3:27 pm

All times are UTC - 6 hours




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: [Solved] Intel graphics framebuffer glitch
PostPosted: Wed Jan 27, 2021 6:20 am 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
I am experimenting with display mode setting for Intel integrated graphics and I am having some trouble. I am able to switch between different display modes (like 640x400@70, 640x480@60, 1024x768@60, etc.) but some pixel columns seem to be glitched, no matter which display mode is being used. Attachments show what the problem is. It's almost like pixel stream doesn't match with frame timings. BTW. Im testing on G31 (GMA 3100) chipset but I only have documentation for G35 (GMA X3500).


Attachments:
File comment: This is what I expect
expected.png
expected.png [ 830 Bytes | Viewed 746 times ]
File comment: This is what I get
shifted.png
shifted.png [ 844 Bytes | Viewed 746 times ]


Last edited by pvc on Wed Jan 27, 2021 2:59 pm, edited 1 time in total.
Top
 Profile  
 
 Post subject: Re: Intel graphics framebuffer glitch
PostPosted: Wed Jan 27, 2021 2:59 pm 
Offline
Member
Member
User avatar

Joined: Mon Jan 15, 2018 2:27 pm
Posts: 201
I can't believe it took me this long to find it.

Turns out that I did not mask low bits of GMADR register when reading it from PCI config space. Instead 0xE0000000 I used 0xE0000008 address as graphics memory base. Last 8 looked so similar to other 0s on the screen in VGA font. I did see it only after setting up serial connection (and whole CLI) to the machine and using some semi-decent font in terminal emulator.


Top
 Profile  
 
 Post subject: Re: [Solved] Intel graphics framebuffer glitch
PostPosted: Wed Jan 27, 2021 4:02 pm 
Offline
Member
Member

Joined: Mon Feb 02, 2015 7:11 pm
Posts: 898
Hehe... Yeah it has happened to me in the past. Frustrating.

_________________
https://github.com/kiznit/rainbow-os


Top
 Profile  
 
 Post subject: Re: [Solved] Intel graphics framebuffer glitch
PostPosted: Wed Jan 27, 2021 7:23 pm 
Offline
Member
Member
User avatar

Joined: Mon May 22, 2017 5:56 am
Posts: 812
Location: Hyperspace
Remote login of one sort or another is extremely useful when developing window systems.

_________________
Kaph — a modular OS intended to be easy and fun to administer and code for.
"May wisdom, fun, and the greater good shine forth in all your work." — Leo Brodie


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours


Who is online

Users browsing this forum: 8infy, Bing [Bot], thewrongchristian and 63 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group