Lines Matching refs:p
625 static int r300_packet0_check(struct radeon_cs_parser *p, in r300_packet0_check() argument
637 ib = p->ib.ptr; in r300_packet0_check()
638 track = (struct r100_cs_track *)p->track; in r300_packet0_check()
639 idx_value = radeon_get_ib_value(p, idx); in r300_packet0_check()
644 r = r100_cs_packet_parse_vline(p); in r300_packet0_check()
648 radeon_cs_dump_packet(p, pkt); in r300_packet0_check()
654 r = r100_reloc_pitch_offset(p, pkt, idx, reg); in r300_packet0_check()
663 r = radeon_cs_packet_next_reloc(p, &reloc, 0); in r300_packet0_check()
667 radeon_cs_dump_packet(p, pkt); in r300_packet0_check()
676 r = radeon_cs_packet_next_reloc(p, &reloc, 0); in r300_packet0_check()
680 radeon_cs_dump_packet(p, pkt); in r300_packet0_check()
705 r = radeon_cs_packet_next_reloc(p, &reloc, 0); in r300_packet0_check()
709 radeon_cs_dump_packet(p, pkt); in r300_packet0_check()
713 if (p->cs_flags & RADEON_CS_KEEP_TILING_FLAGS) { in r300_packet0_check()
746 if (p->rdev->family < CHIP_RV515) in r300_packet0_check()
753 if (p->rdev->family < CHIP_RV515) { in r300_packet0_check()
762 p->rdev->cmask_filp != p->filp) { in r300_packet0_check()
777 if (!(p->cs_flags & RADEON_CS_KEEP_TILING_FLAGS)) { in r300_packet0_check()
778 r = radeon_cs_packet_next_reloc(p, &reloc, 0); in r300_packet0_check()
782 radeon_cs_dump_packet(p, pkt); in r300_packet0_check()
812 if (p->rdev->family < CHIP_RV515) { in r300_packet0_check()
862 if (!(p->cs_flags & RADEON_CS_KEEP_TILING_FLAGS)) { in r300_packet0_check()
863 r = radeon_cs_packet_next_reloc(p, &reloc, 0); in r300_packet0_check()
867 radeon_cs_dump_packet(p, pkt); in r300_packet0_check()
962 if (p->rdev->family < CHIP_R420) { in r300_packet0_check()
1029 if (p->rdev->family >= CHIP_RV515) { in r300_packet0_check()
1078 r = radeon_cs_packet_next_reloc(p, &reloc, 0); in r300_packet0_check()
1082 radeon_cs_dump_packet(p, pkt); in r300_packet0_check()
1096 if (p->rdev->hyperz_filp != p->filp) { in r300_packet0_check()
1106 if (p->rdev->hyperz_filp != p->filp) { in r300_packet0_check()
1120 r = radeon_cs_packet_next_reloc(p, &reloc, 0); in r300_packet0_check()
1124 radeon_cs_dump_packet(p, pkt); in r300_packet0_check()
1144 if (idx_value && (p->rdev->hyperz_filp != p->filp)) in r300_packet0_check()
1148 if (idx_value && (p->rdev->hyperz_filp != p->filp)) in r300_packet0_check()
1151 if (p->rdev->family >= CHIP_RV350) in r300_packet0_check()
1157 if (p->rdev->family == CHIP_RV530) in r300_packet0_check()
1171 static int r300_packet3_check(struct radeon_cs_parser *p, in r300_packet3_check() argument
1180 ib = p->ib.ptr; in r300_packet3_check()
1182 track = (struct r100_cs_track *)p->track; in r300_packet3_check()
1185 r = r100_packet3_load_vbpntr(p, pkt, idx); in r300_packet3_check()
1190 r = radeon_cs_packet_next_reloc(p, &reloc, 0); in r300_packet3_check()
1193 radeon_cs_dump_packet(p, pkt); in r300_packet3_check()
1196 ib[idx+1] = radeon_get_ib_value(p, idx + 1) + ((u32)reloc->gpu_offset); in r300_packet3_check()
1197 r = r100_cs_track_check_pkt3_indx_buffer(p, pkt, reloc->robj); in r300_packet3_check()
1207 if (((radeon_get_ib_value(p, idx + 1) >> 4) & 0x3) != 3) { in r300_packet3_check()
1211 track->vap_vf_cntl = radeon_get_ib_value(p, idx + 1); in r300_packet3_check()
1213 r = r100_cs_track_check(p->rdev, track); in r300_packet3_check()
1222 if (((radeon_get_ib_value(p, idx) >> 4) & 0x3) != 3) { in r300_packet3_check()
1226 track->vap_vf_cntl = radeon_get_ib_value(p, idx); in r300_packet3_check()
1228 r = r100_cs_track_check(p->rdev, track); in r300_packet3_check()
1234 track->vap_vf_cntl = radeon_get_ib_value(p, idx + 1); in r300_packet3_check()
1235 r = r100_cs_track_check(p->rdev, track); in r300_packet3_check()
1241 track->vap_vf_cntl = radeon_get_ib_value(p, idx); in r300_packet3_check()
1242 r = r100_cs_track_check(p->rdev, track); in r300_packet3_check()
1248 track->vap_vf_cntl = radeon_get_ib_value(p, idx + 1); in r300_packet3_check()
1249 r = r100_cs_track_check(p->rdev, track); in r300_packet3_check()
1255 track->vap_vf_cntl = radeon_get_ib_value(p, idx); in r300_packet3_check()
1256 r = r100_cs_track_check(p->rdev, track); in r300_packet3_check()
1263 if (p->rdev->hyperz_filp != p->filp) in r300_packet3_check()
1267 if (p->rdev->cmask_filp != p->filp) in r300_packet3_check()
1279 int r300_cs_parse(struct radeon_cs_parser *p) in r300_cs_parse() argument
1288 r100_cs_track_clear(p->rdev, track); in r300_cs_parse()
1289 p->track = track; in r300_cs_parse()
1291 r = radeon_cs_packet_parse(p, &pkt, p->idx); in r300_cs_parse()
1295 p->idx += pkt.count + 2; in r300_cs_parse()
1298 r = r100_cs_parse_packet0(p, &pkt, in r300_cs_parse()
1299 p->rdev->config.r300.reg_safe_bm, in r300_cs_parse()
1300 p->rdev->config.r300.reg_safe_bm_size, in r300_cs_parse()
1306 r = r300_packet3_check(p, &pkt); in r300_cs_parse()
1315 } while (p->idx < p->chunk_ib->length_dw); in r300_cs_parse()