summaryrefslogtreecommitdiff
path: root/src/i965_output_dri.c
diff options
context:
space:
mode:
authorGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-10-08 10:04:03 +0200
committerGwenole Beauchesne <gwenole.beauchesne@intel.com>2012-10-08 10:09:59 +0200
commit4178cd1cece5a7b2b7efe32318f6fa168a1f8bcd (patch)
treec69f7e554dc0252e8687350583018aaabc8f6516 /src/i965_output_dri.c
parentdc4d4005d0f3de59b7218506cf5b20bcef61323f (diff)
downloadlibva-intel-driver-4178cd1cece5a7b2b7efe32318f6fa168a1f8bcd.tar.gz
libva-intel-driver-4178cd1cece5a7b2b7efe32318f6fa168a1f8bcd.tar.bz2
libva-intel-driver-4178cd1cece5a7b2b7efe32318f6fa168a1f8bcd.zip
Fix build with VA-API 0.32.0.
Add new <va/va_backend_compat.h> glue file with various utility functions and definitions to help building the driver against a previous version of libva (1.0.x for VA-API 0.32.x in particular). Signed-off-by: Gwenole Beauchesne <gwenole.beauchesne@intel.com>
Diffstat (limited to 'src/i965_output_dri.c')
-rw-r--r--src/i965_output_dri.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/i965_output_dri.c b/src/i965_output_dri.c
index c223143..d27576a 100644
--- a/src/i965_output_dri.c
+++ b/src/i965_output_dri.c
@@ -119,7 +119,6 @@ i965_put_surface_dri(
{
struct i965_driver_data * const i965 = i965_driver_data(ctx);
struct dri_vtable * const dri_vtable = &i965->dri_output->vtable;
- struct dri_state * const dri_state = (struct dri_state *)ctx->drm_state;
struct i965_render_state * const render_state = &i965->render_state;
struct dri_drawable *dri_drawable;
union dri_buffer *buffer;
@@ -131,7 +130,7 @@ i965_put_surface_dri(
int ret;
/* Currently don't support DRI1 */
- if (dri_state->base.auth_type != VA_DRM_AUTH_DRI2)
+ if (!VA_CHECK_DRM_AUTH_TYPE(ctx, VA_DRM_AUTH_DRI2))
return VA_STATUS_ERROR_UNKNOWN;
/* Some broken sources such as H.264 conformance case FM2_SVA_C