[Solved] Intel graphics framebuffer glitch

Question about which tools to use, bugs, the best way to implement a function, etc should go here. Don't forget to see if your question is answered in the wiki first! When in doubt post here.
Post Reply
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

[Solved] Intel graphics framebuffer glitch

Post by pvc »

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
This is what I expect
This is what I expect
expected.png (830 Bytes) Viewed 1002 times
This is what I get
This is what I get
shifted.png (844 Bytes) Viewed 1002 times
Last edited by pvc on Wed Jan 27, 2021 2:59 pm, edited 1 time in total.
User avatar
pvc
Member
Member
Posts: 201
Joined: Mon Jan 15, 2018 2:27 pm

Re: Intel graphics framebuffer glitch

Post by pvc »

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.
kzinti
Member
Member
Posts: 898
Joined: Mon Feb 02, 2015 7:11 pm

Re: [Solved] Intel graphics framebuffer glitch

Post by kzinti »

Hehe... Yeah it has happened to me in the past. Frustrating.
User avatar
eekee
Member
Member
Posts: 891
Joined: Mon May 22, 2017 5:56 am
Location: Kerbin
Discord: eekee
Contact:

Re: [Solved] Intel graphics framebuffer glitch

Post by eekee »

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
Post Reply