Lines Matching refs:map_state

575     struct i915_mc_map_state *map_state;
577 map_state = (struct i915_mc_map_state *)pI915XvMC->msb.map;
579 memset(map_state, 0, sizeof(*map_state));
582 map_state->y_map.dw0.type = CMD_3D;
583 map_state->y_map.dw0.opcode = OPC_3DSTATE_MAP_STATE;
584 map_state->y_map.dw0.retain = 1;
585 map_state->y_map.dw0.length = 6;
586 map_state->y_map.dw1.map_mask = MAP_MAP0 | MAP_MAP1;
589 map_state->y_forward.tm0.v_ls_offset = 0;
590 map_state->y_forward.tm0.v_ls = 0;
591 map_state->y_forward.tm1.tile_walk = TILEWALK_XMAJOR;
592 map_state->y_forward.tm1.tiled_surface = 0;
593 map_state->y_forward.tm1.utilize_fence_regs = 0;
594 map_state->y_forward.tm1.texel_fmt = 0; /* 8bit */
595 map_state->y_forward.tm1.surface_fmt = 1; /* 8bit */
596 map_state->y_forward.tm1.width = w - 1;
597 map_state->y_forward.tm1.height = h - 1;
598 map_state->y_forward.tm2.depth = 0;
599 map_state->y_forward.tm2.max_lod = 0;
600 map_state->y_forward.tm2.cube_face = 0;
603 map_state->y_backward.tm0.v_ls_offset = 0;
604 map_state->y_backward.tm0.v_ls = 0;
605 map_state->y_backward.tm1.tile_walk = TILEWALK_XMAJOR;
606 map_state->y_backward.tm1.tiled_surface = 0;
607 map_state->y_backward.tm1.utilize_fence_regs = 0;
608 map_state->y_backward.tm1.texel_fmt = 0; /* 8bit */
609 map_state->y_backward.tm1.surface_fmt = 1; /* 8bit */
610 map_state->y_backward.tm1.width = w - 1;
611 map_state->y_backward.tm1.height = h - 1;
612 map_state->y_backward.tm2.depth = 0;
613 map_state->y_backward.tm2.max_lod = 0;
614 map_state->y_backward.tm2.cube_face = 0;
617 map_state->u_map.dw0.type = CMD_3D;
618 map_state->u_map.dw0.opcode = OPC_3DSTATE_MAP_STATE;
619 map_state->u_map.dw0.retain = 1;
620 map_state->u_map.dw0.length = 6;
621 map_state->u_map.dw1.map_mask = MAP_MAP0 | MAP_MAP1;
624 map_state->u_forward.tm0.v_ls_offset = 0;
625 map_state->u_forward.tm0.v_ls = 0;
626 map_state->u_forward.tm1.tile_walk = TILEWALK_XMAJOR;
627 map_state->u_forward.tm1.tiled_surface = 0;
628 map_state->u_forward.tm1.utilize_fence_regs = 0;
629 map_state->u_forward.tm1.texel_fmt = 0; /* 8bit */
630 map_state->u_forward.tm1.surface_fmt = 1; /* 8bit */
631 map_state->u_forward.tm1.width = (w >> 1) - 1;
632 map_state->u_forward.tm1.height = (h >> 1) - 1;
633 map_state->u_forward.tm2.depth = 0;
634 map_state->u_forward.tm2.max_lod = 0;
635 map_state->u_forward.tm2.cube_face = 0;
638 map_state->u_backward.tm0.v_ls_offset = 0;
639 map_state->u_backward.tm0.v_ls = 0;
640 map_state->u_backward.tm1.tile_walk = TILEWALK_XMAJOR;
641 map_state->u_backward.tm1.tiled_surface = 0;
642 map_state->u_backward.tm1.utilize_fence_regs = 0;
643 map_state->u_backward.tm1.texel_fmt = 0;
644 map_state->u_backward.tm1.surface_fmt = 1;
645 map_state->u_backward.tm1.width = (w >> 1) - 1;
646 map_state->u_backward.tm1.height = (h >> 1) - 1;
647 map_state->u_backward.tm2.depth = 0;
648 map_state->u_backward.tm2.max_lod = 0;
649 map_state->u_backward.tm2.cube_face = 0;
652 map_state->v_map.dw0.type = CMD_3D;
653 map_state->v_map.dw0.opcode = OPC_3DSTATE_MAP_STATE;
654 map_state->v_map.dw0.retain = 1;
655 map_state->v_map.dw0.length = 6;
656 map_state->v_map.dw1.map_mask = MAP_MAP0 | MAP_MAP1;
659 map_state->v_forward.tm0.v_ls_offset = 0;
660 map_state->v_forward.tm0.v_ls = 0;
661 map_state->v_forward.tm1.tile_walk = TILEWALK_XMAJOR;
662 map_state->v_forward.tm1.tiled_surface = 0;
663 map_state->v_forward.tm1.utilize_fence_regs = 0;
664 map_state->v_forward.tm1.texel_fmt = 0;
665 map_state->v_forward.tm1.surface_fmt = 1;
666 map_state->v_forward.tm1.width = (w >> 1) - 1;
667 map_state->v_forward.tm1.height = (h >> 1) - 1;
668 map_state->v_forward.tm2.depth = 0;
669 map_state->v_forward.tm2.max_lod = 0;
670 map_state->v_forward.tm2.cube_face = 0;
673 map_state->v_backward.tm0.v_ls_offset = 0;
674 map_state->v_backward.tm0.v_ls = 0;
675 map_state->v_backward.tm1.tile_walk = TILEWALK_XMAJOR;
676 map_state->v_backward.tm1.tiled_surface = 0;
677 map_state->v_backward.tm1.utilize_fence_regs = 0;
678 map_state->v_backward.tm1.texel_fmt = 0;
679 map_state->v_backward.tm1.surface_fmt = 1;
680 map_state->v_backward.tm1.width = (w >> 1) - 1;
681 map_state->v_backward.tm1.height = (h >> 1) - 1;
682 map_state->v_backward.tm2.depth = 0;
683 map_state->v_backward.tm2.max_lod = 0;
684 map_state->v_backward.tm2.cube_face = 0;
692 struct i915_mc_map_state *map_state;
694 map_state = (struct i915_mc_map_state *)pI915XvMC->msb.map;
696 map_state->y_forward.tm0.base_address = (YOFFSET(privPast) >> 2);
697 map_state->y_forward.tm2.pitch = (privPast->yStride >> 2) - 1; /* in DWords - 1 */
698 map_state->y_backward.tm0.base_address = (YOFFSET(privFuture) >> 2);
699 map_state->y_backward.tm2.pitch = (privFuture->yStride >> 2) - 1;
700 map_state->u_forward.tm0.base_address = (UOFFSET(privPast) >> 2);
701 map_state->u_forward.tm2.pitch = (privPast->uvStride >> 2) - 1; /* in DWords - 1 */
702 map_state->u_backward.tm0.base_address = (UOFFSET(privFuture) >> 2);
703 map_state->u_backward.tm2.pitch = (privFuture->uvStride >> 2) - 1;
704 map_state->v_forward.tm0.base_address = (VOFFSET(privPast) >> 2);
705 map_state->v_forward.tm2.pitch = (privPast->uvStride >> 2) - 1; /* in DWords - 1 */
706 map_state->v_backward.tm0.base_address = (VOFFSET(privFuture) >> 2);
707 map_state->v_backward.tm2.pitch = (privFuture->uvStride >> 2) - 1;
1122 struct i915_3dstate_map_state *map_state;
1131 map_state = (struct i915_3dstate_map_state *)pI915XvMC->msb.map;
1132 memset(map_state, 0, sizeof(*map_state));
1133 map_state->dw0.type = CMD_3D;
1134 map_state->dw0.opcode = OPC_3DSTATE_MAP_STATE;
1135 map_state->dw0.retain = 0;
1136 map_state->dw0.length = 9;
1137 map_state->dw1.map_mask = MAP_MAP0 | MAP_MAP1 | MAP_MAP2;
1140 tm = (struct texture_map *)(++map_state);