hardware/intel/libva
Revisión | b077c9077327e3b26b2dc4c366a4fc1d61e8f204 (tree) |
---|---|
Tiempo | 2010-12-06 13:50:04 |
Autor | Xiang, Haihao <haihao.xiang@inte...> |
Commiter | Xiang, Haihao |
i965_drv_video: MACROs for MFX on Sandybridge
Signed-off-by: Xiang, Haihao <haihao.xiang@intel.com>
@@ -36,6 +36,32 @@ | ||
36 | 36 | #define CMD_3DPRIMITIVE CMD(3, 3, 0) |
37 | 37 | |
38 | 38 | #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 | + | |
39 | 65 | #define I965_DEPTHFORMAT_D32_FLOAT 1 |
40 | 66 | |
41 | 67 | #define BASE_ADDRESS_MODIFY (1 << 0) |
@@ -380,6 +406,19 @@ | ||
380 | 406 | #define IEF_FILTER_SIZE_3X3 0 |
381 | 407 | #define IEF_FILTER_SIZE_5X5 1 |
382 | 408 | |
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 | + | |
383 | 422 | #define URB_SIZE(intel) (IS_GEN6(intel->device_id) ? 1024 : \ |
384 | 423 | IS_IRONLAKE(intel->device_id) ? 1024 : \ |
385 | 424 | IS_G4X(intel->device_id) ? 384 : 256) |