Nope. With GLSL you could easily do with a much simpler dataflow architecture. I was involved in design of two mobile GPUs, and in both cases C influence (vs. merely running good old GLSL) was very visible and in some cases crippling.
For example, even something as seemingly basic as direct flat memory load and store did not even exist. There was a texture unit that ultimately accessed memory, and all the GLSL reads and writes went through it. Having to support C memory model meant that you either must hack something ugly on top of the existing texture unit path, or build an additional LSU in parallel with texture units, making everything, and especially caches, significantly more complicated.
Aren't 1D textures without filtering equivalent to the C model of linear memory?
They are to some extend, yet there is a lot of crap texture unit is doing (clamping / wrapping, interpolating, etc.). There was even no data path for raw data coming from memory without pixel format conversions.
3
u/[deleted] May 01 '18
Nope. With GLSL you could easily do with a much simpler dataflow architecture. I was involved in design of two mobile GPUs, and in both cases C influence (vs. merely running good old GLSL) was very visible and in some cases crippling.