summaryrefslogtreecommitdiff
path: root/src/gen6_mfd.h
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-01-30 11:05:17 +0100
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-02-01 23:56:35 +0100
commit99ded53e66af1903f1d58ffbc24404d435a6de84 (patch)
treec17561b7d60043bca57fc0b42c5fe8ccfbeea95b /src/gen6_mfd.h
parentfe140f03726c603f4802e4977621b46f03fe4d3c (diff)
downloadlibva-intel-driver-99ded53e66af1903f1d58ffbc24404d435a6de84.tar.gz
libva-intel-driver-99ded53e66af1903f1d58ffbc24404d435a6de84.tar.bz2
libva-intel-driver-99ded53e66af1903f1d58ffbc24404d435a6de84.zip
Factor out type definitions (GenFrameStore, GenBuffer).
Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'src/gen6_mfd.h')
-rw-r--r--src/gen6_mfd.h49
1 files changed, 9 insertions, 40 deletions
diff --git a/src/gen6_mfd.h b/src/gen6_mfd.h
index 46bb0e4..bf06a00 100644
--- a/src/gen6_mfd.h
+++ b/src/gen6_mfd.h
@@ -33,6 +33,7 @@
#include <drm.h>
#include <i915_drm.h>
#include <intel_bufmgr.h>
+#include "i965_decoder.h"
struct gen6_avc_surface
{
@@ -58,7 +59,6 @@ struct gen6_vc1_surface
int picture_type;
};
-#define MAX_MFX_REFERENCE_SURFACES 16
struct hw_context;
struct gen6_mfd_context
@@ -69,45 +69,14 @@ struct gen6_mfd_context
VAIQMatrixBufferMPEG2 mpeg2;
} iq_matrix;
- struct {
- VASurfaceID surface_id;
- int frame_store_id;
- } reference_surface[MAX_MFX_REFERENCE_SURFACES];
-
- struct {
- dri_bo *bo;
- int valid;
- } post_deblocking_output;
-
- struct {
- dri_bo *bo;
- int valid;
- } pre_deblocking_output;
-
- struct {
- dri_bo *bo;
- int valid;
- } intra_row_store_scratch_buffer;
-
- struct {
- dri_bo *bo;
- int valid;
- } deblocking_filter_row_store_scratch_buffer;
-
- struct {
- dri_bo *bo;
- int valid;
- } bsd_mpc_row_store_scratch_buffer;
-
- struct {
- dri_bo *bo;
- int valid;
- } mpr_row_store_scratch_buffer;
-
- struct {
- dri_bo *bo;
- int valid;
- } bitplane_read_buffer;
+ GenFrameStore reference_surface[MAX_GEN_REFERENCE_FRAMES];
+ GenBuffer post_deblocking_output;
+ GenBuffer pre_deblocking_output;
+ GenBuffer intra_row_store_scratch_buffer;
+ GenBuffer deblocking_filter_row_store_scratch_buffer;
+ GenBuffer bsd_mpc_row_store_scratch_buffer;
+ GenBuffer mpr_row_store_scratch_buffer;
+ GenBuffer bitplane_read_buffer;
};
#endif /* _GEN6_MFD_H_ */