summaryrefslogtreecommitdiff
path: root/src/i915_hwmc.c
diff options
context:
space:
mode:
authorZhenyu Wang <zhenyu.z.wang@intel.com>2007-10-08 22:56:44 +0800
committerZhenyu Wang <zhenyu.z.wang@intel.com>2007-10-08 22:56:44 +0800
commitb52ce0bd178c268d20334e2be8fad46037e47499 (patch)
treebe0fc8bd6bde3fe974efe6fadb5600367b8e2769 /src/i915_hwmc.c
parente0fb228401b10ea4281eee48497bf1d584999705 (diff)
use field name to initialize i915 xvmc driver
Diffstat (limited to 'src/i915_hwmc.c')
-rw-r--r--src/i915_hwmc.c13
1 files changed, 6 insertions, 7 deletions
diff --git a/src/i915_hwmc.c b/src/i915_hwmc.c
index 2869aaa1..7a620767 100644
--- a/src/i915_hwmc.c
+++ b/src/i915_hwmc.c
@@ -883,11 +883,10 @@ static void i915_xvmc_fini(ScrnInfoPtr pScrn)
/* new xvmc driver interface */
struct intel_xvmc_driver i915_xvmc_driver = {
- "i915_xvmc",
- &pAdapt,
- XVMC_DRIVER_MPEG2_MC,
- i915_xvmc_init,
- i915_xvmc_fini,
- i915_xvmc_putimage_size,
- NULL
+ .name = "i915_xvmc",
+ .adaptor = &pAdapt,
+ .flag = XVMC_DRIVER_MPEG2_MC,
+ .init = i915_xvmc_init,
+ .fini = i915_xvmc_fini,
+ .putimage_size = i915_xvmc_putimage_size,
};