Conversation started Oct 27, 2015 at 6:54.
Oct 27, 2015 06:54
@ElimGarak Question
@GregorMcGregor Everything
I'm not too familiar with the graphics side of GPUs, but are the rasterizers implemented in software or hardware?
The bigger question being: if one decides to not use DX/OpenGL, and to write everything in CUDA/OpenCL, would it be possible to achieve exactly the same result, pixel for pixel, at the same performance, without proprietary knowledge?
asking for a friend
I can reword if unclear
Let me see if I can succinctly put it. I think I get what you're aiming at, when talking about the general/classic graphics pipeline, you had the previous fixed function pipeline where a lot of stuff got packed into those general purpose cores. Rasterizer is the only remnant that is hardcore specialized hardware (analysis of coverage/visibility etc). This is why many techniques which could be more easily done in a compute shader like voxel generation try to take advantage of the hardware rast.
So there are some parts that aren't so to speak accessible from any kind of shader?
You can easily write a rasterizer, as you know, but matching the performance of dedicated hardware, far from it. Even with optimal rasterization rules mimicking it and going over the land of classic hardware rasterization, you'd be hardpressed to beat it. :D
Oct 27, 2015 07:06
Yup, rasterizer is one of those.
Thanks Elim I will sacrifice a few pixels in your honour
praise the Domagod
There is a move to make them generalized as well, AMD kinda has it down almost, but still requires special treatment. Both Nvidia and AMD have specialized graphics command processors/engines, in addition to generic compute ones. They're the only ones which can grant you an audience with the rasterizer.
Are those raster units accessible with assembly instructions or is it completely isolated from user code
You can't touch them, you can get some system values that the rasterizer generates (coverage), but you can't really tell it what to do. We've been bitching about that for many a year, but alas to no avail. Getting control over it would be a boon to the pixel people.
Oct 27, 2015 07:11
Because I'm making a voxel thingy in OpenCL
And I'm slowly realizing I don't seem to get access to the whole hardware
If you're generating voxels, take up OpenGL to generate it and then pass it to OpenCL. If you want fun performance (20 ms for lets say 512x512x512)
@ElimGarak You mean the other way around, no?
@GregorMcGregor Well, with OpenGL, you can use the rasterizer to help generate voxels. :D OpenGL 4.3 should be more than sufficient (with compute shaders you don't have to fake kernels with vertex shader IDs and geometry shaders for CR (even though high MSAA can do the trick as well for conservative rasterization)).
alrighty then
many a thank
This guy had a hard-on for voxel generation using the classic graphics pipeline, it's not really realtime friendly, but a fun research direction. Good place to start on your voxel journey. Scratch that, I can do you one better... Here's the crux of it (OGL). It is based on his work and a few other researchers before him.
Oct 27, 2015 07:20
> Cyril Crassin
I'd do a pun but you don't speak French
Ohhh it's the GigaVoxels guy
bookmarked, thanks
 
Conversation ended Oct 27, 2015 at 7:22.