Someone really smart could do h.264 decoder-on-steroids now.
Unfortunately, you'd need an OpenCL-capable GPU for this - and OpenCL-capable GPUs tend to have dedicated (and faster!) video decoding blocks already. Given the shared buffers between OpenCL/OpenGL, this would probably be a viable approach for video decoding on Gallium drivers (unless there are plans to add a dedicated video decoding API/tracker - no idea).
Now, OpenCL-based encoding and we are talking.![]()
So, will this help the people working on the Nouveau open-source nvidia drivers?
I have no special knowledge of the matter, but I'm guessing that the answer is not really. The most that I could see the nouveau developers using these drivers for is as a reference platform for compatibility testing of the nouveau driver implementation. i.e. write a feature in Nouveau, see if it works using an opengl/opencl program. If it doesn't, see if the same program is broken in Nvidia's driver.
I wouldn't be surprised if the EULA for the Nvidia drivers has a statement that you aren't allowed to use the drivers to reverse engineer Nvidia proprietary info, yadda, yadda, yadda..
First try: crash!
Anyone see what's wrong with that code?Code:// Runs on AMD's implementation :/ CL.CreateContextFromType((ContextProperties*)null, DeviceTypeFlags.DeviceTypeDefault, IntPtr.Zero, IntPtr.Zero, &error);