diff options
author | Niklas Haas <git@haasn.dev> | 2022-01-11 13:37:31 +0100 |
---|---|---|
committer | Niklas Haas <github-daiK1o@haasn.dev> | 2022-02-03 18:22:14 +0100 |
commit | b2958670a3bf67653d861534ef6e21dd9309f5e0 (patch) | |
tree | dc83752196a4267455580f9e4c03894835c93dc0 /video/out/hwdec/hwdec_cuda_vk.c | |
parent | 88c6c84b64f91bd1f532a62770ebf4615bda098e (diff) | |
download | mpv-b2958670a3bf67653d861534ef6e21dd9309f5e0.tar.bz2 mpv-b2958670a3bf67653d861534ef6e21dd9309f5e0.tar.xz |
libplacebo: switch to v4 naming convention
All of these const struct pointers got typedefs, clean up the code
accordingly.
Diffstat (limited to 'video/out/hwdec/hwdec_cuda_vk.c')
-rw-r--r-- | video/out/hwdec/hwdec_cuda_vk.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/video/out/hwdec/hwdec_cuda_vk.c b/video/out/hwdec/hwdec_cuda_vk.c index 0378dd2b7c..3b058d740f 100644 --- a/video/out/hwdec/hwdec_cuda_vk.c +++ b/video/out/hwdec/hwdec_cuda_vk.c @@ -35,9 +35,8 @@ struct ext_vk { CUexternalMemory mem; CUmipmappedArray mma; - const struct pl_tex *pltex; - - const struct pl_sync *sync; + pl_tex pltex; + pl_sync sync; CUexternalSemaphore ss; CUexternalSemaphore ws; @@ -55,7 +54,7 @@ static bool cuda_ext_vk_init(struct ra_hwdec_mapper *mapper, struct ext_vk *evk = talloc_ptrtype(NULL, evk); p->ext[n] = evk; - const struct pl_gpu *gpu = ra_pl_get(mapper->ra); + pl_gpu gpu = ra_pl_get(mapper->ra); struct pl_tex_params tex_params = { .w = mp_image_plane_w(&p->layout, n), @@ -279,7 +278,7 @@ bool cuda_vk_init(const struct ra_hwdec *hw) { PL_HANDLE_FD; #endif - const struct pl_gpu *gpu = ra_pl_get(hw->ra); + pl_gpu gpu = ra_pl_get(hw->ra); if (gpu != NULL) { if (!(gpu->export_caps.tex & p->handle_type)) { MP_VERBOSE(hw, "CUDA hwdec with Vulkan requires exportable texture memory of type 0x%X.\n", |