diff options
author | Zhao Yakui <yakui.zhao@intel.com> | 2013-01-22 10:53:26 +0800 |
---|---|---|
committer | Xiang, Haihao <haihao.xiang@intel.com> | 2014-02-27 09:55:59 +0800 |
commit | b3a69f6db02e13208a5fa9f794be85c82527aefd (patch) | |
tree | 553ee4e4c6305892b0c56a8d0e947d8163caf6bb /src/gen75_mfc.c | |
parent | 0942d5e3f5370a180640b41411edd575370d8da8 (diff) | |
download | libva-intel-driver-b3a69f6db02e13208a5fa9f794be85c82527aefd.tar.gz libva-intel-driver-b3a69f6db02e13208a5fa9f794be85c82527aefd.tar.bz2 libva-intel-driver-b3a69f6db02e13208a5fa9f794be85c82527aefd.zip |
Avoid the duplicated macro-definition of surface size
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Diffstat (limited to 'src/gen75_mfc.c')
-rw-r--r-- | src/gen75_mfc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/gen75_mfc.c b/src/gen75_mfc.c index 4237161..c6a5ab5 100644 --- a/src/gen75_mfc.c +++ b/src/gen75_mfc.c @@ -51,6 +51,10 @@ #define MFC_SOFTWARE_HASWELL 0 +#define SURFACE_STATE_PADDED_SIZE MAX(SURFACE_STATE_PADDED_SIZE_GEN6, SURFACE_STATE_PADDED_SIZE_GEN7) +#define SURFACE_STATE_OFFSET(index) (SURFACE_STATE_PADDED_SIZE * index) +#define BINDING_TABLE_OFFSET(index) (SURFACE_STATE_OFFSET(MAX_MEDIA_SURFACES_GEN6) + sizeof(unsigned int) * index) + #define B0_STEP_REV 2 #define IS_STEPPING_BPLUS(i965) ((i965->intel.revision) >= B0_STEP_REV) |