Lines Matching defs:map_state

529 	struct i915_mc_map_state *map_state;
534 map_state = pI915XvMC->msb_bo->virtual;
536 memset(map_state, 0, sizeof(*map_state));
539 map_state->y_map.dw0.type = CMD_3D;
540 map_state->y_map.dw0.opcode = OPC_3DSTATE_MAP_STATE;
541 map_state->y_map.dw0.retain = 1;
542 map_state->y_map.dw0.length = 6;
543 map_state->y_map.dw1.map_mask = MAP_MAP0 | MAP_MAP1;
546 map_state->y_forward.tm0.v_ls_offset = 0;
547 map_state->y_forward.tm0.v_ls = 0;
548 map_state->y_forward.tm1.tile_walk = TILEWALK_XMAJOR;
549 map_state->y_forward.tm1.tiled_surface = 0;
550 map_state->y_forward.tm1.utilize_fence_regs = 0;
551 map_state->y_forward.tm1.texel_fmt = 0; /* 8bit */
552 map_state->y_forward.tm1.surface_fmt = 1; /* 8bit */
553 map_state->y_forward.tm1.width = w - 1;
554 map_state->y_forward.tm1.height = h - 1;
555 map_state->y_forward.tm2.depth = 0;
556 map_state->y_forward.tm2.max_lod = 0;
557 map_state->y_forward.tm2.cube_face = 0;
558 map_state->y_forward.tm0.base_address = privPast->bo->offset >> 2;
560 offsetof(typeof(*map_state),y_forward.tm0),
563 map_state->y_forward.tm2.pitch = (pI915XvMC->yStride >> 2) - 1; /* in DWords - 1 */
566 map_state->y_backward.tm0.v_ls_offset = 0;
567 map_state->y_backward.tm0.v_ls = 0;
568 map_state->y_backward.tm1.tile_walk = TILEWALK_XMAJOR;
569 map_state->y_backward.tm1.tiled_surface = 0;
570 map_state->y_backward.tm1.utilize_fence_regs = 0;
571 map_state->y_backward.tm1.texel_fmt = 0; /* 8bit */
572 map_state->y_backward.tm1.surface_fmt = 1; /* 8bit */
573 map_state->y_backward.tm1.width = w - 1;
574 map_state->y_backward.tm1.height = h - 1;
575 map_state->y_backward.tm2.depth = 0;
576 map_state->y_backward.tm2.max_lod = 0;
577 map_state->y_backward.tm2.cube_face = 0;
578 map_state->y_backward.tm0.base_address = privFuture->bo->offset >> 2;
580 offsetof(typeof(*map_state),y_backward.tm0),
583 map_state->y_backward.tm2.pitch = (pI915XvMC->yStride >> 2) - 1;
586 map_state->u_map.dw0.type = CMD_3D;
587 map_state->u_map.dw0.opcode = OPC_3DSTATE_MAP_STATE;
588 map_state->u_map.dw0.retain = 1;
589 map_state->u_map.dw0.length = 6;
590 map_state->u_map.dw1.map_mask = MAP_MAP0 | MAP_MAP1;
593 map_state->u_forward.tm0.v_ls_offset = 0;
594 map_state->u_forward.tm0.v_ls = 0;
595 map_state->u_forward.tm1.tile_walk = TILEWALK_XMAJOR;
596 map_state->u_forward.tm1.tiled_surface = 0;
597 map_state->u_forward.tm1.utilize_fence_regs = 0;
598 map_state->u_forward.tm1.texel_fmt = 0; /* 8bit */
599 map_state->u_forward.tm1.surface_fmt = 1; /* 8bit */
600 map_state->u_forward.tm1.width = (w >> 1) - 1;
601 map_state->u_forward.tm1.height = (h >> 1) - 1;
602 map_state->u_forward.tm2.depth = 0;
603 map_state->u_forward.tm2.max_lod = 0;
604 map_state->u_forward.tm2.cube_face = 0;
605 map_state->u_forward.tm0.base_address =
608 offsetof(typeof(*map_state),u_forward.tm0),
611 map_state->u_forward.tm2.pitch = (pI915XvMC->uvStride >> 2) - 1; /* in DWords - 1 */
614 map_state->u_backward.tm0.v_ls_offset = 0;
615 map_state->u_backward.tm0.v_ls = 0;
616 map_state->u_backward.tm1.tile_walk = TILEWALK_XMAJOR;
617 map_state->u_backward.tm1.tiled_surface = 0;
618 map_state->u_backward.tm1.utilize_fence_regs = 0;
619 map_state->u_backward.tm1.texel_fmt = 0;
620 map_state->u_backward.tm1.surface_fmt = 1;
621 map_state->u_backward.tm1.width = (w >> 1) - 1;
622 map_state->u_backward.tm1.height = (h >> 1) - 1;
623 map_state->u_backward.tm2.depth = 0;
624 map_state->u_backward.tm2.max_lod = 0;
625 map_state->u_backward.tm2.cube_face = 0;
626 map_state->u_backward.tm0.base_address =
629 offsetof(typeof(*map_state),u_backward.tm0),
632 map_state->u_backward.tm2.pitch = (pI915XvMC->uvStride >> 2) - 1;
635 map_state->v_map.dw0.type = CMD_3D;
636 map_state->v_map.dw0.opcode = OPC_3DSTATE_MAP_STATE;
637 map_state->v_map.dw0.retain = 1;
638 map_state->v_map.dw0.length = 6;
639 map_state->v_map.dw1.map_mask = MAP_MAP0 | MAP_MAP1;
642 map_state->v_forward.tm0.v_ls_offset = 0;
643 map_state->v_forward.tm0.v_ls = 0;
644 map_state->v_forward.tm1.tile_walk = TILEWALK_XMAJOR;
645 map_state->v_forward.tm1.tiled_surface = 0;
646 map_state->v_forward.tm1.utilize_fence_regs = 0;
647 map_state->v_forward.tm1.texel_fmt = 0;
648 map_state->v_forward.tm1.surface_fmt = 1;
649 map_state->v_forward.tm1.width = (w >> 1) - 1;
650 map_state->v_forward.tm1.height = (h >> 1) - 1;
651 map_state->v_forward.tm2.depth = 0;
652 map_state->v_forward.tm2.max_lod = 0;
653 map_state->v_forward.tm2.cube_face = 0;
654 map_state->v_forward.tm0.base_address =
657 offsetof(typeof(*map_state),v_forward.tm0),
660 map_state->v_forward.tm2.pitch = (pI915XvMC->uvStride >> 2) - 1; /* in DWords - 1 */
663 map_state->v_backward.tm0.v_ls_offset = 0;
664 map_state->v_backward.tm0.v_ls = 0;
665 map_state->v_backward.tm1.tile_walk = TILEWALK_XMAJOR;
666 map_state->v_backward.tm1.tiled_surface = 0;
667 map_state->v_backward.tm1.utilize_fence_regs = 0;
668 map_state->v_backward.tm1.texel_fmt = 0;
669 map_state->v_backward.tm1.surface_fmt = 1;
670 map_state->v_backward.tm1.width = (w >> 1) - 1;
671 map_state->v_backward.tm1.height = (h >> 1) - 1;
672 map_state->v_backward.tm2.depth = 0;
673 map_state->v_backward.tm2.max_lod = 0;
674 map_state->v_backward.tm2.cube_face = 0;
675 map_state->v_backward.tm0.base_address =
678 offsetof(typeof(*map_state),v_backward.tm0),
681 map_state->v_backward.tm2.pitch = (pI915XvMC->uvStride >> 2) - 1;