Originally posted by Drago
View Post
Announcement
Collapse
No announcement yet.
NIR Lands In Mesa, New IR Started By High Schooler Intern At Intel
Collapse
X
-
-
Originally posted by Ancurio View PostI am just guessing here, but TGSI looks like the "state tracker agnostic" part in the compilation pipeline. For example, I doubt Gallium9 uses the GLSL IR at all, I would guess they just translate the compiled D3D9 bytecode straight into TGSI which all Gallium drivers understand equally (and some of them don't use LLVM for native instruction generation like Noveau I believe).
Comment
-
Originally posted by Drago View PostYeah, you a right. I just wonder if there is some technical argument against retiring TGSI. It was invented to be as similar as D3D internal pipeline, and in hope that GPU vendors will hook their proprietary drives in it, which never happened. AMD has made many advancements to LLVM so it can be used as GLSL abstraction, so I was wondering if it is possible to replace TGSI altogether.
Comment
-
Originally posted by Drago View PostMarek, why is TGSI needed then? Can you say that TGSI and LLVM are interchangeable, and if every other user is willing to spend time and money to convert from TGSI to LLVM, and suffer the pain to integrate in the LLVM tree, then TGSI can be left to die. Currently official users of TGSI are radeon,nouveau,freedreno,vc4, and vmware. Any Idea why Intel resist LLVM and introduce another IR, where they can do optimizations?
I don't understand the question about interchangeability. TGSI is not interchangeable with LLVM in general. The chances TGSI will be removed are pretty low. If somebody wants remove it, they can start with the video acceleration APIs. Yes, I'm joking. I'm sure most people don't even want to touch that.
Comment
-
Originally posted by marek View PostMy current plan is to disable all Mesa shader optimizations for radeonsi and see what happens. Ideally, we should have this:
GLSL (no optimizations) -> TGSI (no optimizations) -> LLVM (this is where optimizations start)## VGA ##
AMD: X1950XTX, HD3870, HD5870
Intel: GMA45, HD3000 (Core i5 2500K)
Comment
-
Originally posted by Drago View PostGLSL -> GLSL IR (+optimizations)-> NIR (+optimizations) -> TGSI -> LLVM (+optimizations) -> ISA.
AMD invested heavily in LLVM but I guess this could end up like this:
GLSL -> NIR (+optimizations) -> LLVM(+optimizations) -> ISA.
For Intel and nouveau:
GLSL -> NIR(+optimizations) -> ISA.
Comment
Comment