r300: drop VDPAU support
authorPavel Ondračka <pavel.ondracka@gmail.com>
Wed, 4 Jan 2023 16:27:14 +0000 (17:27 +0100)
committerMarge Bot <emma+marge@anholt.net>
Fri, 24 Feb 2023 06:04:32 +0000 (06:04 +0000)
There is no UVD and the mpeg2 shader-based decoding is broken and doesn't
lead to CPU savings anyway. VDPAU output works, but there is no real
benefit so just disable VDPAU altogether so we can clean the backend a
bit and also open a way to potentially drop the mpeg2 deconding altogether
from the fronted.

Acked-by: Filip Gawin <filip@gawin.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/20524>

meson.build
src/gallium/targets/vdpau/meson.build

index cab995e..03fcc1a 100644 (file)
@@ -526,7 +526,6 @@ endif
 _vdpau_drivers = [
   with_gallium_d3d12_video,
   with_gallium_nouveau,
-  with_gallium_r300,
   with_gallium_r600,
   with_gallium_radeonsi,
   with_gallium_virgl,
@@ -535,7 +534,7 @@ _vdpau_drivers = [
 vdpau = get_option('gallium-vdpau') \
   .require(system_has_kms_drm, error_message : 'VDPAU state tracker can only be build on unix-like OSes.') \
   .require(with_platform_x11, error_message : 'VDPAU state tracker requires X11 support.') \
-  .require(_vdpau_drivers.contains(true), error_message : 'VDPAU state tracker requires at least one of the following gallium drivers: r300, r600, radeonsi, nouveau, d3d12 (with option gallium-d3d12-video, virgl).') 
+  .require(_vdpau_drivers.contains(true), error_message : 'VDPAU state tracker requires at least one of the following gallium drivers: r600, radeonsi, nouveau, d3d12 (with option gallium-d3d12-video, virgl).') 
 
 dep_vdpau = dependency('vdpau', version : '>= 1.1', required : vdpau)
 if dep_vdpau.found()
index b77dd6a..442784b 100644 (file)
@@ -56,7 +56,7 @@ libvdpau_gallium = shared_library(
   link_with : link_with_libvdpau_gallium,
   dependencies : [
     idep_mesautil,
-    driver_r300, driver_r600, driver_radeonsi, driver_nouveau, driver_d3d12, driver_virgl,
+    driver_r600, driver_radeonsi, driver_nouveau, driver_d3d12, driver_virgl,
   ],
   link_depends : vdpau_link_depends,
   soversion : '@0@.@1@.0'.format(VDPAU_MAJOR, VDPAU_MINOR),
@@ -65,8 +65,7 @@ libvdpau_gallium = shared_library(
   install_dir : vdpau_drivers_path,
   name_suffix : 'so',
 )
-foreach d : [[with_gallium_r300, 'r300'],
-             [with_gallium_r600, 'r600'],
+foreach d : [[with_gallium_r600, 'r600'],
              [with_gallium_radeonsi, 'radeonsi'],
              [with_gallium_nouveau, 'nouveau'],
              [with_gallium_virgl, 'virtio_gpu'],