From 86b118a363f6fcbdd5f49f82b1491e60d1697ea5 Mon Sep 17 00:00:00 2001 From: Julien Isorce Date: Wed, 26 Aug 2015 18:36:21 +0100 Subject: [PATCH 0/8] nouveau: add support for vaapi Currently nouveau does not support chunk decoding which is required to support st/va The following patches refactor nouveau_vp3_bsp and nvc0_decoder_bsp in order to implement pipe_video_codec::begin_frame/decode_bitstream/end_frame. So that decode_bitstream can be call multiple time between each begin/end. TODO: apply same logic for nv98 but I do not have the material to test it. https://bugs.freedesktop.org/show_bug.cgi?id=89969 Julien Isorce (8): nouveau: extract memcpy loop from nouveau_vp3_bsp nouveau: remove nouveau_vp3_bsp to use begin/next/end nouveau: split nvc0_decoder_bsp in begin/next/end nouveau: preserve content buffer when calling nvc0_decoder_bsp_next nouveau: remove nvc0_decoder_bsp and use begin/next/end instead nvc0: implement pipe_video_codec::begin_frame/end_frame nouveau: fix chunk decoding by updating number of slices build: enable st/va with nouveau driver src/gallium/drivers/nouveau/nouveau_vp3_video.h | 17 +- .../drivers/nouveau/nouveau_vp3_video_bsp.c | 170 ++++++---- src/gallium/drivers/nouveau/nv50/nv98_video_bsp.c | 5 +- src/gallium/drivers/nouveau/nvc0/nvc0_video.c | 44 ++- src/gallium/drivers/nouveau/nvc0/nvc0_video.h | 18 +- src/gallium/drivers/nouveau/nvc0/nvc0_video_bsp.c | 373 ++++++++++++--------- src/gallium/targets/va/Makefile.am | 2 + 7 files changed, 385 insertions(+), 244 deletions(-) -- 1.9.1