From 7e87feaf15d5ab99473d13856bb247a0ed10e521 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 1 Dec 2017 05:09:05 +0100 Subject: vo_gpu: hwdec: remove redundant fields The testing_only field is not referenced anymore with vaglx removed and the previous commit dropping all uses. The ra_hwdec_driver.api field became unused with the previous commit, but all hwdec interop drivers still initialized it. Since this touches highly OS-specific code, build regressions are possible (plus the previous commit might break hw decoding at runtime). At least hwdec_cuda.c still used the .api field, other than initializing it. --- video/out/gpu/hwdec.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'video/out/gpu/hwdec.h') diff --git a/video/out/gpu/hwdec.h b/video/out/gpu/hwdec.h index 0ff6056bfd..258ab881b6 100644 --- a/video/out/gpu/hwdec.h +++ b/video/out/gpu/hwdec.h @@ -72,17 +72,14 @@ struct ra_hwdec_mapper_driver { }; struct ra_hwdec_driver { - // Name of the interop backend. This is used for informational purposes only. + // Name of the interop backend. This is used for informational purposes and + // for use with debugging options. const char *name; // Used to create ra_hwdec.priv. size_t priv_size; - // Used to explicitly request a specific API. - enum hwdec_type api; // One of the hardware surface IMGFMT_ that must be passed to map_image later. // Terminated with a 0 entry. (Extend the array size as needed.) const int imgfmts[3]; - // Dosn't load this unless requested by name. - bool testing_only; // Create the hwdec device. It must add it to hw->devs, if applicable. int (*init)(struct ra_hwdec *hw); -- cgit v1.2.3