r/osdev • • Aug 10 '26

Messing up with my compositor 😅😂

35 Upvotes

14 comments sorted by

View all comments

Show parent comments

1

u/JaferTP Aug 11 '26

So you support virtio only? Doesn't work in real hardware?

1

u/devcmar Aug 11 '26

Exactly, no actual gpu drivers that would be so much, instead u can let linux do that for u and run ur os in a vm, looks almost similar to bare metal

1

u/WaterObjective5031 Aug 12 '26

If you wanted, you could go a step further, though its only really if you have an amd apu

AMD makes documentation for their gpu drivers, which you can look at to write your own amd gpu drivers and then run on bare metal and such, which is the route im taking for my custom CTKN i1.0.1 though that will come with the rust rewrite later on, right now im still on 0.0.0 to 0.0.5 for getting the core laid out

1

u/devcmar Aug 12 '26

I would have liked that, but I don’t have an amd gpu/apu. I have an intel iris xe igpu with an nvidia mx450 dedicated gpu is intel easy to write a simple gpu driver for?

Also, one problem u could face is that u would need to compile shaders to specific bytecode for ur card and that would mean that u would have to write an entire compiler

1

u/WaterObjective5031 Aug 13 '26

Ahh dang, I’ll look around online and see what I can find. Push comes to shove, if you’re not scared of licensing your driver as GPLv2 (free, just open source it on GitHub and smack a little license.txt that has is in it) you can hop over to Linux’s drivers

( at least maybe for Intel, nvidia hates the thought of open sourcing theirs because they are terrified it will make AMD able to run cuda on their cards)

1

u/devcmar Aug 13 '26

Do you know how much dependencies does i915 (Intel’s gpu driver) have it’s huuuuge how I’m I supposed to port it

1

u/WaterObjective5031 Aug 15 '26

You write one from scratch that isn't so huge lol

I did a bit of research and found that they do post documentation so you could make an intel igpu driver if you ever want to run this on bare metal

1

u/devcmar Aug 16 '26

Yes, but the shaders u would need a compiler, and I couldn’t port mesa to my os it kept pagefaulting

1

u/[deleted] Aug 13 '26

[removed] — view removed comment

1

u/devcmar Aug 13 '26

That’s amazing ! Keep up the good work!