avutil/hwcontext_cuda: allow using primary CUDA device context