• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

hardware/intel/libva


Commit MetaInfo

Revisiónb077c9077327e3b26b2dc4c366a4fc1d61e8f204 (tree)
Tiempo2010-12-06 13:50:04
AutorXiang, Haihao <haihao.xiang@inte...>
CommiterXiang, Haihao

Log Message

i965_drv_video: MACROs for MFX on Sandybridge

Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>

Cambiar Resumen

Diferencia incremental

--- a/i965_drv_video/i965_defines.h
+++ b/i965_drv_video/i965_defines.h
@@ -36,6 +36,32 @@
3636 #define CMD_3DPRIMITIVE CMD(3, 3, 0)
3737
3838 #define CMD_DEPTH_BUFFER CMD(3, 1, 5)
39+
40+#define MFX(pipeline, op, sub_opa, sub_opb) \
41+ (3 << 29 | \
42+ (pipeline) << 27 | \
43+ (op) << 24 | \
44+ (sub_opa) << 21 | \
45+ (sub_opb) << 16)
46+
47+#define MFX_STATE_PONTER MFX(2, 0, 0, 6)
48+#define MFX_PIPE_MODE_SELECT MFX(2, 0, 0, 0)
49+#define MFX_SURFACE_STATE MFX(0, 0, 0, 2) /* FIXME: right ? */
50+#define MFX_PIPE_BUF_ADDR_STATE MFX(2, 0, 0, 2)
51+#define MFX_IND_OBJ_BASE_ADDR_STATE MFX(2, 0, 0, 3)
52+#define MFX_BSP_BUF_BASE_ADDR_STATE MFX(2, 0, 0, 4)
53+#define MFX_AES_STATE MFX(2, 0, 0, 5)
54+#define MFX_WAIT MFX(1, 0, 0, 0)
55+
56+#define MFX_AVC_IMG_STATE MFX(2, 1, 0, 0)
57+#define MFX_AVC_QM_STATE MFX(2, 1, 0, 1)
58+#define MFX_AVC_DIRECTMODE_STATE MFX(2, 1, 0, 2)
59+#define MFX_AVC_SLICE_STATE MFX(2, 1, 0, 3)
60+#define MFX_AVC_REF_IDX_STATE MFX(2, 1, 0, 4)
61+#define MFX_AVC_WEIGHTOFFSET_STATE MFX(2, 1, 0, 5)
62+
63+#define MFD_AVC_BSD_OBJECT MFX(2, 1, 1, 8)
64+
3965 #define I965_DEPTHFORMAT_D32_FLOAT 1
4066
4167 #define BASE_ADDRESS_MODIFY (1 << 0)
@@ -380,6 +406,19 @@
380406 #define IEF_FILTER_SIZE_3X3 0
381407 #define IEF_FILTER_SIZE_5X5 1
382408
409+#define MFX_FORMAT_MPEG2 0
410+#define MFX_FORMAT_VC1 1
411+#define MFX_FORMAT_AVC 2
412+
413+#define MFX_CODEC_DECODE 0
414+#define MFX_CODEC_ENCODE 1
415+
416+#define MFD_MODE_VLD 0
417+#define MFD_MODE_IT 1
418+
419+#define MFX_SURFACE_PLANAR_420_8 4
420+#define MFX_SURFACE_MONOCHROME 12
421+
383422 #define URB_SIZE(intel) (IS_GEN6(intel->device_id) ? 1024 : \
384423 IS_IRONLAKE(intel->device_id) ? 1024 : \
385424 IS_G4X(intel->device_id) ? 384 : 256)