summaryrefslogtreecommitdiff
path: root/src/gen8_vme.c
diff options
context:
space:
mode:
authorZhao Yakui <yakui.zhao@intel.com>2013-03-27 09:24:15 +0800
committerXiang, Haihao <haihao.xiang@intel.com>2014-02-27 10:04:12 +0800
commitd1ce64926f3c0fedcfe4bab86e51ed406b5aa96f (patch)
tree7c5babbae6d58d6a9c69ab6d38f1b4b70e529be2 /src/gen8_vme.c
parent088e84c25c74b587ace06bf67cd8f8ac84f433c0 (diff)
downloadlibva-intel-driver-d1ce64926f3c0fedcfe4bab86e51ed406b5aa96f.tar.gz
libva-intel-driver-d1ce64926f3c0fedcfe4bab86e51ed406b5aa96f.tar.bz2
libva-intel-driver-d1ce64926f3c0fedcfe4bab86e51ed406b5aa96f.zip
Rewrite the VME shader for encoding on BDW
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src/gen8_vme.c')
-rw-r--r--src/gen8_vme.c35
1 files changed, 6 insertions, 29 deletions
diff --git a/src/gen8_vme.c b/src/gen8_vme.c
index 389ca8e..65d27c1 100644
--- a/src/gen8_vme.c
+++ b/src/gen8_vme.c
@@ -51,8 +51,7 @@
#define VME_INTRA_SHADER 0
#define VME_INTER_SHADER 1
-#define VME_BINTER_SHADER 3
-#define VME_BATCHBUFFER 2
+#define VME_BINTER_SHADER 2
#define CURBE_ALLOCATION_SIZE 37 /* in 256-bit */
#define CURBE_TOTAL_DATA_LENGTH (4 * 32) /* in byte, it should be less than or equal to CURBE_ALLOCATION_SIZE * 32 */
@@ -61,19 +60,15 @@
#define VME_MSG_LENGTH 32
static const uint32_t gen8_vme_intra_frame[][4] = {
-#include "shaders/vme/intra_frame_haswell.g75b"
+#include "shaders/vme/intra_frame_gen8.g8b"
};
static const uint32_t gen8_vme_inter_frame[][4] = {
-#include "shaders/vme/inter_frame_haswell.g75b"
+#include "shaders/vme/inter_frame_gen8.g8b"
};
static const uint32_t gen8_vme_inter_bframe[][4] = {
-#include "shaders/vme/inter_bframe_haswell.g75b"
-};
-
-static const uint32_t gen8_vme_batchbuffer[][4] = {
-#include "shaders/vme/batchbuffer.g75b"
+#include "shaders/vme/inter_bframe_gen8.g8b"
};
static struct i965_kernel gen8_vme_kernels[] = {
@@ -92,13 +87,6 @@ static struct i965_kernel gen8_vme_kernels[] = {
NULL
},
{
- "VME BATCHBUFFER",
- VME_BATCHBUFFER,
- gen8_vme_batchbuffer,
- sizeof(gen8_vme_batchbuffer),
- NULL
- },
- {
"VME inter BFrame",
VME_BINTER_SHADER,
gen8_vme_inter_bframe,
@@ -108,15 +96,11 @@ static struct i965_kernel gen8_vme_kernels[] = {
};
static const uint32_t gen8_vme_mpeg2_intra_frame[][4] = {
-#include "shaders/vme/intra_frame_haswell.g75b"
+#include "shaders/vme/intra_frame_gen8.g8b"
};
static const uint32_t gen8_vme_mpeg2_inter_frame[][4] = {
-#include "shaders/vme/mpeg2_inter_haswell.g75b"
-};
-
-static const uint32_t gen8_vme_mpeg2_batchbuffer[][4] = {
-#include "shaders/vme/batchbuffer.g75b"
+#include "shaders/vme/mpeg2_inter_frame_gen8.g8b"
};
static struct i965_kernel gen8_vme_mpeg2_kernels[] = {
@@ -134,13 +118,6 @@ static struct i965_kernel gen8_vme_mpeg2_kernels[] = {
sizeof(gen8_vme_mpeg2_inter_frame),
NULL
},
- {
- "VME BATCHBUFFER",
- VME_BATCHBUFFER,
- gen8_vme_mpeg2_batchbuffer,
- sizeof(gen8_vme_mpeg2_batchbuffer),
- NULL
- },
};
/* only used for VME source surface state */