summaryrefslogtreecommitdiffstats
path: root/src/gallium/state_trackers/va/va_display.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gallium/state_trackers/va/va_display.c')
-rw-r--r--src/gallium/state_trackers/va/va_display.c45
1 files changed, 19 insertions, 26 deletions
diff --git a/src/gallium/state_trackers/va/va_display.c b/src/gallium/state_trackers/va/va_display.c
index 1aaaf7c..11116d0 100644
--- a/src/gallium/state_trackers/va/va_display.c
+++ b/src/gallium/state_trackers/va/va_display.c
@@ -27,44 +27,37 @@
#include <va/va.h>
#include <va/va_backend.h>
+
#include "va_private.h"
-
-VAStatus vlVaQueryDisplayAttributes( VADriverContextP ctx,
- VADisplayAttribute *attr_list,
- int *num_attributes)
+VAStatus
+vlVaQueryDisplayAttributes(VADriverContextP ctx, VADisplayAttribute *attr_list, int *num_attributes)
{
- if (!ctx)
- return VA_STATUS_ERROR_INVALID_CONTEXT;
+ if (!ctx)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
- if (!(attr_list && num_attributes))
- return VA_STATUS_ERROR_UNKNOWN;
+ if (!(attr_list && num_attributes))
+ return VA_STATUS_ERROR_UNKNOWN;
- *num_attributes = 0;
+ *num_attributes = 0;
- return VA_STATUS_SUCCESS;
+ return VA_STATUS_SUCCESS;
}
-VAStatus vlVaGetDisplayAttributes( VADriverContextP ctx,
- VADisplayAttribute *attr_list,
- int num_attributes)
+VAStatus
+vlVaGetDisplayAttributes(VADriverContextP ctx, VADisplayAttribute *attr_list, int num_attributes)
{
- if (!ctx)
- return VA_STATUS_ERROR_INVALID_CONTEXT;
-
+ if (!ctx)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
- return VA_STATUS_ERROR_UNIMPLEMENTED;
+ return VA_STATUS_ERROR_UNIMPLEMENTED;
}
-VAStatus vlVaSetDisplayAttributes( VADriverContextP ctx,
- VADisplayAttribute *attr_list,
- int num_attributes)
+VAStatus
+vlVaSetDisplayAttributes(VADriverContextP ctx, VADisplayAttribute *attr_list, int num_attributes)
{
- if (!ctx)
- return VA_STATUS_ERROR_INVALID_CONTEXT;
-
+ if (!ctx)
+ return VA_STATUS_ERROR_INVALID_CONTEXT;
- return VA_STATUS_ERROR_UNIMPLEMENTED;
+ return VA_STATUS_ERROR_UNIMPLEMENTED;
}
-
-