My understanding of how a GPU works is kinda solid I think.

This is what I understood searching on the Internet:

VRAM (or framebuffer) stores what you see on screen. Most of what the GPU does is encoding/decoding and processing data(mainly for 3D). The GPU also sends (depending on the type of connection, HDMI, VGA etc..) data read from the framebuffer to the screen.

Anyway, I don't quite understand how this data is stored.

The GPU has serial ports which sends/receive data from CPU. But this is the part that I don't understand. If the CPU sends only data(like images), how the GPU knows what addresses of VRAM will use for that piece of data if the CPU didn't send any address?

Old CPU architecture used 'inb' and 'outb' for reading and writing from and to an external device. Was it the same for GPUs?

  • $\begingroup$ your understanding is too far from full scene to fill all holes. today, cpu usually sends commands which is processed by GPU to make a picture. Since GPU is whole processor, the laguage of these commands may be arbitrary, you may look at OpenGL for one example $\endgroup$
    – Bulat
    Commented Jul 11, 2019 at 21:47
  • $\begingroup$ @Bulat So, the GPU has a cpu-like instruction set(?). $\endgroup$
    – Diego
    Commented Jul 11, 2019 at 22:40
  • $\begingroup$ Yes, both are processors and differences between them are irrelevant to this question. $\endgroup$
    – Bulat
    Commented Jul 11, 2019 at 22:49
  • $\begingroup$ If you want to learn AMD GPU instruction set, look into developer.amd.com/wp-content/resources/… $\endgroup$
    – Bulat
    Commented Jul 11, 2019 at 22:52


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.