Skip to content

Commit

Permalink
Per application deployment: VA-API interface support
Browse files Browse the repository at this point in the history
  • Loading branch information
pal1000 committed Feb 24, 2023
1 parent 3acdfdb commit 5c26ae7
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
19 changes: 17 additions & 2 deletions bin/perappdeploy.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@
@set foundswr=0
@set foundosmesa=0
@set foundgraw=0
@set foundvaapi=0
@set overwritewarn=
@for /f delims^=^ eol^= %%a IN ('dir /A:L /B "%dir%" 2^>^&1') DO @(
@IF /I "%%~nxa"=="opengl32.dll" set founddesktopgl=1
Expand Down Expand Up @@ -97,6 +98,10 @@
@if EXIST "%dir%\graw.dll" del "%dir%\graw.dll"
@if EXIST "%dir%\graw_null.dll" set foundgraw=1
@if EXIST "%dir%\graw_null.dll" del "%dir%\graw_null.dll"
@if EXIST "%dir%\va.dll" set foundvaapi=1
@if EXIST "%dir%\va.dll" del "%dir%\va.dll"
@if EXIST "%dir%\va_win32.dll" set foundvaapi=1
@if EXIST "%dir%\va_win32.dll" del "%dir%\va_win32.dll"
@echo Done.
@echo.

Expand Down Expand Up @@ -191,16 +196,26 @@

:graw
@set graw=
@if NOT EXIST "%mesaloc%\%mesadll%\graw.dll" if NOT EXIST "%mesaloc%\%mesadll%\graw_null.dll" GOTO restart
@if NOT EXIST "%mesaloc%\%mesadll%\graw.dll" if NOT EXIST "%mesaloc%\%mesadll%\graw_null.dll" GOTO vaapi
@set /p graw=Do you need gallium raw interface (y/n):
@echo.
@if /I NOT "%graw%"=="y" GOTO restart
@if /I NOT "%graw%"=="y" GOTO vaapi
@IF %foundgraw% EQU 1 echo Updating Gallium raw interface deployment...
@IF EXIST "%mesaloc%\%mesadll%\graw.dll" if NOT EXIST "%dir%\graw.dll" call modules\mklink.cmd graw
@IF EXIST "%mesaloc%\%mesadll%\graw_null.dll" if NOT EXIST "%dir%\graw_null.dll" call modules\mklink.cmd graw_null
@IF EXIST "%mesaloc%\%mesadll%\libglapi.dll" if NOT EXIST "%dir%\libglapi.dll" call modules\mklink.cmd libglapi
@echo.

:vaapi
@if EXIST "%mesaloc%\%mesadll%\va.dll" if EXIST "%mesaloc%\%mesadll%\va_win32.dll" set /p vaapi=Deploy video acceleration support (y/n):
@if EXIST "%mesaloc%\%mesadll%\va.dll" if EXIST "%mesaloc%\%mesadll%\va_win32.dll" echo.
@if /I NOT "%vaapi%"=="y" GOTO restart
@IF %foundvaapi% EQU 1 echo Updating VA-API interface deployment...
@IF EXIST "%mesaloc%\%mesadll%\va.dll" if NOT EXIST "%dir%\va.dll" call modules\mklink.cmd va
@IF EXIST "%mesaloc%\%mesadll%\va_win32.dll" if NOT EXIST "%dir%\va_win32.dll" call modules\mklink.cmd va_win32
@IF EXIST "%mesaloc%\%mesadll%\dxil.dll" IF EXIST "%dir%\dxil.dll" del "%dir%\dxil.dll"
@IF EXIST "%mesaloc%\%mesadll%\dxil.dll" IF NOT EXIST "%dir%\dxil.dll" call modules\mklink.cmd dxil

:restart
@set rerun=
@set /p rerun=More Mesa deployment? (y=yes):
Expand Down
2 changes: 2 additions & 0 deletions releasenotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@
- OpenCL SPIRV: Add patch fixing CLC JIT compilation with LLVM and clang 15 [22.3/23.0 up to 23.0.0].
### Distribution
- Add VA-API library to release package.
### Deployment
- Per application tool: VA-API interface support.
# 22.3.5
- Updated Mesa3D to [22.3.5](https://docs.mesa3d.org/relnotes/22.3.5.html).
### Build script
Expand Down

0 comments on commit 5c26ae7

Please sign in to comment.