renderer/native: Refactor into secondary_gpu_get_next_dumb_buffer
When I was working on using the primary GPU to copy into a dumb buffer of a secondary GPU, I wrote a bunch of patches. I'm not sure I'll ever upstream those, because I'm looking into avoiding the copy completely, but that series had this one patch that I think would make a nice small clean-up in upstream in its own right.