libva: add initial patches to add H264 decoding support for G4x devices (for testing)

Signed-off-by: Stephan Raue <stephan@openelec.tv>
This commit is contained in:
Stephan Raue 2011-07-24 06:18:56 +02:00
parent b45ab734dc
commit 9341ffa43e
4 changed files with 4952 additions and 0 deletions

View File

@ -0,0 +1,3 @@
http://cgit.freedesktop.org/libva/commit/?h=g45-h264&id=0af52fbdac270994d6f6c16e601a442cbbf53e9e
http://cgit.freedesktop.org/libva/commit/?h=g45-h264&id=ad99ba3a8d3116e4eb8d78e7b7e4bb30e9464064
http://cgit.freedesktop.org/libva/commit/?h=g45-h264&id=baad30421525ae94e5bf609643436e6b32030a04

View File

@ -0,0 +1,22 @@
From ad99ba3a8d3116e4eb8d78e7b7e4bb30e9464064 Mon Sep 17 00:00:00 2001
From: Xiang, Haihao <haihao.xiang@intel.com>
Date: Thu, 19 May 2011 03:10:46 +0000
Subject: i965_drv_video: initialize context for H.264 decoding on G4x
---
diff --git a/i965_drv_video/i965_media.c b/i965_drv_video/i965_media.c
index d6a56d2..12a036a 100644
--- a/i965_drv_video/i965_media.c
+++ b/i965_drv_video/i965_media.c
@@ -341,6 +341,9 @@ g4x_dec_hw_context_init(VADriverContextP ctx, VAProfile profile)
case VAProfileH264Baseline:
case VAProfileH264Main:
case VAProfileH264High:
+ i965_media_h264_dec_context_init(ctx, media_context);
+ break;
+
case VAProfileVC1Simple:
case VAProfileVC1Main:
case VAProfileVC1Advanced:
--
cgit v0.8.3-6-g21f6

View File

@ -0,0 +1,31 @@
From baad30421525ae94e5bf609643436e6b32030a04 Mon Sep 17 00:00:00 2001
From: Feng, Boqun <boqun.feng@intel.com>
Date: Mon, 20 Jun 2011 06:04:33 +0000
Subject: i965_drv_video: h264 shader kernels makefile fix
_export.inc is a temporary file in kernels compile stage, need to
create one before preprocess and compile, and it will be deleted
after that.
---
diff --git a/i965_drv_video/shaders/h264/mc/Makefile.am b/i965_drv_video/shaders/h264/mc/Makefile.am
index 3c80c5d..158f14c 100644
--- a/i965_drv_video/shaders/h264/mc/Makefile.am
+++ b/i965_drv_video/shaders/h264/mc/Makefile.am
@@ -167,6 +167,7 @@ SUFFIXES = .g4a .g4b
m4 $*.g4a > $*.g4m && intel-gen4asm -o $@ $*.g4m && intel-gen4asm -g 5 -o $@.gen5 $*.g4m && rm $*.g4m
$(INTEL_MC_G4B): $(INTEL_MC_ASM) $(INTEL_ILDB_ASM)
+ touch _export.inc
@cpp -D DEV_CTG -I ../ildb/ AllAVC.asm > a.asm; \
../../gpp.py a.asm avc_mc.asm; \
intel-gen4asm -l list -a -e _export.inc -o $@ -g 4 avc_mc.asm; \
@@ -177,6 +178,7 @@ $(INTEL_MC_G4B): $(INTEL_MC_ASM) $(INTEL_ILDB_ASM)
rm a.asm avc_mc.asm _export.inc
$(INTEL_MC_G4B_GEN5): $(INTEL_MC_ASM) $(INTEL_ILDB_ASM)
+ touch _export.inc
@cpp -D DEV_ILK -I ../ildb/ AllAVC.asm > a.asm; \
../../gpp.py a.asm avc_mc.asm; \
intel-gen4asm -l list -a -e _export.inc -o $@ -g 5 avc_mc.asm; \
--
cgit v0.8.3-6-g21f6