make handles bold.
This commit is contained in:
1 parent
f577242432
commit
69b87777e5
728 files changed
+3291
-3087
No files matched your search
+13
-13
@@ -25,46 +25,46 @@ in_reply_to: ""
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** @rianflo
|
||||
**1/** **@rianflo** ^1597661267845865474
|
||||
|
||||
"The road to 16-bit floats GPU is paved with our blood"
|
||||
:-/
|
||||
|
||||
https://www.yosoygames.com.ar/wp/2022/01/the-road-to-16-bit-floats-gpu-is-paved-with-our-blood/
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
**2/** **@NOTimothyLottes** ^1597717009369735169
|
||||
|
||||
@rianflo
|
||||
**@rianflo**
|
||||
|
||||
Explicit packed 16-bit works on AMD Vulkan Vega and up. I typically get up to 30% improvement on ALU bound stuff. Lots of occupancy wins. I don't use {HLSL, RenderDoc, Reflection, RADV, or VS/PS}. All constants are packed and aliased as UINT, so no coversion overheads.
|
||||
|
||||
**3/** @rianflo
|
||||
**3/** **@rianflo** ^1597718146663690240
|
||||
|
||||
@NOTimothyLottes
|
||||
**@NOTimothyLottes**
|
||||
|
||||
Oh I know the benefits. Just no simple clear way to write it in GLSL for vulkan.
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
**4/** **@NOTimothyLottes** ^1597718560511385600
|
||||
|
||||
@rianflo
|
||||
**@rianflo**
|
||||
|
||||
Sure there is. CAS/FSR1/etc all shipped with fantastic GLSL versions using 16-bit packed math (I wrote those), all which at the time got fantastic code generation using AMD's drivers.
|
||||
|
||||
**5/** @rianflo
|
||||
**5/** **@rianflo** ^1597720097753542656
|
||||
|
||||
@NOTimothyLottes
|
||||
**@NOTimothyLottes**
|
||||
|
||||
What GLSL extension did you use?
|
||||
|
||||
**6/** @rianflo
|
||||
**6/** **@rianflo** ^1597720454000541696
|
||||
|
||||
@NOTimothyLottes
|
||||
**@NOTimothyLottes**
|
||||
|
||||
Oh wait, you're saying you wrote the fp16 math manually?
|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
**7/** **@NOTimothyLottes** ^1597798161665253376
|
||||
|
||||
@rianflo
|
||||
**@rianflo**
|
||||
|
||||
Explicit packed 16-bit code. FSR1 example: https://github.com/GPUOpen-Effects/FidelityFX-FSR/blob/master/ffx-fsr/ffx_fsr1.h - There are different 'F' (32-bit) and 'H' and 'Hx2' (packed 16-bit) functions.
|
||||
|
||||
|
||||
+6
-6
@@ -26,21 +26,21 @@ parent_post_id: "2001106069238563204"
|
||||
|
||||
## Branch
|
||||
|
||||
**1/** @rianflo
|
||||
**1/** **@rianflo** ^2001144169536884919
|
||||
|
||||
@NOTimothyLottes
|
||||
**@NOTimothyLottes**
|
||||
|
||||
question is how much overhead. of course even not knowing how it was implemented, its obviously complex. but i’d take a bit of overhead in favor of writing a “program” top down on the gpu.
|
||||
|
||||
**2/** @rianflo
|
||||
**2/** **@rianflo** ^2001145112932262354
|
||||
|
||||
@NOTimothyLottes
|
||||
**@NOTimothyLottes**
|
||||
|
||||
you already know we’re on the same page wrt to rendering stuff differently, but it would be fun to show a proof of concept for rendering trad stuff this way, even just to proof a point. like load and render any gltf. :-)
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
**3/** **@NOTimothyLottes** ^2001165107649216550
|
||||
|
||||
@rianflo
|
||||
**@rianflo**
|
||||
|
||||
I just need to get off the R&D train at some point and actually ship something :)
|
||||
|
||||
|
||||
@@ -25,58 +25,58 @@ in_reply_to: ""
|
||||
|
||||
## Thread
|
||||
|
||||
**1/** @rianflo
|
||||
**1/** **@rianflo** ^2001080321802977727
|
||||
|
||||
Significant amount of bloat dropped :-) 🎉🥳🎈
|
||||
|
||||
I’d move it all to the GPU though. A single kernel that launches your pipeline steps per frame or per whatever. Pretty sure NV can do it. AMD I have no deep knowledge. @NOTimothyLottes ?
|
||||
|
||||
**2/** @NOTimothyLottes
|
||||
**2/** **@NOTimothyLottes** ^2001106069238563204
|
||||
|
||||
@rianflo
|
||||
**@rianflo**
|
||||
|
||||
From my perspective being compute-only for graphics, few reasons to launch kernels because I'd always use a fixed amount of VGPRs. The larger problem is compilers that cannot keep up with the large program sizes (in compile time or register allocation).
|
||||
|
||||
Branches: [[archive/threads/rianflo/2025-12-17-significant-amount-of-bloat-dropped/2025-12-17-rianflo-question-is-how-much-overhead-of-course-even-not]]
|
||||
|
||||
**3/** @NOTimothyLottes
|
||||
**3/** **@NOTimothyLottes** ^2001107058356088988
|
||||
|
||||
@rianflo
|
||||
**@rianflo**
|
||||
|
||||
Huge amount of pitfalls with compute-side dynamic dispatch of work (NV had it back when I worked there BTW), from long latency chains, to overheads tracking work completion, preemption, state restore, etc. It's not the golden answer people think it is. It is a slow path.
|
||||
|
||||
**4/** @NOTimothyLottes
|
||||
**4/** **@NOTimothyLottes** ^2001107424523030580
|
||||
|
||||
@rianflo
|
||||
**@rianflo**
|
||||
|
||||
There are however a bunch of things we could trivially do GPU side that are currently CPU side, like computing best tiling modes for images, computing image {size, alignment, etc}, building descriptors, etc. Lots of other driver stuff could be done on the GPU for sure.
|
||||
|
||||
**5/** @NOTimothyLottes
|
||||
**5/** **@NOTimothyLottes** ^2001107937784127907
|
||||
|
||||
@rianflo
|
||||
**@rianflo**
|
||||
|
||||
My plan for 2026 is actually to build my open source AMD SteamOS/Linux driver for a future compute-graphics API, and it will be doing some radical stuff since I'm also doing shader binary code generation too :) Hopefully you all get live examples.
|
||||
|
||||
**6/** @bkaradzic
|
||||
**6/** **@bkaradzic** ^2001125773508534778
|
||||
|
||||
@NOTimothyLottes @rianflo
|
||||
**@NOTimothyLottes** **@rianflo**
|
||||
|
||||
Can't wait! This compute-graphics API is something like compute + meshlets + fragment shaders only graphics API?
|
||||
|
||||
**7/** @NOTimothyLottes
|
||||
**7/** **@NOTimothyLottes** ^2001138916145991850
|
||||
|
||||
@bkaradzic @rianflo
|
||||
**@bkaradzic** **@rianflo**
|
||||
|
||||
Compute as in only compute shader dispatches, no fixed function graphics (no fragment/etc). And graphics via pure compute.
|
||||
|
||||
**8/** @Nicolas_Lopez_
|
||||
**8/** **@Nicolas_Lopez_** ^2001323805197975947
|
||||
|
||||
@NOTimothyLottes @bkaradzic @rianflo
|
||||
**@NOTimothyLottes** **@bkaradzic** **@rianflo**
|
||||
|
||||
Considering how much we already software rasterize, we are not so far from it :)
|
||||
|
||||
**9/** @rianflo
|
||||
**9/** **@rianflo** ^2001326067873886604
|
||||
|
||||
@Nicolas_Lopez_ @NOTimothyLottes @bkaradzic
|
||||
**@Nicolas_Lopez_** **@NOTimothyLottes** **@bkaradzic**
|
||||
|
||||
yeah but then someone insists on a couple of large triangles and wants to access the rasterizer hw again, which is supposedly too small of die area to be even worth ripping it out.
|
||||
Reference in new issue
Block a user